AWS SDK for C++

AWS SDK for C++ Version 1.11.905

Loading...
Searching...
No Matches
CreateRegistryRequest.h
1
6#pragma once
7#include <aws/agent-registry-control/AgentRegistryControlRequest.h>
8#include <aws/agent-registry-control/AgentRegistryControl_EXPORTS.h>
9#include <aws/agent-registry-control/model/ApprovalConfiguration.h>
10#include <aws/agent-registry-control/model/AutoDetectionConfiguration.h>
11#include <aws/agent-registry-control/model/CustomMetadataSchemaConfiguration.h>
12#include <aws/agent-registry-control/model/DiscoveryConfiguration.h>
13#include <aws/agent-registry-control/model/EncryptionConfiguration.h>
14#include <aws/core/utils/UUID.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17
18#include <utility>
19
20namespace Aws {
21namespace AgentRegistryControl {
22namespace Model {
23
30 public:
31 AWS_AGENTREGISTRYCONTROL_API CreateRegistryRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateRegistry"; }
38
39 AWS_AGENTREGISTRYCONTROL_API Aws::String SerializePayload() const override;
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template <typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) {
67 m_descriptionHasBeenSet = true;
68 m_description = std::forward<DescriptionT>(value);
69 }
70 template <typename DescriptionT = Aws::String>
71 CreateRegistryRequest& WithDescription(DescriptionT&& value) {
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76
78
85 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
86 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
87 template <typename EncryptionConfigurationT = EncryptionConfiguration>
88 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
89 m_encryptionConfigurationHasBeenSet = true;
90 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
91 }
92 template <typename EncryptionConfigurationT = EncryptionConfiguration>
93 CreateRegistryRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
94 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
95 return *this;
96 }
98
100
103 inline const DiscoveryConfiguration& GetDiscoveryConfiguration() const { return m_discoveryConfiguration; }
104 inline bool DiscoveryConfigurationHasBeenSet() const { return m_discoveryConfigurationHasBeenSet; }
105 template <typename DiscoveryConfigurationT = DiscoveryConfiguration>
106 void SetDiscoveryConfiguration(DiscoveryConfigurationT&& value) {
107 m_discoveryConfigurationHasBeenSet = true;
108 m_discoveryConfiguration = std::forward<DiscoveryConfigurationT>(value);
109 }
110 template <typename DiscoveryConfigurationT = DiscoveryConfiguration>
111 CreateRegistryRequest& WithDiscoveryConfiguration(DiscoveryConfigurationT&& value) {
112 SetDiscoveryConfiguration(std::forward<DiscoveryConfigurationT>(value));
113 return *this;
114 }
116
118
123 inline const Aws::String& GetClientToken() const { return m_clientToken; }
124 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
125 template <typename ClientTokenT = Aws::String>
126 void SetClientToken(ClientTokenT&& value) {
127 m_clientTokenHasBeenSet = true;
128 m_clientToken = std::forward<ClientTokenT>(value);
129 }
130 template <typename ClientTokenT = Aws::String>
131 CreateRegistryRequest& WithClientToken(ClientTokenT&& value) {
132 SetClientToken(std::forward<ClientTokenT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
144 void SetTags(TagsT&& value) {
145 m_tagsHasBeenSet = true;
146 m_tags = std::forward<TagsT>(value);
147 }
148 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
150 SetTags(std::forward<TagsT>(value));
151 return *this;
152 }
153 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
154 CreateRegistryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
155 m_tagsHasBeenSet = true;
156 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
157 return *this;
158 }
160
162
165 inline const ApprovalConfiguration& GetApprovalConfiguration() const { return m_approvalConfiguration; }
166 inline bool ApprovalConfigurationHasBeenSet() const { return m_approvalConfigurationHasBeenSet; }
167 template <typename ApprovalConfigurationT = ApprovalConfiguration>
168 void SetApprovalConfiguration(ApprovalConfigurationT&& value) {
169 m_approvalConfigurationHasBeenSet = true;
170 m_approvalConfiguration = std::forward<ApprovalConfigurationT>(value);
171 }
172 template <typename ApprovalConfigurationT = ApprovalConfiguration>
173 CreateRegistryRequest& WithApprovalConfiguration(ApprovalConfigurationT&& value) {
174 SetApprovalConfiguration(std::forward<ApprovalConfigurationT>(value));
175 return *this;
176 }
178
180
186 return m_customMetadataSchemaConfiguration;
187 }
188 inline bool CustomMetadataSchemaConfigurationHasBeenSet() const { return m_customMetadataSchemaConfigurationHasBeenSet; }
189 template <typename CustomMetadataSchemaConfigurationT = CustomMetadataSchemaConfiguration>
190 void SetCustomMetadataSchemaConfiguration(CustomMetadataSchemaConfigurationT&& value) {
191 m_customMetadataSchemaConfigurationHasBeenSet = true;
192 m_customMetadataSchemaConfiguration = std::forward<CustomMetadataSchemaConfigurationT>(value);
193 }
194 template <typename CustomMetadataSchemaConfigurationT = CustomMetadataSchemaConfiguration>
195 CreateRegistryRequest& WithCustomMetadataSchemaConfiguration(CustomMetadataSchemaConfigurationT&& value) {
196 SetCustomMetadataSchemaConfiguration(std::forward<CustomMetadataSchemaConfigurationT>(value));
197 return *this;
198 }
200
202
208 inline const AutoDetectionConfiguration& GetAutoDetectionConfiguration() const { return m_autoDetectionConfiguration; }
209 inline bool AutoDetectionConfigurationHasBeenSet() const { return m_autoDetectionConfigurationHasBeenSet; }
210 template <typename AutoDetectionConfigurationT = AutoDetectionConfiguration>
211 void SetAutoDetectionConfiguration(AutoDetectionConfigurationT&& value) {
212 m_autoDetectionConfigurationHasBeenSet = true;
213 m_autoDetectionConfiguration = std::forward<AutoDetectionConfigurationT>(value);
214 }
215 template <typename AutoDetectionConfigurationT = AutoDetectionConfiguration>
216 CreateRegistryRequest& WithAutoDetectionConfiguration(AutoDetectionConfigurationT&& value) {
217 SetAutoDetectionConfiguration(std::forward<AutoDetectionConfigurationT>(value));
218 return *this;
219 }
221 private:
222 Aws::String m_name;
223
224 Aws::String m_description;
225
226 EncryptionConfiguration m_encryptionConfiguration;
227
228 DiscoveryConfiguration m_discoveryConfiguration;
229
231
233
234 ApprovalConfiguration m_approvalConfiguration;
235
236 CustomMetadataSchemaConfiguration m_customMetadataSchemaConfiguration;
237
238 AutoDetectionConfiguration m_autoDetectionConfiguration;
239 bool m_nameHasBeenSet = false;
240 bool m_descriptionHasBeenSet = false;
241 bool m_encryptionConfigurationHasBeenSet = false;
242 bool m_discoveryConfigurationHasBeenSet = false;
243 bool m_clientTokenHasBeenSet = true;
244 bool m_tagsHasBeenSet = false;
245 bool m_approvalConfigurationHasBeenSet = false;
246 bool m_customMetadataSchemaConfigurationHasBeenSet = false;
247 bool m_autoDetectionConfigurationHasBeenSet = false;
248};
249
250} // namespace Model
251} // namespace AgentRegistryControl
252} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const AutoDetectionConfiguration & GetAutoDetectionConfiguration() const
CreateRegistryRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
AWS_AGENTREGISTRYCONTROL_API CreateRegistryRequest()=default
CreateRegistryRequest & WithDescription(DescriptionT &&value)
const CustomMetadataSchemaConfiguration & GetCustomMetadataSchemaConfiguration() const
virtual const char * GetServiceRequestName() const override
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
CreateRegistryRequest & WithAutoDetectionConfiguration(AutoDetectionConfigurationT &&value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
AWS_AGENTREGISTRYCONTROL_API Aws::String SerializePayload() const override
void SetApprovalConfiguration(ApprovalConfigurationT &&value)
void SetCustomMetadataSchemaConfiguration(CustomMetadataSchemaConfigurationT &&value)
CreateRegistryRequest & WithApprovalConfiguration(ApprovalConfigurationT &&value)
CreateRegistryRequest & WithCustomMetadataSchemaConfiguration(CustomMetadataSchemaConfigurationT &&value)
const DiscoveryConfiguration & GetDiscoveryConfiguration() const
const ApprovalConfiguration & GetApprovalConfiguration() const
CreateRegistryRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateRegistryRequest & WithClientToken(ClientTokenT &&value)
void SetDiscoveryConfiguration(DiscoveryConfigurationT &&value)
void SetAutoDetectionConfiguration(AutoDetectionConfigurationT &&value)
CreateRegistryRequest & WithDiscoveryConfiguration(DiscoveryConfigurationT &&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