AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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
13#include <utility>
14
15namespace Aws {
16namespace DevOpsAgent {
17namespace Model {
18
25 public:
26 AWS_DEVOPSAGENT_API CreateAgentSpaceRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateAgentSpace"; }
33
34 AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetLocale() const { return m_locale; }
78 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
79 template <typename LocaleT = Aws::String>
80 void SetLocale(LocaleT&& value) {
81 m_localeHasBeenSet = true;
82 m_locale = std::forward<LocaleT>(value);
83 }
84 template <typename LocaleT = Aws::String>
86 SetLocale(std::forward<LocaleT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
97 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
98 template <typename KmsKeyArnT = Aws::String>
99 void SetKmsKeyArn(KmsKeyArnT&& value) {
100 m_kmsKeyArnHasBeenSet = true;
101 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
102 }
103 template <typename KmsKeyArnT = Aws::String>
105 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
106 return *this;
107 }
109
111
116 inline const Aws::String& GetClientToken() const { return m_clientToken; }
117 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
118 template <typename ClientTokenT = Aws::String>
119 void SetClientToken(ClientTokenT&& value) {
120 m_clientTokenHasBeenSet = true;
121 m_clientToken = std::forward<ClientTokenT>(value);
122 }
123 template <typename ClientTokenT = Aws::String>
125 SetClientToken(std::forward<ClientTokenT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
135 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
136 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
137 void SetTags(TagsT&& value) {
138 m_tagsHasBeenSet = true;
139 m_tags = std::forward<TagsT>(value);
140 }
141 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
143 SetTags(std::forward<TagsT>(value));
144 return *this;
145 }
146 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
147 CreateAgentSpaceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
150 return *this;
151 }
153 private:
154 Aws::String m_name;
155
156 Aws::String m_description;
157
158 Aws::String m_locale;
159
160 Aws::String m_kmsKeyArn;
161
163
165 bool m_nameHasBeenSet = false;
166 bool m_descriptionHasBeenSet = false;
167 bool m_localeHasBeenSet = false;
168 bool m_kmsKeyArnHasBeenSet = false;
169 bool m_clientTokenHasBeenSet = true;
170 bool m_tagsHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace DevOpsAgent
175} // namespace Aws
CreateAgentSpaceRequest & WithDescription(DescriptionT &&value)
CreateAgentSpaceRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
CreateAgentSpaceRequest & WithTags(TagsT &&value)
CreateAgentSpaceRequest & WithKmsKeyArn(KmsKeyArnT &&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