AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateBotRequest.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/LexModelsV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lexv2-models/model/DataPrivacy.h>
11#include <aws/lexv2-models/model/BotType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lexv2-models/model/BotMember.h>
14#include <utility>
15
16namespace Aws
17{
18namespace LexModelsV2
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_LEXMODELSV2_API UpdateBotRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateBot"; }
35
36 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
37
38
40
46 inline const Aws::String& GetBotId() const{ return m_botId; }
47 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
48 inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; }
49 inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); }
50 inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); }
51 inline UpdateBotRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;}
52 inline UpdateBotRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;}
53 inline UpdateBotRequest& WithBotId(const char* value) { SetBotId(value); return *this;}
55
57
61 inline const Aws::String& GetBotName() const{ return m_botName; }
62 inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
63 inline void SetBotName(const Aws::String& value) { m_botNameHasBeenSet = true; m_botName = value; }
64 inline void SetBotName(Aws::String&& value) { m_botNameHasBeenSet = true; m_botName = std::move(value); }
65 inline void SetBotName(const char* value) { m_botNameHasBeenSet = true; m_botName.assign(value); }
66 inline UpdateBotRequest& WithBotName(const Aws::String& value) { SetBotName(value); return *this;}
67 inline UpdateBotRequest& WithBotName(Aws::String&& value) { SetBotName(std::move(value)); return *this;}
68 inline UpdateBotRequest& WithBotName(const char* value) { SetBotName(value); return *this;}
70
72
75 inline const Aws::String& GetDescription() const{ return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
78 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
79 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
80 inline UpdateBotRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline UpdateBotRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline UpdateBotRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
84
86
90 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
91 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
92 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
93 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
94 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
95 inline UpdateBotRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
96 inline UpdateBotRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
97 inline UpdateBotRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
99
101
105 inline const DataPrivacy& GetDataPrivacy() const{ return m_dataPrivacy; }
106 inline bool DataPrivacyHasBeenSet() const { return m_dataPrivacyHasBeenSet; }
107 inline void SetDataPrivacy(const DataPrivacy& value) { m_dataPrivacyHasBeenSet = true; m_dataPrivacy = value; }
108 inline void SetDataPrivacy(DataPrivacy&& value) { m_dataPrivacyHasBeenSet = true; m_dataPrivacy = std::move(value); }
109 inline UpdateBotRequest& WithDataPrivacy(const DataPrivacy& value) { SetDataPrivacy(value); return *this;}
110 inline UpdateBotRequest& WithDataPrivacy(DataPrivacy&& value) { SetDataPrivacy(std::move(value)); return *this;}
112
114
121 inline int GetIdleSessionTTLInSeconds() const{ return m_idleSessionTTLInSeconds; }
122 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
123 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSecondsHasBeenSet = true; m_idleSessionTTLInSeconds = value; }
126
128
131 inline const BotType& GetBotType() const{ return m_botType; }
132 inline bool BotTypeHasBeenSet() const { return m_botTypeHasBeenSet; }
133 inline void SetBotType(const BotType& value) { m_botTypeHasBeenSet = true; m_botType = value; }
134 inline void SetBotType(BotType&& value) { m_botTypeHasBeenSet = true; m_botType = std::move(value); }
135 inline UpdateBotRequest& WithBotType(const BotType& value) { SetBotType(value); return *this;}
136 inline UpdateBotRequest& WithBotType(BotType&& value) { SetBotType(std::move(value)); return *this;}
138
140
143 inline const Aws::Vector<BotMember>& GetBotMembers() const{ return m_botMembers; }
144 inline bool BotMembersHasBeenSet() const { return m_botMembersHasBeenSet; }
145 inline void SetBotMembers(const Aws::Vector<BotMember>& value) { m_botMembersHasBeenSet = true; m_botMembers = value; }
146 inline void SetBotMembers(Aws::Vector<BotMember>&& value) { m_botMembersHasBeenSet = true; m_botMembers = std::move(value); }
147 inline UpdateBotRequest& WithBotMembers(const Aws::Vector<BotMember>& value) { SetBotMembers(value); return *this;}
148 inline UpdateBotRequest& WithBotMembers(Aws::Vector<BotMember>&& value) { SetBotMembers(std::move(value)); return *this;}
149 inline UpdateBotRequest& AddBotMembers(const BotMember& value) { m_botMembersHasBeenSet = true; m_botMembers.push_back(value); return *this; }
150 inline UpdateBotRequest& AddBotMembers(BotMember&& value) { m_botMembersHasBeenSet = true; m_botMembers.push_back(std::move(value)); return *this; }
152 private:
153
154 Aws::String m_botId;
155 bool m_botIdHasBeenSet = false;
156
157 Aws::String m_botName;
158 bool m_botNameHasBeenSet = false;
159
160 Aws::String m_description;
161 bool m_descriptionHasBeenSet = false;
162
163 Aws::String m_roleArn;
164 bool m_roleArnHasBeenSet = false;
165
166 DataPrivacy m_dataPrivacy;
167 bool m_dataPrivacyHasBeenSet = false;
168
169 int m_idleSessionTTLInSeconds;
170 bool m_idleSessionTTLInSecondsHasBeenSet = false;
171
172 BotType m_botType;
173 bool m_botTypeHasBeenSet = false;
174
175 Aws::Vector<BotMember> m_botMembers;
176 bool m_botMembersHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace LexModelsV2
181} // namespace Aws
void SetRoleArn(const Aws::String &value)
void SetBotMembers(Aws::Vector< BotMember > &&value)
UpdateBotRequest & WithDataPrivacy(const DataPrivacy &value)
UpdateBotRequest & WithBotType(const BotType &value)
UpdateBotRequest & AddBotMembers(const BotMember &value)
UpdateBotRequest & WithBotName(Aws::String &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
UpdateBotRequest & WithBotId(Aws::String &&value)
UpdateBotRequest & WithBotMembers(const Aws::Vector< BotMember > &value)
UpdateBotRequest & WithBotType(BotType &&value)
void SetBotMembers(const Aws::Vector< BotMember > &value)
UpdateBotRequest & WithDescription(const Aws::String &value)
UpdateBotRequest & WithBotMembers(Aws::Vector< BotMember > &&value)
const Aws::Vector< BotMember > & GetBotMembers() const
void SetBotName(const Aws::String &value)
UpdateBotRequest & WithDescription(Aws::String &&value)
UpdateBotRequest & WithDescription(const char *value)
UpdateBotRequest & WithIdleSessionTTLInSeconds(int value)
UpdateBotRequest & WithBotId(const char *value)
UpdateBotRequest & WithBotName(const char *value)
UpdateBotRequest & WithDataPrivacy(DataPrivacy &&value)
UpdateBotRequest & AddBotMembers(BotMember &&value)
UpdateBotRequest & WithBotId(const Aws::String &value)
void SetDataPrivacy(const DataPrivacy &value)
virtual const char * GetServiceRequestName() const override
UpdateBotRequest & WithBotName(const Aws::String &value)
void SetDescription(const Aws::String &value)
const Aws::String & GetDescription() const
UpdateBotRequest & WithRoleArn(const char *value)
UpdateBotRequest & WithRoleArn(Aws::String &&value)
void SetBotId(const Aws::String &value)
const DataPrivacy & GetDataPrivacy() const
UpdateBotRequest & WithRoleArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector