AWS SDK for C++

AWS SDK for C++ Version 1.11.899

Loading...
Searching...
No Matches
CreateSpaceRequest.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmniRequest.h>
8#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
9#include <aws/cloudwatchomni/model/EncryptionConfiguration.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CloudWatchOmni {
18namespace Model {
19
23 public:
24 AWS_CLOUDWATCHOMNI_API CreateSpaceRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateSpace"; }
31
32 AWS_CLOUDWATCHOMNI_API Aws::String SerializePayload() const override;
33
34 AWS_CLOUDWATCHOMNI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
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>
50 CreateSpaceRequest& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDomainId() const { return m_domainId; }
61 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
62 template <typename DomainIdT = Aws::String>
63 void SetDomainId(DomainIdT&& value) {
64 m_domainIdHasBeenSet = true;
65 m_domainId = std::forward<DomainIdT>(value);
66 }
67 template <typename DomainIdT = Aws::String>
68 CreateSpaceRequest& WithDomainId(DomainIdT&& value) {
69 SetDomainId(std::forward<DomainIdT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
80 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
81 template <typename DataAccessRoleArnT = Aws::String>
82 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) {
83 m_dataAccessRoleArnHasBeenSet = true;
84 m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value);
85 }
86 template <typename DataAccessRoleArnT = Aws::String>
87 CreateSpaceRequest& WithDataAccessRoleArn(DataAccessRoleArnT&& value) {
88 SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value));
89 return *this;
90 }
92
94
99 inline const Aws::String& GetAgentCoreEvaluationRoleArn() const { return m_agentCoreEvaluationRoleArn; }
100 inline bool AgentCoreEvaluationRoleArnHasBeenSet() const { return m_agentCoreEvaluationRoleArnHasBeenSet; }
101 template <typename AgentCoreEvaluationRoleArnT = Aws::String>
102 void SetAgentCoreEvaluationRoleArn(AgentCoreEvaluationRoleArnT&& value) {
103 m_agentCoreEvaluationRoleArnHasBeenSet = true;
104 m_agentCoreEvaluationRoleArn = std::forward<AgentCoreEvaluationRoleArnT>(value);
105 }
106 template <typename AgentCoreEvaluationRoleArnT = Aws::String>
107 CreateSpaceRequest& WithAgentCoreEvaluationRoleArn(AgentCoreEvaluationRoleArnT&& value) {
108 SetAgentCoreEvaluationRoleArn(std::forward<AgentCoreEvaluationRoleArnT>(value));
109 return *this;
110 }
112
114
118 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
119 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
120 template <typename EncryptionConfigurationT = EncryptionConfiguration>
121 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
122 m_encryptionConfigurationHasBeenSet = true;
123 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
124 }
125 template <typename EncryptionConfigurationT = EncryptionConfiguration>
126 CreateSpaceRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
127 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(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>>
144 CreateSpaceRequest& WithTags(TagsT&& value) {
145 SetTags(std::forward<TagsT>(value));
146 return *this;
147 }
148 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
149 CreateSpaceRequest& 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::String& GetClientToken() const { return m_clientToken; }
162 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
163 template <typename ClientTokenT = Aws::String>
164 void SetClientToken(ClientTokenT&& value) {
165 m_clientTokenHasBeenSet = true;
166 m_clientToken = std::forward<ClientTokenT>(value);
167 }
168 template <typename ClientTokenT = Aws::String>
169 CreateSpaceRequest& WithClientToken(ClientTokenT&& value) {
170 SetClientToken(std::forward<ClientTokenT>(value));
171 return *this;
172 }
174 private:
175 Aws::String m_name;
176
177 Aws::String m_domainId;
178
179 Aws::String m_dataAccessRoleArn;
180
181 Aws::String m_agentCoreEvaluationRoleArn;
182
183 EncryptionConfiguration m_encryptionConfiguration;
184
186
188 bool m_nameHasBeenSet = false;
189 bool m_domainIdHasBeenSet = false;
190 bool m_dataAccessRoleArnHasBeenSet = false;
191 bool m_agentCoreEvaluationRoleArnHasBeenSet = false;
192 bool m_encryptionConfigurationHasBeenSet = false;
193 bool m_tagsHasBeenSet = false;
194 bool m_clientTokenHasBeenSet = true;
195};
196
197} // namespace Model
198} // namespace CloudWatchOmni
199} // namespace Aws
CreateSpaceRequest & WithTags(TagsT &&value)
void SetAgentCoreEvaluationRoleArn(AgentCoreEvaluationRoleArnT &&value)
virtual const char * GetServiceRequestName() const override
void SetDataAccessRoleArn(DataAccessRoleArnT &&value)
CreateSpaceRequest & WithName(NameT &&value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
CreateSpaceRequest & WithDomainId(DomainIdT &&value)
CreateSpaceRequest & WithAgentCoreEvaluationRoleArn(AgentCoreEvaluationRoleArnT &&value)
AWS_CLOUDWATCHOMNI_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHOMNI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
CreateSpaceRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
CreateSpaceRequest & WithClientToken(ClientTokenT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CLOUDWATCHOMNI_API CreateSpaceRequest()=default
const Aws::String & GetAgentCoreEvaluationRoleArn() const
CreateSpaceRequest & WithDataAccessRoleArn(DataAccessRoleArnT &&value)
CreateSpaceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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