AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateIpamScopeRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2Request.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/ExternalAuthorityConfiguration.h>
13#include <aws/ec2/model/TagSpecification.h>
14
15#include <utility>
16
17namespace Aws {
18namespace EC2 {
19namespace Model {
20
24 public:
25 AWS_EC2_API CreateIpamScopeRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateIpamScope"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
46 inline bool GetDryRun() const { return m_dryRun; }
47 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
48 inline void SetDryRun(bool value) {
49 m_dryRunHasBeenSet = true;
50 m_dryRun = value;
51 }
52 inline CreateIpamScopeRequest& WithDryRun(bool value) {
53 SetDryRun(value);
54 return *this;
55 }
57
59
62 inline const Aws::String& GetIpamId() const { return m_ipamId; }
63 inline bool IpamIdHasBeenSet() const { return m_ipamIdHasBeenSet; }
64 template <typename IpamIdT = Aws::String>
65 void SetIpamId(IpamIdT&& value) {
66 m_ipamIdHasBeenSet = true;
67 m_ipamId = std::forward<IpamIdT>(value);
68 }
69 template <typename IpamIdT = Aws::String>
71 SetIpamId(std::forward<IpamIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 CreateIpamScopeRequest& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
102 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
103 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
104 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
105 void SetTagSpecifications(TagSpecificationsT&& value) {
106 m_tagSpecificationsHasBeenSet = true;
107 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
108 }
109 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
110 CreateIpamScopeRequest& WithTagSpecifications(TagSpecificationsT&& value) {
111 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
112 return *this;
113 }
114 template <typename TagSpecificationsT = TagSpecification>
115 CreateIpamScopeRequest& AddTagSpecifications(TagSpecificationsT&& value) {
116 m_tagSpecificationsHasBeenSet = true;
117 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
118 return *this;
119 }
121
123
129 inline const Aws::String& GetClientToken() const { return m_clientToken; }
130 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
131 template <typename ClientTokenT = Aws::String>
132 void SetClientToken(ClientTokenT&& value) {
133 m_clientTokenHasBeenSet = true;
134 m_clientToken = std::forward<ClientTokenT>(value);
135 }
136 template <typename ClientTokenT = Aws::String>
138 SetClientToken(std::forward<ClientTokenT>(value));
139 return *this;
140 }
142
144
154 inline const ExternalAuthorityConfiguration& GetExternalAuthorityConfiguration() const { return m_externalAuthorityConfiguration; }
155 inline bool ExternalAuthorityConfigurationHasBeenSet() const { return m_externalAuthorityConfigurationHasBeenSet; }
156 template <typename ExternalAuthorityConfigurationT = ExternalAuthorityConfiguration>
157 void SetExternalAuthorityConfiguration(ExternalAuthorityConfigurationT&& value) {
158 m_externalAuthorityConfigurationHasBeenSet = true;
159 m_externalAuthorityConfiguration = std::forward<ExternalAuthorityConfigurationT>(value);
160 }
161 template <typename ExternalAuthorityConfigurationT = ExternalAuthorityConfiguration>
162 CreateIpamScopeRequest& WithExternalAuthorityConfiguration(ExternalAuthorityConfigurationT&& value) {
163 SetExternalAuthorityConfiguration(std::forward<ExternalAuthorityConfigurationT>(value));
164 return *this;
165 }
167 private:
168 bool m_dryRun{false};
169
170 Aws::String m_ipamId;
171
172 Aws::String m_description;
173
174 Aws::Vector<TagSpecification> m_tagSpecifications;
175
177
178 ExternalAuthorityConfiguration m_externalAuthorityConfiguration;
179 bool m_dryRunHasBeenSet = false;
180 bool m_ipamIdHasBeenSet = false;
181 bool m_descriptionHasBeenSet = false;
182 bool m_tagSpecificationsHasBeenSet = false;
183 bool m_clientTokenHasBeenSet = true;
184 bool m_externalAuthorityConfigurationHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace EC2
189} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
CreateIpamScopeRequest & WithDryRun(bool value)
CreateIpamScopeRequest & WithClientToken(ClientTokenT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateIpamScopeRequest & AddTagSpecifications(TagSpecificationsT &&value)
const ExternalAuthorityConfiguration & GetExternalAuthorityConfiguration() const
CreateIpamScopeRequest & WithDescription(DescriptionT &&value)
void SetExternalAuthorityConfiguration(ExternalAuthorityConfigurationT &&value)
AWS_EC2_API CreateIpamScopeRequest()=default
void SetTagSpecifications(TagSpecificationsT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateIpamScopeRequest & WithIpamId(IpamIdT &&value)
CreateIpamScopeRequest & WithExternalAuthorityConfiguration(ExternalAuthorityConfigurationT &&value)
CreateIpamScopeRequest & WithTagSpecifications(TagSpecificationsT &&value)
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector