AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
AssociateLexBotRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/LexBot.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Connect {
17namespace Model {
18
22 public:
23 AWS_CONNECT_API AssociateLexBotRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "AssociateLexBot"; }
30
31 AWS_CONNECT_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
40 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
41 template <typename InstanceIdT = Aws::String>
42 void SetInstanceId(InstanceIdT&& value) {
43 m_instanceIdHasBeenSet = true;
44 m_instanceId = std::forward<InstanceIdT>(value);
45 }
46 template <typename InstanceIdT = Aws::String>
47 AssociateLexBotRequest& WithInstanceId(InstanceIdT&& value) {
48 SetInstanceId(std::forward<InstanceIdT>(value));
49 return *this;
50 }
52
54
57 inline const LexBot& GetLexBot() const { return m_lexBot; }
58 inline bool LexBotHasBeenSet() const { return m_lexBotHasBeenSet; }
59 template <typename LexBotT = LexBot>
60 void SetLexBot(LexBotT&& value) {
61 m_lexBotHasBeenSet = true;
62 m_lexBot = std::forward<LexBotT>(value);
63 }
64 template <typename LexBotT = LexBot>
66 SetLexBot(std::forward<LexBotT>(value));
67 return *this;
68 }
70
72
79 inline const Aws::String& GetClientToken() const { return m_clientToken; }
80 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
81 template <typename ClientTokenT = Aws::String>
82 void SetClientToken(ClientTokenT&& value) {
83 m_clientTokenHasBeenSet = true;
84 m_clientToken = std::forward<ClientTokenT>(value);
85 }
86 template <typename ClientTokenT = Aws::String>
87 AssociateLexBotRequest& WithClientToken(ClientTokenT&& value) {
88 SetClientToken(std::forward<ClientTokenT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_instanceId;
94
95 LexBot m_lexBot;
96
98 bool m_instanceIdHasBeenSet = false;
99 bool m_lexBotHasBeenSet = false;
100 bool m_clientTokenHasBeenSet = true;
101};
102
103} // namespace Model
104} // namespace Connect
105} // namespace Aws
AssociateLexBotRequest & WithInstanceId(InstanceIdT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
AssociateLexBotRequest & WithLexBot(LexBotT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CONNECT_API AssociateLexBotRequest()=default
AssociateLexBotRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String