AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyIpamRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/AddIpamOperatingRegion.h>
12#include <aws/ec2/model/IpamMeteredAccount.h>
13#include <aws/ec2/model/IpamTier.h>
14#include <aws/ec2/model/RemoveIpamOperatingRegion.h>
15
16#include <utility>
17
18namespace Aws {
19namespace EC2 {
20namespace Model {
21
25 public:
26 AWS_EC2_API ModifyIpamRequest() = 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 "ModifyIpam"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
47 inline bool GetDryRun() const { return m_dryRun; }
48 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
49 inline void SetDryRun(bool value) {
50 m_dryRunHasBeenSet = true;
51 m_dryRun = value;
52 }
53 inline ModifyIpamRequest& WithDryRun(bool value) {
54 SetDryRun(value);
55 return *this;
56 }
58
60
63 inline const Aws::String& GetIpamId() const { return m_ipamId; }
64 inline bool IpamIdHasBeenSet() const { return m_ipamIdHasBeenSet; }
65 template <typename IpamIdT = Aws::String>
66 void SetIpamId(IpamIdT&& value) {
67 m_ipamIdHasBeenSet = true;
68 m_ipamId = std::forward<IpamIdT>(value);
69 }
70 template <typename IpamIdT = Aws::String>
71 ModifyIpamRequest& WithIpamId(IpamIdT&& value) {
72 SetIpamId(std::forward<IpamIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template <typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) {
85 m_descriptionHasBeenSet = true;
86 m_description = std::forward<DescriptionT>(value);
87 }
88 template <typename DescriptionT = Aws::String>
89 ModifyIpamRequest& WithDescription(DescriptionT&& value) {
90 SetDescription(std::forward<DescriptionT>(value));
91 return *this;
92 }
94
96
104 inline const Aws::Vector<AddIpamOperatingRegion>& GetAddOperatingRegions() const { return m_addOperatingRegions; }
105 inline bool AddOperatingRegionsHasBeenSet() const { return m_addOperatingRegionsHasBeenSet; }
106 template <typename AddOperatingRegionsT = Aws::Vector<AddIpamOperatingRegion>>
107 void SetAddOperatingRegions(AddOperatingRegionsT&& value) {
108 m_addOperatingRegionsHasBeenSet = true;
109 m_addOperatingRegions = std::forward<AddOperatingRegionsT>(value);
110 }
111 template <typename AddOperatingRegionsT = Aws::Vector<AddIpamOperatingRegion>>
112 ModifyIpamRequest& WithAddOperatingRegions(AddOperatingRegionsT&& value) {
113 SetAddOperatingRegions(std::forward<AddOperatingRegionsT>(value));
114 return *this;
115 }
116 template <typename AddOperatingRegionsT = AddIpamOperatingRegion>
117 ModifyIpamRequest& AddAddOperatingRegions(AddOperatingRegionsT&& value) {
118 m_addOperatingRegionsHasBeenSet = true;
119 m_addOperatingRegions.emplace_back(std::forward<AddOperatingRegionsT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Vector<RemoveIpamOperatingRegion>& GetRemoveOperatingRegions() const { return m_removeOperatingRegions; }
129 inline bool RemoveOperatingRegionsHasBeenSet() const { return m_removeOperatingRegionsHasBeenSet; }
130 template <typename RemoveOperatingRegionsT = Aws::Vector<RemoveIpamOperatingRegion>>
131 void SetRemoveOperatingRegions(RemoveOperatingRegionsT&& value) {
132 m_removeOperatingRegionsHasBeenSet = true;
133 m_removeOperatingRegions = std::forward<RemoveOperatingRegionsT>(value);
134 }
135 template <typename RemoveOperatingRegionsT = Aws::Vector<RemoveIpamOperatingRegion>>
136 ModifyIpamRequest& WithRemoveOperatingRegions(RemoveOperatingRegionsT&& value) {
137 SetRemoveOperatingRegions(std::forward<RemoveOperatingRegionsT>(value));
138 return *this;
139 }
140 template <typename RemoveOperatingRegionsT = RemoveIpamOperatingRegion>
141 ModifyIpamRequest& AddRemoveOperatingRegions(RemoveOperatingRegionsT&& value) {
142 m_removeOperatingRegionsHasBeenSet = true;
143 m_removeOperatingRegions.emplace_back(std::forward<RemoveOperatingRegionsT>(value));
144 return *this;
145 }
147
149
155 inline IpamTier GetTier() const { return m_tier; }
156 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
157 inline void SetTier(IpamTier value) {
158 m_tierHasBeenSet = true;
159 m_tier = value;
160 }
162 SetTier(value);
163 return *this;
164 }
166
168
172 inline bool GetEnablePrivateGua() const { return m_enablePrivateGua; }
173 inline bool EnablePrivateGuaHasBeenSet() const { return m_enablePrivateGuaHasBeenSet; }
174 inline void SetEnablePrivateGua(bool value) {
175 m_enablePrivateGuaHasBeenSet = true;
176 m_enablePrivateGua = value;
177 }
179 SetEnablePrivateGua(value);
180 return *this;
181 }
183
185
196 inline IpamMeteredAccount GetMeteredAccount() const { return m_meteredAccount; }
197 inline bool MeteredAccountHasBeenSet() const { return m_meteredAccountHasBeenSet; }
199 m_meteredAccountHasBeenSet = true;
200 m_meteredAccount = value;
201 }
203 SetMeteredAccount(value);
204 return *this;
205 }
207 private:
208 bool m_dryRun{false};
209
210 Aws::String m_ipamId;
211
212 Aws::String m_description;
213
214 Aws::Vector<AddIpamOperatingRegion> m_addOperatingRegions;
215
216 Aws::Vector<RemoveIpamOperatingRegion> m_removeOperatingRegions;
217
219
220 bool m_enablePrivateGua{false};
221
223 bool m_dryRunHasBeenSet = false;
224 bool m_ipamIdHasBeenSet = false;
225 bool m_descriptionHasBeenSet = false;
226 bool m_addOperatingRegionsHasBeenSet = false;
227 bool m_removeOperatingRegionsHasBeenSet = false;
228 bool m_tierHasBeenSet = false;
229 bool m_enablePrivateGuaHasBeenSet = false;
230 bool m_meteredAccountHasBeenSet = false;
231};
232
233} // namespace Model
234} // namespace EC2
235} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetAddOperatingRegions(AddOperatingRegionsT &&value)
const Aws::Vector< AddIpamOperatingRegion > & GetAddOperatingRegions() const
const Aws::Vector< RemoveIpamOperatingRegion > & GetRemoveOperatingRegions() const
ModifyIpamRequest & WithIpamId(IpamIdT &&value)
ModifyIpamRequest & WithMeteredAccount(IpamMeteredAccount value)
virtual const char * GetServiceRequestName() const override
ModifyIpamRequest & WithDryRun(bool value)
AWS_EC2_API ModifyIpamRequest()=default
void SetRemoveOperatingRegions(RemoveOperatingRegionsT &&value)
IpamMeteredAccount GetMeteredAccount() const
ModifyIpamRequest & AddRemoveOperatingRegions(RemoveOperatingRegionsT &&value)
ModifyIpamRequest & AddAddOperatingRegions(AddOperatingRegionsT &&value)
const Aws::String & GetDescription() const
void SetDescription(DescriptionT &&value)
ModifyIpamRequest & WithRemoveOperatingRegions(RemoveOperatingRegionsT &&value)
void SetMeteredAccount(IpamMeteredAccount value)
ModifyIpamRequest & WithAddOperatingRegions(AddOperatingRegionsT &&value)
ModifyIpamRequest & WithTier(IpamTier value)
const Aws::String & GetIpamId() const
ModifyIpamRequest & WithDescription(DescriptionT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyIpamRequest & WithEnablePrivateGua(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector