AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ProvisionByoipCidrRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/CidrAuthorizationContext.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace 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_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
50 inline const Aws::String& GetCidr() const{ return m_cidr; }
51 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
52 inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; }
53 inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); }
54 inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); }
55 inline ProvisionByoipCidrRequest& WithCidr(const Aws::String& value) { SetCidr(value); return *this;}
56 inline ProvisionByoipCidrRequest& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;}
57 inline ProvisionByoipCidrRequest& WithCidr(const char* value) { SetCidr(value); return *this;}
59
61
65 inline const CidrAuthorizationContext& GetCidrAuthorizationContext() const{ return m_cidrAuthorizationContext; }
66 inline bool CidrAuthorizationContextHasBeenSet() const { return m_cidrAuthorizationContextHasBeenSet; }
67 inline void SetCidrAuthorizationContext(const CidrAuthorizationContext& value) { m_cidrAuthorizationContextHasBeenSet = true; m_cidrAuthorizationContext = value; }
68 inline void SetCidrAuthorizationContext(CidrAuthorizationContext&& value) { m_cidrAuthorizationContextHasBeenSet = true; m_cidrAuthorizationContext = std::move(value); }
72
74
78 inline bool GetPubliclyAdvertisable() const{ return m_publiclyAdvertisable; }
79 inline bool PubliclyAdvertisableHasBeenSet() const { return m_publiclyAdvertisableHasBeenSet; }
80 inline void SetPubliclyAdvertisable(bool value) { m_publiclyAdvertisableHasBeenSet = true; m_publiclyAdvertisable = value; }
83
85
88 inline const Aws::String& GetDescription() const{ return m_description; }
89 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
91 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
92 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
93 inline ProvisionByoipCidrRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
94 inline ProvisionByoipCidrRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
95 inline ProvisionByoipCidrRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
97
99
105 inline bool GetDryRun() const{ return m_dryRun; }
106 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
107 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
108 inline ProvisionByoipCidrRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
110
112
115 inline const Aws::Vector<TagSpecification>& GetPoolTagSpecifications() const{ return m_poolTagSpecifications; }
116 inline bool PoolTagSpecificationsHasBeenSet() const { return m_poolTagSpecificationsHasBeenSet; }
117 inline void SetPoolTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_poolTagSpecificationsHasBeenSet = true; m_poolTagSpecifications = value; }
118 inline void SetPoolTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_poolTagSpecificationsHasBeenSet = true; m_poolTagSpecifications = std::move(value); }
121 inline ProvisionByoipCidrRequest& AddPoolTagSpecifications(const TagSpecification& value) { m_poolTagSpecificationsHasBeenSet = true; m_poolTagSpecifications.push_back(value); return *this; }
122 inline ProvisionByoipCidrRequest& AddPoolTagSpecifications(TagSpecification&& value) { m_poolTagSpecificationsHasBeenSet = true; m_poolTagSpecifications.push_back(std::move(value)); return *this; }
124
126
129 inline bool GetMultiRegion() const{ return m_multiRegion; }
130 inline bool MultiRegionHasBeenSet() const { return m_multiRegionHasBeenSet; }
131 inline void SetMultiRegion(bool value) { m_multiRegionHasBeenSet = true; m_multiRegion = value; }
132 inline ProvisionByoipCidrRequest& WithMultiRegion(bool value) { SetMultiRegion(value); return *this;}
134
136
148 inline const Aws::String& GetNetworkBorderGroup() const{ return m_networkBorderGroup; }
149 inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; }
150 inline void SetNetworkBorderGroup(const Aws::String& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = value; }
151 inline void SetNetworkBorderGroup(Aws::String&& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = std::move(value); }
152 inline void SetNetworkBorderGroup(const char* value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup.assign(value); }
154 inline ProvisionByoipCidrRequest& WithNetworkBorderGroup(Aws::String&& value) { SetNetworkBorderGroup(std::move(value)); return *this;}
155 inline ProvisionByoipCidrRequest& WithNetworkBorderGroup(const char* value) { SetNetworkBorderGroup(value); return *this;}
157 private:
158
159 Aws::String m_cidr;
160 bool m_cidrHasBeenSet = false;
161
162 CidrAuthorizationContext m_cidrAuthorizationContext;
163 bool m_cidrAuthorizationContextHasBeenSet = false;
164
165 bool m_publiclyAdvertisable;
166 bool m_publiclyAdvertisableHasBeenSet = false;
167
168 Aws::String m_description;
169 bool m_descriptionHasBeenSet = false;
170
171 bool m_dryRun;
172 bool m_dryRunHasBeenSet = false;
173
174 Aws::Vector<TagSpecification> m_poolTagSpecifications;
175 bool m_poolTagSpecificationsHasBeenSet = false;
176
177 bool m_multiRegion;
178 bool m_multiRegionHasBeenSet = false;
179
180 Aws::String m_networkBorderGroup;
181 bool m_networkBorderGroupHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace EC2
186} // namespace Aws
ProvisionByoipCidrRequest & WithDescription(Aws::String &&value)
const CidrAuthorizationContext & GetCidrAuthorizationContext() const
ProvisionByoipCidrRequest & WithMultiRegion(bool value)
void SetPoolTagSpecifications(const Aws::Vector< TagSpecification > &value)
ProvisionByoipCidrRequest & WithCidrAuthorizationContext(CidrAuthorizationContext &&value)
ProvisionByoipCidrRequest & WithCidr(const Aws::String &value)
ProvisionByoipCidrRequest & WithDescription(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ProvisionByoipCidrRequest & WithDescription(const Aws::String &value)
ProvisionByoipCidrRequest & WithNetworkBorderGroup(const char *value)
ProvisionByoipCidrRequest & WithPoolTagSpecifications(const Aws::Vector< TagSpecification > &value)
ProvisionByoipCidrRequest & WithCidrAuthorizationContext(const CidrAuthorizationContext &value)
ProvisionByoipCidrRequest & WithNetworkBorderGroup(const Aws::String &value)
ProvisionByoipCidrRequest & WithNetworkBorderGroup(Aws::String &&value)
void SetCidrAuthorizationContext(const CidrAuthorizationContext &value)
const Aws::Vector< TagSpecification > & GetPoolTagSpecifications() const
ProvisionByoipCidrRequest & AddPoolTagSpecifications(const TagSpecification &value)
ProvisionByoipCidrRequest & AddPoolTagSpecifications(TagSpecification &&value)
ProvisionByoipCidrRequest & WithCidr(Aws::String &&value)
ProvisionByoipCidrRequest & WithCidr(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
ProvisionByoipCidrRequest & WithDryRun(bool value)
void SetPoolTagSpecifications(Aws::Vector< TagSpecification > &&value)
ProvisionByoipCidrRequest & WithPoolTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetCidrAuthorizationContext(CidrAuthorizationContext &&value)
virtual const char * GetServiceRequestName() const override
ProvisionByoipCidrRequest & WithPubliclyAdvertisable(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector