AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AllocateAddressRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/DomainType.h>
10#include <aws/core/utils/memory/stl/AWSString.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 "AllocateAddress"; }
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
46 inline const DomainType& GetDomain() const{ return m_domain; }
47 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
48 inline void SetDomain(const DomainType& value) { m_domainHasBeenSet = true; m_domain = value; }
49 inline void SetDomain(DomainType&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
50 inline AllocateAddressRequest& WithDomain(const DomainType& value) { SetDomain(value); return *this;}
51 inline AllocateAddressRequest& WithDomain(DomainType&& value) { SetDomain(std::move(value)); return *this;}
53
55
59 inline const Aws::String& GetAddress() const{ return m_address; }
60 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
61 inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
62 inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
63 inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
64 inline AllocateAddressRequest& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
65 inline AllocateAddressRequest& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
66 inline AllocateAddressRequest& WithAddress(const char* value) { SetAddress(value); return *this;}
68
70
75 inline const Aws::String& GetPublicIpv4Pool() const{ return m_publicIpv4Pool; }
76 inline bool PublicIpv4PoolHasBeenSet() const { return m_publicIpv4PoolHasBeenSet; }
77 inline void SetPublicIpv4Pool(const Aws::String& value) { m_publicIpv4PoolHasBeenSet = true; m_publicIpv4Pool = value; }
78 inline void SetPublicIpv4Pool(Aws::String&& value) { m_publicIpv4PoolHasBeenSet = true; m_publicIpv4Pool = std::move(value); }
79 inline void SetPublicIpv4Pool(const char* value) { m_publicIpv4PoolHasBeenSet = true; m_publicIpv4Pool.assign(value); }
80 inline AllocateAddressRequest& WithPublicIpv4Pool(const Aws::String& value) { SetPublicIpv4Pool(value); return *this;}
81 inline AllocateAddressRequest& WithPublicIpv4Pool(Aws::String&& value) { SetPublicIpv4Pool(std::move(value)); return *this;}
82 inline AllocateAddressRequest& WithPublicIpv4Pool(const char* value) { SetPublicIpv4Pool(value); return *this;}
84
86
92 inline const Aws::String& GetNetworkBorderGroup() const{ return m_networkBorderGroup; }
93 inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; }
94 inline void SetNetworkBorderGroup(const Aws::String& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = value; }
95 inline void SetNetworkBorderGroup(Aws::String&& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = std::move(value); }
96 inline void SetNetworkBorderGroup(const char* value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup.assign(value); }
98 inline AllocateAddressRequest& WithNetworkBorderGroup(Aws::String&& value) { SetNetworkBorderGroup(std::move(value)); return *this;}
99 inline AllocateAddressRequest& WithNetworkBorderGroup(const char* value) { SetNetworkBorderGroup(value); return *this;}
101
103
108 inline const Aws::String& GetCustomerOwnedIpv4Pool() const{ return m_customerOwnedIpv4Pool; }
109 inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; }
110 inline void SetCustomerOwnedIpv4Pool(const Aws::String& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = value; }
111 inline void SetCustomerOwnedIpv4Pool(Aws::String&& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = std::move(value); }
112 inline void SetCustomerOwnedIpv4Pool(const char* value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool.assign(value); }
115 inline AllocateAddressRequest& WithCustomerOwnedIpv4Pool(const char* value) { SetCustomerOwnedIpv4Pool(value); return *this;}
117
119
122 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
123 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
124 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
125 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
128 inline AllocateAddressRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
129 inline AllocateAddressRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
131
133
140 inline const Aws::String& GetIpamPoolId() const{ return m_ipamPoolId; }
141 inline bool IpamPoolIdHasBeenSet() const { return m_ipamPoolIdHasBeenSet; }
142 inline void SetIpamPoolId(const Aws::String& value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId = value; }
143 inline void SetIpamPoolId(Aws::String&& value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId = std::move(value); }
144 inline void SetIpamPoolId(const char* value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId.assign(value); }
145 inline AllocateAddressRequest& WithIpamPoolId(const Aws::String& value) { SetIpamPoolId(value); return *this;}
146 inline AllocateAddressRequest& WithIpamPoolId(Aws::String&& value) { SetIpamPoolId(std::move(value)); return *this;}
147 inline AllocateAddressRequest& WithIpamPoolId(const char* value) { SetIpamPoolId(value); return *this;}
149
151
157 inline bool GetDryRun() const{ return m_dryRun; }
158 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
159 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
160 inline AllocateAddressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
162 private:
163
164 DomainType m_domain;
165 bool m_domainHasBeenSet = false;
166
167 Aws::String m_address;
168 bool m_addressHasBeenSet = false;
169
170 Aws::String m_publicIpv4Pool;
171 bool m_publicIpv4PoolHasBeenSet = false;
172
173 Aws::String m_networkBorderGroup;
174 bool m_networkBorderGroupHasBeenSet = false;
175
176 Aws::String m_customerOwnedIpv4Pool;
177 bool m_customerOwnedIpv4PoolHasBeenSet = false;
178
179 Aws::Vector<TagSpecification> m_tagSpecifications;
180 bool m_tagSpecificationsHasBeenSet = false;
181
182 Aws::String m_ipamPoolId;
183 bool m_ipamPoolIdHasBeenSet = false;
184
185 bool m_dryRun;
186 bool m_dryRunHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace EC2
191} // namespace Aws
void SetCustomerOwnedIpv4Pool(const Aws::String &value)
AllocateAddressRequest & WithNetworkBorderGroup(const Aws::String &value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
AllocateAddressRequest & WithNetworkBorderGroup(const char *value)
AllocateAddressRequest & WithAddress(const Aws::String &value)
AllocateAddressRequest & WithIpamPoolId(const char *value)
AllocateAddressRequest & WithAddress(const char *value)
AllocateAddressRequest & WithIpamPoolId(const Aws::String &value)
AllocateAddressRequest & WithPublicIpv4Pool(const Aws::String &value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
AllocateAddressRequest & WithCustomerOwnedIpv4Pool(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
AllocateAddressRequest & WithPublicIpv4Pool(const char *value)
virtual const char * GetServiceRequestName() const override
AllocateAddressRequest & WithPublicIpv4Pool(Aws::String &&value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
AllocateAddressRequest & AddTagSpecifications(const TagSpecification &value)
AllocateAddressRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetNetworkBorderGroup(const Aws::String &value)
AllocateAddressRequest & AddTagSpecifications(TagSpecification &&value)
const Aws::String & GetNetworkBorderGroup() const
AllocateAddressRequest & WithCustomerOwnedIpv4Pool(Aws::String &&value)
void SetPublicIpv4Pool(const Aws::String &value)
AllocateAddressRequest & WithDomain(const DomainType &value)
AllocateAddressRequest & WithNetworkBorderGroup(Aws::String &&value)
AllocateAddressRequest & WithDryRun(bool value)
AllocateAddressRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
AllocateAddressRequest & WithDomain(DomainType &&value)
void SetAddress(const Aws::String &value)
AllocateAddressRequest & WithIpamPoolId(Aws::String &&value)
AllocateAddressRequest & WithAddress(Aws::String &&value)
AllocateAddressRequest & WithCustomerOwnedIpv4Pool(const Aws::String &value)
const Aws::String & GetCustomerOwnedIpv4Pool() const
void SetIpamPoolId(const Aws::String &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector