AWS SDK for C++  1.9.130
AWS SDK for C++
ProvisionByoipCidrRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "ProvisionByoipCidr"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
48  inline const Aws::String& GetCidr() const{ return m_cidr; }
49 
56  inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
57 
64  inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; }
65 
72  inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); }
73 
80  inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); }
81 
88  inline ProvisionByoipCidrRequest& WithCidr(const Aws::String& value) { SetCidr(value); return *this;}
89 
96  inline ProvisionByoipCidrRequest& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;}
97 
104  inline ProvisionByoipCidrRequest& WithCidr(const char* value) { SetCidr(value); return *this;}
105 
106 
111  inline const CidrAuthorizationContext& GetCidrAuthorizationContext() const{ return m_cidrAuthorizationContext; }
112 
117  inline bool CidrAuthorizationContextHasBeenSet() const { return m_cidrAuthorizationContextHasBeenSet; }
118 
123  inline void SetCidrAuthorizationContext(const CidrAuthorizationContext& value) { m_cidrAuthorizationContextHasBeenSet = true; m_cidrAuthorizationContext = value; }
124 
129  inline void SetCidrAuthorizationContext(CidrAuthorizationContext&& value) { m_cidrAuthorizationContextHasBeenSet = true; m_cidrAuthorizationContext = std::move(value); }
130 
135  inline ProvisionByoipCidrRequest& WithCidrAuthorizationContext(const CidrAuthorizationContext& value) { SetCidrAuthorizationContext(value); return *this;}
136 
141  inline ProvisionByoipCidrRequest& WithCidrAuthorizationContext(CidrAuthorizationContext&& value) { SetCidrAuthorizationContext(std::move(value)); return *this;}
142 
143 
148  inline bool GetPubliclyAdvertisable() const{ return m_publiclyAdvertisable; }
149 
154  inline bool PubliclyAdvertisableHasBeenSet() const { return m_publiclyAdvertisableHasBeenSet; }
155 
160  inline void SetPubliclyAdvertisable(bool value) { m_publiclyAdvertisableHasBeenSet = true; m_publiclyAdvertisable = value; }
161 
166  inline ProvisionByoipCidrRequest& WithPubliclyAdvertisable(bool value) { SetPubliclyAdvertisable(value); return *this;}
167 
168 
172  inline const Aws::String& GetDescription() const{ return m_description; }
173 
177  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
178 
182  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
183 
187  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
188 
192  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
193 
197  inline ProvisionByoipCidrRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
198 
202  inline ProvisionByoipCidrRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
203 
207  inline ProvisionByoipCidrRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
208 
209 
216  inline bool GetDryRun() const{ return m_dryRun; }
217 
224  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
225 
232  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
233 
240  inline ProvisionByoipCidrRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
241 
242 
246  inline const Aws::Vector<TagSpecification>& GetPoolTagSpecifications() const{ return m_poolTagSpecifications; }
247 
251  inline bool PoolTagSpecificationsHasBeenSet() const { return m_poolTagSpecificationsHasBeenSet; }
252 
256  inline void SetPoolTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_poolTagSpecificationsHasBeenSet = true; m_poolTagSpecifications = value; }
257 
261  inline void SetPoolTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_poolTagSpecificationsHasBeenSet = true; m_poolTagSpecifications = std::move(value); }
262 
266  inline ProvisionByoipCidrRequest& WithPoolTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetPoolTagSpecifications(value); return *this;}
267 
271  inline ProvisionByoipCidrRequest& WithPoolTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetPoolTagSpecifications(std::move(value)); return *this;}
272 
276  inline ProvisionByoipCidrRequest& AddPoolTagSpecifications(const TagSpecification& value) { m_poolTagSpecificationsHasBeenSet = true; m_poolTagSpecifications.push_back(value); return *this; }
277 
281  inline ProvisionByoipCidrRequest& AddPoolTagSpecifications(TagSpecification&& value) { m_poolTagSpecificationsHasBeenSet = true; m_poolTagSpecifications.push_back(std::move(value)); return *this; }
282 
283 
287  inline bool GetMultiRegion() const{ return m_multiRegion; }
288 
292  inline bool MultiRegionHasBeenSet() const { return m_multiRegionHasBeenSet; }
293 
297  inline void SetMultiRegion(bool value) { m_multiRegionHasBeenSet = true; m_multiRegion = value; }
298 
302  inline ProvisionByoipCidrRequest& WithMultiRegion(bool value) { SetMultiRegion(value); return *this;}
303 
304  private:
305 
306  Aws::String m_cidr;
307  bool m_cidrHasBeenSet;
308 
309  CidrAuthorizationContext m_cidrAuthorizationContext;
310  bool m_cidrAuthorizationContextHasBeenSet;
311 
312  bool m_publiclyAdvertisable;
313  bool m_publiclyAdvertisableHasBeenSet;
314 
315  Aws::String m_description;
316  bool m_descriptionHasBeenSet;
317 
318  bool m_dryRun;
319  bool m_dryRunHasBeenSet;
320 
321  Aws::Vector<TagSpecification> m_poolTagSpecifications;
322  bool m_poolTagSpecificationsHasBeenSet;
323 
324  bool m_multiRegion;
325  bool m_multiRegionHasBeenSet;
326  };
327 
328 } // namespace Model
329 } // namespace EC2
330 } // namespace Aws
TagSpecification.h
Aws::EC2::Model::ProvisionByoipCidrRequest::WithDryRun
ProvisionByoipCidrRequest & WithDryRun(bool value)
Definition: ProvisionByoipCidrRequest.h:240
Aws::EC2::Model::ProvisionByoipCidrRequest::WithPubliclyAdvertisable
ProvisionByoipCidrRequest & WithPubliclyAdvertisable(bool value)
Definition: ProvisionByoipCidrRequest.h:166
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ProvisionByoipCidrRequest::SetDryRun
void SetDryRun(bool value)
Definition: ProvisionByoipCidrRequest.h:232
Aws::EC2::Model::ProvisionByoipCidrRequest::SetMultiRegion
void SetMultiRegion(bool value)
Definition: ProvisionByoipCidrRequest.h:297
Aws::EC2::Model::ProvisionByoipCidrRequest::WithDescription
ProvisionByoipCidrRequest & WithDescription(const char *value)
Definition: ProvisionByoipCidrRequest.h:207
Aws::EC2::Model::ProvisionByoipCidrRequest::SetPoolTagSpecifications
void SetPoolTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: ProvisionByoipCidrRequest.h:256
Aws::EC2::Model::ProvisionByoipCidrRequest
Definition: ProvisionByoipCidrRequest.h:25
Aws::EC2::Model::ProvisionByoipCidrRequest::WithDescription
ProvisionByoipCidrRequest & WithDescription(Aws::String &&value)
Definition: ProvisionByoipCidrRequest.h:202
Aws::EC2::Model::ProvisionByoipCidrRequest::GetDryRun
bool GetDryRun() const
Definition: ProvisionByoipCidrRequest.h:216
Aws::EC2::Model::ProvisionByoipCidrRequest::GetMultiRegion
bool GetMultiRegion() const
Definition: ProvisionByoipCidrRequest.h:287
Aws::EC2::Model::ProvisionByoipCidrRequest::GetCidrAuthorizationContext
const CidrAuthorizationContext & GetCidrAuthorizationContext() const
Definition: ProvisionByoipCidrRequest.h:111
Aws::EC2::Model::ProvisionByoipCidrRequest::GetCidr
const Aws::String & GetCidr() const
Definition: ProvisionByoipCidrRequest.h:48
Aws::EC2::Model::ProvisionByoipCidrRequest::AddPoolTagSpecifications
ProvisionByoipCidrRequest & AddPoolTagSpecifications(const TagSpecification &value)
Definition: ProvisionByoipCidrRequest.h:276
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ProvisionByoipCidrRequest::WithCidrAuthorizationContext
ProvisionByoipCidrRequest & WithCidrAuthorizationContext(CidrAuthorizationContext &&value)
Definition: ProvisionByoipCidrRequest.h:141
Aws::EC2::Model::ProvisionByoipCidrRequest::SetCidr
void SetCidr(const char *value)
Definition: ProvisionByoipCidrRequest.h:80
Aws::EC2::Model::ProvisionByoipCidrRequest::MultiRegionHasBeenSet
bool MultiRegionHasBeenSet() const
Definition: ProvisionByoipCidrRequest.h:292
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ProvisionByoipCidrRequest::WithCidr
ProvisionByoipCidrRequest & WithCidr(const Aws::String &value)
Definition: ProvisionByoipCidrRequest.h:88
Aws::EC2::Model::ProvisionByoipCidrRequest::WithCidr
ProvisionByoipCidrRequest & WithCidr(Aws::String &&value)
Definition: ProvisionByoipCidrRequest.h:96
AWSVector.h
Aws::EC2::Model::ProvisionByoipCidrRequest::WithDescription
ProvisionByoipCidrRequest & WithDescription(const Aws::String &value)
Definition: ProvisionByoipCidrRequest.h:197
Aws::EC2::Model::ProvisionByoipCidrRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CidrAuthorizationContext
Definition: CidrAuthorizationContext.h:37
Aws::EC2::Model::ProvisionByoipCidrRequest::SetCidr
void SetCidr(Aws::String &&value)
Definition: ProvisionByoipCidrRequest.h:72
Aws::EC2::Model::ProvisionByoipCidrRequest::WithMultiRegion
ProvisionByoipCidrRequest & WithMultiRegion(bool value)
Definition: ProvisionByoipCidrRequest.h:302
Aws::EC2::Model::ProvisionByoipCidrRequest::GetPoolTagSpecifications
const Aws::Vector< TagSpecification > & GetPoolTagSpecifications() const
Definition: ProvisionByoipCidrRequest.h:246
Aws::EC2::Model::ProvisionByoipCidrRequest::CidrAuthorizationContextHasBeenSet
bool CidrAuthorizationContextHasBeenSet() const
Definition: ProvisionByoipCidrRequest.h:117
Aws::EC2::Model::ProvisionByoipCidrRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: ProvisionByoipCidrRequest.h:187
Aws::EC2::Model::ProvisionByoipCidrRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ProvisionByoipCidrRequest.h:177
EC2Request.h
Aws::EC2::Model::ProvisionByoipCidrRequest::SetPoolTagSpecifications
void SetPoolTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: ProvisionByoipCidrRequest.h:261
Aws::EC2::Model::ProvisionByoipCidrRequest::GetPubliclyAdvertisable
bool GetPubliclyAdvertisable() const
Definition: ProvisionByoipCidrRequest.h:148
AWSString.h
Aws::EC2::Model::ProvisionByoipCidrRequest::GetDescription
const Aws::String & GetDescription() const
Definition: ProvisionByoipCidrRequest.h:172
Aws::EC2::Model::ProvisionByoipCidrRequest::SetCidrAuthorizationContext
void SetCidrAuthorizationContext(const CidrAuthorizationContext &value)
Definition: ProvisionByoipCidrRequest.h:123
Aws::EC2::Model::ProvisionByoipCidrRequest::SetDescription
void SetDescription(const char *value)
Definition: ProvisionByoipCidrRequest.h:192
Aws::EC2::Model::ProvisionByoipCidrRequest::WithPoolTagSpecifications
ProvisionByoipCidrRequest & WithPoolTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: ProvisionByoipCidrRequest.h:271
Aws::EC2::Model::ProvisionByoipCidrRequest::PubliclyAdvertisableHasBeenSet
bool PubliclyAdvertisableHasBeenSet() const
Definition: ProvisionByoipCidrRequest.h:154
Aws::EC2::Model::ProvisionByoipCidrRequest::SetPubliclyAdvertisable
void SetPubliclyAdvertisable(bool value)
Definition: ProvisionByoipCidrRequest.h:160
Aws::EC2::Model::ProvisionByoipCidrRequest::WithCidr
ProvisionByoipCidrRequest & WithCidr(const char *value)
Definition: ProvisionByoipCidrRequest.h:104
Aws::EC2::Model::ProvisionByoipCidrRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ProvisionByoipCidrRequest.h:224
CidrAuthorizationContext.h
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ProvisionByoipCidrRequest::ProvisionByoipCidrRequest
ProvisionByoipCidrRequest()
Aws::EC2::Model::ProvisionByoipCidrRequest::AddPoolTagSpecifications
ProvisionByoipCidrRequest & AddPoolTagSpecifications(TagSpecification &&value)
Definition: ProvisionByoipCidrRequest.h:281
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ProvisionByoipCidrRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: ProvisionByoipCidrRequest.h:182
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ProvisionByoipCidrRequest::CidrHasBeenSet
bool CidrHasBeenSet() const
Definition: ProvisionByoipCidrRequest.h:56
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
EC2_EXPORTS.h
Aws::EC2::Model::ProvisionByoipCidrRequest::WithCidrAuthorizationContext
ProvisionByoipCidrRequest & WithCidrAuthorizationContext(const CidrAuthorizationContext &value)
Definition: ProvisionByoipCidrRequest.h:135
Aws::EC2::Model::ProvisionByoipCidrRequest::WithPoolTagSpecifications
ProvisionByoipCidrRequest & WithPoolTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: ProvisionByoipCidrRequest.h:266
Aws::EC2::Model::ProvisionByoipCidrRequest::PoolTagSpecificationsHasBeenSet
bool PoolTagSpecificationsHasBeenSet() const
Definition: ProvisionByoipCidrRequest.h:251
Aws::EC2::Model::ProvisionByoipCidrRequest::SetCidrAuthorizationContext
void SetCidrAuthorizationContext(CidrAuthorizationContext &&value)
Definition: ProvisionByoipCidrRequest.h:129
Aws::EC2::Model::ProvisionByoipCidrRequest::SetCidr
void SetCidr(const Aws::String &value)
Definition: ProvisionByoipCidrRequest.h:64
Aws::EC2::Model::ProvisionByoipCidrRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ProvisionByoipCidrRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ProvisionByoipCidrRequest.h:33