AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AddressTransfer.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/AddressTransferStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
33 public:
34 AWS_EC2_API AddressTransfer() = default;
35 AWS_EC2_API AddressTransfer(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const Aws::String& GetPublicIp() const { return m_publicIp; }
46 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
47 template <typename PublicIpT = Aws::String>
48 void SetPublicIp(PublicIpT&& value) {
49 m_publicIpHasBeenSet = true;
50 m_publicIp = std::forward<PublicIpT>(value);
51 }
52 template <typename PublicIpT = Aws::String>
53 AddressTransfer& WithPublicIp(PublicIpT&& value) {
54 SetPublicIp(std::forward<PublicIpT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetAllocationId() const { return m_allocationId; }
64 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
65 template <typename AllocationIdT = Aws::String>
66 void SetAllocationId(AllocationIdT&& value) {
67 m_allocationIdHasBeenSet = true;
68 m_allocationId = std::forward<AllocationIdT>(value);
69 }
70 template <typename AllocationIdT = Aws::String>
71 AddressTransfer& WithAllocationId(AllocationIdT&& value) {
72 SetAllocationId(std::forward<AllocationIdT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetTransferAccountId() const { return m_transferAccountId; }
83 inline bool TransferAccountIdHasBeenSet() const { return m_transferAccountIdHasBeenSet; }
84 template <typename TransferAccountIdT = Aws::String>
85 void SetTransferAccountId(TransferAccountIdT&& value) {
86 m_transferAccountIdHasBeenSet = true;
87 m_transferAccountId = std::forward<TransferAccountIdT>(value);
88 }
89 template <typename TransferAccountIdT = Aws::String>
90 AddressTransfer& WithTransferAccountId(TransferAccountIdT&& value) {
91 SetTransferAccountId(std::forward<TransferAccountIdT>(value));
92 return *this;
93 }
95
97
103 inline const Aws::Utils::DateTime& GetTransferOfferExpirationTimestamp() const { return m_transferOfferExpirationTimestamp; }
104 inline bool TransferOfferExpirationTimestampHasBeenSet() const { return m_transferOfferExpirationTimestampHasBeenSet; }
105 template <typename TransferOfferExpirationTimestampT = Aws::Utils::DateTime>
106 void SetTransferOfferExpirationTimestamp(TransferOfferExpirationTimestampT&& value) {
107 m_transferOfferExpirationTimestampHasBeenSet = true;
108 m_transferOfferExpirationTimestamp = std::forward<TransferOfferExpirationTimestampT>(value);
109 }
110 template <typename TransferOfferExpirationTimestampT = Aws::Utils::DateTime>
111 AddressTransfer& WithTransferOfferExpirationTimestamp(TransferOfferExpirationTimestampT&& value) {
112 SetTransferOfferExpirationTimestamp(std::forward<TransferOfferExpirationTimestampT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Utils::DateTime& GetTransferOfferAcceptedTimestamp() const { return m_transferOfferAcceptedTimestamp; }
122 inline bool TransferOfferAcceptedTimestampHasBeenSet() const { return m_transferOfferAcceptedTimestampHasBeenSet; }
123 template <typename TransferOfferAcceptedTimestampT = Aws::Utils::DateTime>
124 void SetTransferOfferAcceptedTimestamp(TransferOfferAcceptedTimestampT&& value) {
125 m_transferOfferAcceptedTimestampHasBeenSet = true;
126 m_transferOfferAcceptedTimestamp = std::forward<TransferOfferAcceptedTimestampT>(value);
127 }
128 template <typename TransferOfferAcceptedTimestampT = Aws::Utils::DateTime>
129 AddressTransfer& WithTransferOfferAcceptedTimestamp(TransferOfferAcceptedTimestampT&& value) {
130 SetTransferOfferAcceptedTimestamp(std::forward<TransferOfferAcceptedTimestampT>(value));
131 return *this;
132 }
134
136
139 inline AddressTransferStatus GetAddressTransferStatus() const { return m_addressTransferStatus; }
140 inline bool AddressTransferStatusHasBeenSet() const { return m_addressTransferStatusHasBeenSet; }
142 m_addressTransferStatusHasBeenSet = true;
143 m_addressTransferStatus = value;
144 }
147 return *this;
148 }
150 private:
151 Aws::String m_publicIp;
152
153 Aws::String m_allocationId;
154
155 Aws::String m_transferAccountId;
156
157 Aws::Utils::DateTime m_transferOfferExpirationTimestamp{};
158
159 Aws::Utils::DateTime m_transferOfferAcceptedTimestamp{};
160
162 bool m_publicIpHasBeenSet = false;
163 bool m_allocationIdHasBeenSet = false;
164 bool m_transferAccountIdHasBeenSet = false;
165 bool m_transferOfferExpirationTimestampHasBeenSet = false;
166 bool m_transferOfferAcceptedTimestampHasBeenSet = false;
167 bool m_addressTransferStatusHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace EC2
172} // namespace Aws
AddressTransfer & WithAllocationId(AllocationIdT &&value)
bool TransferOfferExpirationTimestampHasBeenSet() const
AWS_EC2_API AddressTransfer & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPublicIp(PublicIpT &&value)
void SetAddressTransferStatus(AddressTransferStatus value)
AddressTransferStatus GetAddressTransferStatus() const
void SetAllocationId(AllocationIdT &&value)
AddressTransfer & WithTransferAccountId(TransferAccountIdT &&value)
AWS_EC2_API AddressTransfer(const Aws::Utils::Xml::XmlNode &xmlNode)
AddressTransfer & WithTransferOfferExpirationTimestamp(TransferOfferExpirationTimestampT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetTransferOfferAcceptedTimestamp(TransferOfferAcceptedTimestampT &&value)
AWS_EC2_API AddressTransfer()=default
const Aws::Utils::DateTime & GetTransferOfferAcceptedTimestamp() const
const Aws::String & GetTransferAccountId() const
const Aws::Utils::DateTime & GetTransferOfferExpirationTimestamp() const
void SetTransferOfferExpirationTimestamp(TransferOfferExpirationTimestampT &&value)
bool TransferOfferAcceptedTimestampHasBeenSet() const
AddressTransfer & WithAddressTransferStatus(AddressTransferStatus value)
const Aws::String & GetPublicIp() const
const Aws::String & GetAllocationId() const
AddressTransfer & WithPublicIp(PublicIpT &&value)
AddressTransfer & WithTransferOfferAcceptedTimestamp(TransferOfferAcceptedTimestampT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetTransferAccountId(TransferAccountIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream