AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateAgentSpaceRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/devops-agent/DevOpsAgentRequest.h>
11#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
12#include <aws/devops-agent/model/AgentSpacePreferenceKey.h>
13#include <aws/devops-agent/model/AwsSourceMode.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DevOpsAgent {
19namespace Model {
20
27 public:
28 AWS_DEVOPSAGENT_API CreateAgentSpaceRequest() = default;
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 "CreateAgentSpace"; }
35
36 AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetLocale() const { return m_locale; }
80 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
81 template <typename LocaleT = Aws::String>
82 void SetLocale(LocaleT&& value) {
83 m_localeHasBeenSet = true;
84 m_locale = std::forward<LocaleT>(value);
85 }
86 template <typename LocaleT = Aws::String>
88 SetLocale(std::forward<LocaleT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
99 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
100 template <typename KmsKeyArnT = Aws::String>
101 void SetKmsKeyArn(KmsKeyArnT&& value) {
102 m_kmsKeyArnHasBeenSet = true;
103 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
104 }
105 template <typename KmsKeyArnT = Aws::String>
107 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
108 return *this;
109 }
111
113
118 inline const Aws::String& GetClientToken() const { return m_clientToken; }
119 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
120 template <typename ClientTokenT = Aws::String>
121 void SetClientToken(ClientTokenT&& value) {
122 m_clientTokenHasBeenSet = true;
123 m_clientToken = std::forward<ClientTokenT>(value);
124 }
125 template <typename ClientTokenT = Aws::String>
127 SetClientToken(std::forward<ClientTokenT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
139 void SetTags(TagsT&& value) {
140 m_tagsHasBeenSet = true;
141 m_tags = std::forward<TagsT>(value);
142 }
143 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
145 SetTags(std::forward<TagsT>(value));
146 return *this;
147 }
148 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
149 CreateAgentSpaceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
150 m_tagsHasBeenSet = true;
151 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
152 return *this;
153 }
155
157
161 inline const Aws::Map<AgentSpacePreferenceKey, bool>& GetPreferences() const { return m_preferences; }
162 inline bool PreferencesHasBeenSet() const { return m_preferencesHasBeenSet; }
163 template <typename PreferencesT = Aws::Map<AgentSpacePreferenceKey, bool>>
164 void SetPreferences(PreferencesT&& value) {
165 m_preferencesHasBeenSet = true;
166 m_preferences = std::forward<PreferencesT>(value);
167 }
168 template <typename PreferencesT = Aws::Map<AgentSpacePreferenceKey, bool>>
170 SetPreferences(std::forward<PreferencesT>(value));
171 return *this;
172 }
174 m_preferencesHasBeenSet = true;
175 m_preferences.emplace(key, value);
176 return *this;
177 }
179
181
186 inline AwsSourceMode GetAwsSourceMode() const { return m_awsSourceMode; }
187 inline bool AwsSourceModeHasBeenSet() const { return m_awsSourceModeHasBeenSet; }
188 inline void SetAwsSourceMode(AwsSourceMode value) {
189 m_awsSourceModeHasBeenSet = true;
190 m_awsSourceMode = value;
191 }
193 SetAwsSourceMode(value);
194 return *this;
195 }
197 private:
198 Aws::String m_name;
199
200 Aws::String m_description;
201
202 Aws::String m_locale;
203
204 Aws::String m_kmsKeyArn;
205
207
209
211
212 AwsSourceMode m_awsSourceMode{AwsSourceMode::NOT_SET};
213 bool m_nameHasBeenSet = false;
214 bool m_descriptionHasBeenSet = false;
215 bool m_localeHasBeenSet = false;
216 bool m_kmsKeyArnHasBeenSet = false;
217 bool m_clientTokenHasBeenSet = true;
218 bool m_tagsHasBeenSet = false;
219 bool m_preferencesHasBeenSet = false;
220 bool m_awsSourceModeHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace DevOpsAgent
225} // namespace Aws
CreateAgentSpaceRequest & WithDescription(DescriptionT &&value)
CreateAgentSpaceRequest & WithPreferences(PreferencesT &&value)
CreateAgentSpaceRequest & WithName(NameT &&value)
CreateAgentSpaceRequest & WithAwsSourceMode(AwsSourceMode value)
virtual const char * GetServiceRequestName() const override
CreateAgentSpaceRequest & WithTags(TagsT &&value)
CreateAgentSpaceRequest & WithKmsKeyArn(KmsKeyArnT &&value)
const Aws::Map< AgentSpacePreferenceKey, bool > & GetPreferences() const
CreateAgentSpaceRequest & AddPreferences(AgentSpacePreferenceKey key, bool value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAgentSpaceRequest & WithClientToken(ClientTokenT &&value)
CreateAgentSpaceRequest & WithLocale(LocaleT &&value)
AWS_DEVOPSAGENT_API CreateAgentSpaceRequest()=default
AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override
CreateAgentSpaceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String