AWS SDK for C++

AWS SDK for C++ Version 1.11.866

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/DiscoveryConfiguration.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace AgentRegistryControl {
19namespace Model {
20
27 public:
28 AWS_AGENTREGISTRYCONTROL_API CreateRegistryRequest() = 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 "CreateRegistry"; }
35
36 AWS_AGENTREGISTRYCONTROL_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>
68 CreateRegistryRequest& WithDescription(DescriptionT&& value) {
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
78 inline const DiscoveryConfiguration& GetDiscoveryConfiguration() const { return m_discoveryConfiguration; }
79 inline bool DiscoveryConfigurationHasBeenSet() const { return m_discoveryConfigurationHasBeenSet; }
80 template <typename DiscoveryConfigurationT = DiscoveryConfiguration>
81 void SetDiscoveryConfiguration(DiscoveryConfigurationT&& value) {
82 m_discoveryConfigurationHasBeenSet = true;
83 m_discoveryConfiguration = std::forward<DiscoveryConfigurationT>(value);
84 }
85 template <typename DiscoveryConfigurationT = DiscoveryConfiguration>
86 CreateRegistryRequest& WithDiscoveryConfiguration(DiscoveryConfigurationT&& value) {
87 SetDiscoveryConfiguration(std::forward<DiscoveryConfigurationT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetClientToken() const { return m_clientToken; }
97 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
98 template <typename ClientTokenT = Aws::String>
99 void SetClientToken(ClientTokenT&& value) {
100 m_clientTokenHasBeenSet = true;
101 m_clientToken = std::forward<ClientTokenT>(value);
102 }
103 template <typename ClientTokenT = Aws::String>
104 CreateRegistryRequest& WithClientToken(ClientTokenT&& value) {
105 SetClientToken(std::forward<ClientTokenT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
117 void SetTags(TagsT&& value) {
118 m_tagsHasBeenSet = true;
119 m_tags = std::forward<TagsT>(value);
120 }
121 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 SetTags(std::forward<TagsT>(value));
124 return *this;
125 }
126 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
127 CreateRegistryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
128 m_tagsHasBeenSet = true;
129 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
130 return *this;
131 }
133
135
138 inline const ApprovalConfiguration& GetApprovalConfiguration() const { return m_approvalConfiguration; }
139 inline bool ApprovalConfigurationHasBeenSet() const { return m_approvalConfigurationHasBeenSet; }
140 template <typename ApprovalConfigurationT = ApprovalConfiguration>
141 void SetApprovalConfiguration(ApprovalConfigurationT&& value) {
142 m_approvalConfigurationHasBeenSet = true;
143 m_approvalConfiguration = std::forward<ApprovalConfigurationT>(value);
144 }
145 template <typename ApprovalConfigurationT = ApprovalConfiguration>
146 CreateRegistryRequest& WithApprovalConfiguration(ApprovalConfigurationT&& value) {
147 SetApprovalConfiguration(std::forward<ApprovalConfigurationT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_name;
153
154 Aws::String m_description;
155
156 DiscoveryConfiguration m_discoveryConfiguration;
157
159
161
162 ApprovalConfiguration m_approvalConfiguration;
163 bool m_nameHasBeenSet = false;
164 bool m_descriptionHasBeenSet = false;
165 bool m_discoveryConfigurationHasBeenSet = false;
166 bool m_clientTokenHasBeenSet = true;
167 bool m_tagsHasBeenSet = false;
168 bool m_approvalConfigurationHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace AgentRegistryControl
173} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_AGENTREGISTRYCONTROL_API CreateRegistryRequest()=default
CreateRegistryRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
AWS_AGENTREGISTRYCONTROL_API Aws::String SerializePayload() const override
void SetApprovalConfiguration(ApprovalConfigurationT &&value)
CreateRegistryRequest & WithApprovalConfiguration(ApprovalConfigurationT &&value)
const DiscoveryConfiguration & GetDiscoveryConfiguration() const
const ApprovalConfiguration & GetApprovalConfiguration() const
CreateRegistryRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateRegistryRequest & WithClientToken(ClientTokenT &&value)
void SetDiscoveryConfiguration(DiscoveryConfigurationT &&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