AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AllocateAddressResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/model/DomainType.h>
10#include <aws/ec2/model/ResponseMetadata.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Xml
21{
22 class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
30 {
31 public:
32 AWS_EC2_API AllocateAddressResponse() = default;
35
36
38
41 inline const Aws::String& GetAllocationId() const { return m_allocationId; }
42 template<typename AllocationIdT = Aws::String>
43 void SetAllocationId(AllocationIdT&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::forward<AllocationIdT>(value); }
44 template<typename AllocationIdT = Aws::String>
45 AllocateAddressResponse& WithAllocationId(AllocationIdT&& value) { SetAllocationId(std::forward<AllocationIdT>(value)); return *this;}
47
49
52 inline const Aws::String& GetPublicIpv4Pool() const { return m_publicIpv4Pool; }
53 template<typename PublicIpv4PoolT = Aws::String>
54 void SetPublicIpv4Pool(PublicIpv4PoolT&& value) { m_publicIpv4PoolHasBeenSet = true; m_publicIpv4Pool = std::forward<PublicIpv4PoolT>(value); }
55 template<typename PublicIpv4PoolT = Aws::String>
56 AllocateAddressResponse& WithPublicIpv4Pool(PublicIpv4PoolT&& value) { SetPublicIpv4Pool(std::forward<PublicIpv4PoolT>(value)); return *this;}
58
60
64 inline const Aws::String& GetNetworkBorderGroup() const { return m_networkBorderGroup; }
65 template<typename NetworkBorderGroupT = Aws::String>
66 void SetNetworkBorderGroup(NetworkBorderGroupT&& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = std::forward<NetworkBorderGroupT>(value); }
67 template<typename NetworkBorderGroupT = Aws::String>
68 AllocateAddressResponse& WithNetworkBorderGroup(NetworkBorderGroupT&& value) { SetNetworkBorderGroup(std::forward<NetworkBorderGroupT>(value)); return *this;}
70
72
75 inline DomainType GetDomain() const { return m_domain; }
76 inline void SetDomain(DomainType value) { m_domainHasBeenSet = true; m_domain = value; }
77 inline AllocateAddressResponse& WithDomain(DomainType value) { SetDomain(value); return *this;}
79
81
84 inline const Aws::String& GetCustomerOwnedIp() const { return m_customerOwnedIp; }
85 template<typename CustomerOwnedIpT = Aws::String>
86 void SetCustomerOwnedIp(CustomerOwnedIpT&& value) { m_customerOwnedIpHasBeenSet = true; m_customerOwnedIp = std::forward<CustomerOwnedIpT>(value); }
87 template<typename CustomerOwnedIpT = Aws::String>
88 AllocateAddressResponse& WithCustomerOwnedIp(CustomerOwnedIpT&& value) { SetCustomerOwnedIp(std::forward<CustomerOwnedIpT>(value)); return *this;}
90
92
95 inline const Aws::String& GetCustomerOwnedIpv4Pool() const { return m_customerOwnedIpv4Pool; }
96 template<typename CustomerOwnedIpv4PoolT = Aws::String>
97 void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = std::forward<CustomerOwnedIpv4PoolT>(value); }
98 template<typename CustomerOwnedIpv4PoolT = Aws::String>
99 AllocateAddressResponse& WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) { SetCustomerOwnedIpv4Pool(std::forward<CustomerOwnedIpv4PoolT>(value)); return *this;}
101
103
107 inline const Aws::String& GetCarrierIp() const { return m_carrierIp; }
108 template<typename CarrierIpT = Aws::String>
109 void SetCarrierIp(CarrierIpT&& value) { m_carrierIpHasBeenSet = true; m_carrierIp = std::forward<CarrierIpT>(value); }
110 template<typename CarrierIpT = Aws::String>
111 AllocateAddressResponse& WithCarrierIp(CarrierIpT&& value) { SetCarrierIp(std::forward<CarrierIpT>(value)); return *this;}
113
115
118 inline const Aws::String& GetPublicIp() const { return m_publicIp; }
119 template<typename PublicIpT = Aws::String>
120 void SetPublicIp(PublicIpT&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::forward<PublicIpT>(value); }
121 template<typename PublicIpT = Aws::String>
122 AllocateAddressResponse& WithPublicIp(PublicIpT&& value) { SetPublicIp(std::forward<PublicIpT>(value)); return *this;}
124
126
127 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
128 template<typename ResponseMetadataT = ResponseMetadata>
129 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
130 template<typename ResponseMetadataT = ResponseMetadata>
131 AllocateAddressResponse& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
133 private:
134
135 Aws::String m_allocationId;
136 bool m_allocationIdHasBeenSet = false;
137
138 Aws::String m_publicIpv4Pool;
139 bool m_publicIpv4PoolHasBeenSet = false;
140
141 Aws::String m_networkBorderGroup;
142 bool m_networkBorderGroupHasBeenSet = false;
143
145 bool m_domainHasBeenSet = false;
146
147 Aws::String m_customerOwnedIp;
148 bool m_customerOwnedIpHasBeenSet = false;
149
150 Aws::String m_customerOwnedIpv4Pool;
151 bool m_customerOwnedIpv4PoolHasBeenSet = false;
152
153 Aws::String m_carrierIp;
154 bool m_carrierIpHasBeenSet = false;
155
156 Aws::String m_publicIp;
157 bool m_publicIpHasBeenSet = false;
158
159 ResponseMetadata m_responseMetadata;
160 bool m_responseMetadataHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace EC2
165} // namespace Aws
void SetNetworkBorderGroup(NetworkBorderGroupT &&value)
AllocateAddressResponse & WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT &&value)
void SetCustomerOwnedIp(CustomerOwnedIpT &&value)
AllocateAddressResponse & WithNetworkBorderGroup(NetworkBorderGroupT &&value)
AllocateAddressResponse & WithDomain(DomainType value)
AWS_EC2_API AllocateAddressResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetResponseMetadata(ResponseMetadataT &&value)
const Aws::String & GetCustomerOwnedIpv4Pool() const
AllocateAddressResponse & WithCustomerOwnedIp(CustomerOwnedIpT &&value)
AllocateAddressResponse & WithCarrierIp(CarrierIpT &&value)
AllocateAddressResponse & WithAllocationId(AllocationIdT &&value)
AllocateAddressResponse & WithPublicIpv4Pool(PublicIpv4PoolT &&value)
AWS_EC2_API AllocateAddressResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AllocateAddressResponse & WithPublicIp(PublicIpT &&value)
AllocateAddressResponse & WithResponseMetadata(ResponseMetadataT &&value)
const ResponseMetadata & GetResponseMetadata() const
void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT &&value)
void SetPublicIpv4Pool(PublicIpv4PoolT &&value)
AWS_EC2_API AllocateAddressResponse()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument