AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AddressTransfer.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ec2/model/AddressTransferStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_EC2_API AddressTransfer() = default;
40 AWS_EC2_API AddressTransfer(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetPublicIp() const { return m_publicIp; }
52 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
53 template<typename PublicIpT = Aws::String>
54 void SetPublicIp(PublicIpT&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::forward<PublicIpT>(value); }
55 template<typename PublicIpT = Aws::String>
56 AddressTransfer& WithPublicIp(PublicIpT&& value) { SetPublicIp(std::forward<PublicIpT>(value)); return *this;}
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) { m_allocationIdHasBeenSet = true; m_allocationId = std::forward<AllocationIdT>(value); }
67 template<typename AllocationIdT = Aws::String>
68 AddressTransfer& WithAllocationId(AllocationIdT&& value) { SetAllocationId(std::forward<AllocationIdT>(value)); return *this;}
70
72
76 inline const Aws::String& GetTransferAccountId() const { return m_transferAccountId; }
77 inline bool TransferAccountIdHasBeenSet() const { return m_transferAccountIdHasBeenSet; }
78 template<typename TransferAccountIdT = Aws::String>
79 void SetTransferAccountId(TransferAccountIdT&& value) { m_transferAccountIdHasBeenSet = true; m_transferAccountId = std::forward<TransferAccountIdT>(value); }
80 template<typename TransferAccountIdT = Aws::String>
81 AddressTransfer& WithTransferAccountId(TransferAccountIdT&& value) { SetTransferAccountId(std::forward<TransferAccountIdT>(value)); return *this;}
83
85
91 inline const Aws::Utils::DateTime& GetTransferOfferExpirationTimestamp() const { return m_transferOfferExpirationTimestamp; }
92 inline bool TransferOfferExpirationTimestampHasBeenSet() const { return m_transferOfferExpirationTimestampHasBeenSet; }
93 template<typename TransferOfferExpirationTimestampT = Aws::Utils::DateTime>
94 void SetTransferOfferExpirationTimestamp(TransferOfferExpirationTimestampT&& value) { m_transferOfferExpirationTimestampHasBeenSet = true; m_transferOfferExpirationTimestamp = std::forward<TransferOfferExpirationTimestampT>(value); }
95 template<typename TransferOfferExpirationTimestampT = Aws::Utils::DateTime>
96 AddressTransfer& WithTransferOfferExpirationTimestamp(TransferOfferExpirationTimestampT&& value) { SetTransferOfferExpirationTimestamp(std::forward<TransferOfferExpirationTimestampT>(value)); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetTransferOfferAcceptedTimestamp() const { return m_transferOfferAcceptedTimestamp; }
104 inline bool TransferOfferAcceptedTimestampHasBeenSet() const { return m_transferOfferAcceptedTimestampHasBeenSet; }
105 template<typename TransferOfferAcceptedTimestampT = Aws::Utils::DateTime>
106 void SetTransferOfferAcceptedTimestamp(TransferOfferAcceptedTimestampT&& value) { m_transferOfferAcceptedTimestampHasBeenSet = true; m_transferOfferAcceptedTimestamp = std::forward<TransferOfferAcceptedTimestampT>(value); }
107 template<typename TransferOfferAcceptedTimestampT = Aws::Utils::DateTime>
108 AddressTransfer& WithTransferOfferAcceptedTimestamp(TransferOfferAcceptedTimestampT&& value) { SetTransferOfferAcceptedTimestamp(std::forward<TransferOfferAcceptedTimestampT>(value)); return *this;}
110
112
115 inline AddressTransferStatus GetAddressTransferStatus() const { return m_addressTransferStatus; }
116 inline bool AddressTransferStatusHasBeenSet() const { return m_addressTransferStatusHasBeenSet; }
117 inline void SetAddressTransferStatus(AddressTransferStatus value) { m_addressTransferStatusHasBeenSet = true; m_addressTransferStatus = value; }
120 private:
121
122 Aws::String m_publicIp;
123 bool m_publicIpHasBeenSet = false;
124
125 Aws::String m_allocationId;
126 bool m_allocationIdHasBeenSet = false;
127
128 Aws::String m_transferAccountId;
129 bool m_transferAccountIdHasBeenSet = false;
130
131 Aws::Utils::DateTime m_transferOfferExpirationTimestamp{};
132 bool m_transferOfferExpirationTimestampHasBeenSet = false;
133
134 Aws::Utils::DateTime m_transferOfferAcceptedTimestamp{};
135 bool m_transferOfferAcceptedTimestampHasBeenSet = false;
136
138 bool m_addressTransferStatusHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace EC2
143} // 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