AWS SDK for C++

AWS SDK for C++ Version 1.11.887

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
14#include <utility>
15
16namespace Aws {
17namespace DevOpsAgent {
18namespace Model {
19
26 public:
27 AWS_DEVOPSAGENT_API CreateAgentSpaceRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAgentSpace"; }
34
35 AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetLocale() const { return m_locale; }
79 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
80 template <typename LocaleT = Aws::String>
81 void SetLocale(LocaleT&& value) {
82 m_localeHasBeenSet = true;
83 m_locale = std::forward<LocaleT>(value);
84 }
85 template <typename LocaleT = Aws::String>
87 SetLocale(std::forward<LocaleT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
98 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
99 template <typename KmsKeyArnT = Aws::String>
100 void SetKmsKeyArn(KmsKeyArnT&& value) {
101 m_kmsKeyArnHasBeenSet = true;
102 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
103 }
104 template <typename KmsKeyArnT = Aws::String>
106 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
107 return *this;
108 }
110
112
117 inline const Aws::String& GetClientToken() const { return m_clientToken; }
118 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
119 template <typename ClientTokenT = Aws::String>
120 void SetClientToken(ClientTokenT&& value) {
121 m_clientTokenHasBeenSet = true;
122 m_clientToken = std::forward<ClientTokenT>(value);
123 }
124 template <typename ClientTokenT = Aws::String>
126 SetClientToken(std::forward<ClientTokenT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
138 void SetTags(TagsT&& value) {
139 m_tagsHasBeenSet = true;
140 m_tags = std::forward<TagsT>(value);
141 }
142 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
144 SetTags(std::forward<TagsT>(value));
145 return *this;
146 }
147 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
148 CreateAgentSpaceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
149 m_tagsHasBeenSet = true;
150 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::Map<AgentSpacePreferenceKey, bool>& GetPreferences() const { return m_preferences; }
161 inline bool PreferencesHasBeenSet() const { return m_preferencesHasBeenSet; }
162 template <typename PreferencesT = Aws::Map<AgentSpacePreferenceKey, bool>>
163 void SetPreferences(PreferencesT&& value) {
164 m_preferencesHasBeenSet = true;
165 m_preferences = std::forward<PreferencesT>(value);
166 }
167 template <typename PreferencesT = Aws::Map<AgentSpacePreferenceKey, bool>>
169 SetPreferences(std::forward<PreferencesT>(value));
170 return *this;
171 }
173 m_preferencesHasBeenSet = true;
174 m_preferences.emplace(key, value);
175 return *this;
176 }
178 private:
179 Aws::String m_name;
180
181 Aws::String m_description;
182
183 Aws::String m_locale;
184
185 Aws::String m_kmsKeyArn;
186
188
190
192 bool m_nameHasBeenSet = false;
193 bool m_descriptionHasBeenSet = false;
194 bool m_localeHasBeenSet = false;
195 bool m_kmsKeyArnHasBeenSet = false;
196 bool m_clientTokenHasBeenSet = true;
197 bool m_tagsHasBeenSet = false;
198 bool m_preferencesHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace DevOpsAgent
203} // namespace Aws
CreateAgentSpaceRequest & WithDescription(DescriptionT &&value)
CreateAgentSpaceRequest & WithPreferences(PreferencesT &&value)
CreateAgentSpaceRequest & WithName(NameT &&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