AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
54 inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); }
55 inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
56 inline AddressTransfer& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
57 inline AddressTransfer& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;}
58 inline AddressTransfer& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
60
62
65 inline const Aws::String& GetAllocationId() const{ return m_allocationId; }
66 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
67 inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
68 inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); }
69 inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
70 inline AddressTransfer& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
71 inline AddressTransfer& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;}
72 inline AddressTransfer& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
74
76
80 inline const Aws::String& GetTransferAccountId() const{ return m_transferAccountId; }
81 inline bool TransferAccountIdHasBeenSet() const { return m_transferAccountIdHasBeenSet; }
82 inline void SetTransferAccountId(const Aws::String& value) { m_transferAccountIdHasBeenSet = true; m_transferAccountId = value; }
83 inline void SetTransferAccountId(Aws::String&& value) { m_transferAccountIdHasBeenSet = true; m_transferAccountId = std::move(value); }
84 inline void SetTransferAccountId(const char* value) { m_transferAccountIdHasBeenSet = true; m_transferAccountId.assign(value); }
85 inline AddressTransfer& WithTransferAccountId(const Aws::String& value) { SetTransferAccountId(value); return *this;}
86 inline AddressTransfer& WithTransferAccountId(Aws::String&& value) { SetTransferAccountId(std::move(value)); return *this;}
87 inline AddressTransfer& WithTransferAccountId(const char* value) { SetTransferAccountId(value); return *this;}
89
91
97 inline const Aws::Utils::DateTime& GetTransferOfferExpirationTimestamp() const{ return m_transferOfferExpirationTimestamp; }
98 inline bool TransferOfferExpirationTimestampHasBeenSet() const { return m_transferOfferExpirationTimestampHasBeenSet; }
99 inline void SetTransferOfferExpirationTimestamp(const Aws::Utils::DateTime& value) { m_transferOfferExpirationTimestampHasBeenSet = true; m_transferOfferExpirationTimestamp = value; }
100 inline void SetTransferOfferExpirationTimestamp(Aws::Utils::DateTime&& value) { m_transferOfferExpirationTimestampHasBeenSet = true; m_transferOfferExpirationTimestamp = std::move(value); }
104
106
109 inline const Aws::Utils::DateTime& GetTransferOfferAcceptedTimestamp() const{ return m_transferOfferAcceptedTimestamp; }
110 inline bool TransferOfferAcceptedTimestampHasBeenSet() const { return m_transferOfferAcceptedTimestampHasBeenSet; }
111 inline void SetTransferOfferAcceptedTimestamp(const Aws::Utils::DateTime& value) { m_transferOfferAcceptedTimestampHasBeenSet = true; m_transferOfferAcceptedTimestamp = value; }
112 inline void SetTransferOfferAcceptedTimestamp(Aws::Utils::DateTime&& value) { m_transferOfferAcceptedTimestampHasBeenSet = true; m_transferOfferAcceptedTimestamp = std::move(value); }
116
118
121 inline const AddressTransferStatus& GetAddressTransferStatus() const{ return m_addressTransferStatus; }
122 inline bool AddressTransferStatusHasBeenSet() const { return m_addressTransferStatusHasBeenSet; }
123 inline void SetAddressTransferStatus(const AddressTransferStatus& value) { m_addressTransferStatusHasBeenSet = true; m_addressTransferStatus = value; }
124 inline void SetAddressTransferStatus(AddressTransferStatus&& value) { m_addressTransferStatusHasBeenSet = true; m_addressTransferStatus = std::move(value); }
128 private:
129
130 Aws::String m_publicIp;
131 bool m_publicIpHasBeenSet = false;
132
133 Aws::String m_allocationId;
134 bool m_allocationIdHasBeenSet = false;
135
136 Aws::String m_transferAccountId;
137 bool m_transferAccountIdHasBeenSet = false;
138
139 Aws::Utils::DateTime m_transferOfferExpirationTimestamp;
140 bool m_transferOfferExpirationTimestampHasBeenSet = false;
141
142 Aws::Utils::DateTime m_transferOfferAcceptedTimestamp;
143 bool m_transferOfferAcceptedTimestampHasBeenSet = false;
144
145 AddressTransferStatus m_addressTransferStatus;
146 bool m_addressTransferStatusHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace EC2
151} // namespace Aws
void SetAllocationId(const Aws::String &value)
AddressTransfer & WithAllocationId(const Aws::String &value)
AddressTransfer & WithTransferOfferExpirationTimestamp(Aws::Utils::DateTime &&value)
bool TransferOfferExpirationTimestampHasBeenSet() const
AWS_EC2_API AddressTransfer & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AddressTransfer & WithPublicIp(const char *value)
void SetAddressTransferStatus(const AddressTransferStatus &value)
AddressTransfer & WithAddressTransferStatus(const AddressTransferStatus &value)
AWS_EC2_API AddressTransfer(const Aws::Utils::Xml::XmlNode &xmlNode)
AddressTransfer & WithAllocationId(Aws::String &&value)
AddressTransfer & WithAllocationId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AddressTransfer & WithAddressTransferStatus(AddressTransferStatus &&value)
void SetPublicIp(const char *value)
void SetTransferOfferAcceptedTimestamp(const Aws::Utils::DateTime &value)
const AddressTransferStatus & GetAddressTransferStatus() const
const Aws::Utils::DateTime & GetTransferOfferAcceptedTimestamp() const
void SetTransferOfferAcceptedTimestamp(Aws::Utils::DateTime &&value)
AddressTransfer & WithTransferAccountId(const Aws::String &value)
const Aws::String & GetTransferAccountId() const
const Aws::Utils::DateTime & GetTransferOfferExpirationTimestamp() const
void SetPublicIp(Aws::String &&value)
void SetTransferOfferExpirationTimestamp(Aws::Utils::DateTime &&value)
void SetTransferOfferExpirationTimestamp(const Aws::Utils::DateTime &value)
void SetTransferAccountId(const char *value)
bool TransferOfferAcceptedTimestampHasBeenSet() const
void SetTransferAccountId(const Aws::String &value)
const Aws::String & GetPublicIp() const
const Aws::String & GetAllocationId() const
AddressTransfer & WithTransferOfferAcceptedTimestamp(Aws::Utils::DateTime &&value)
AddressTransfer & WithTransferAccountId(const char *value)
AddressTransfer & WithTransferOfferAcceptedTimestamp(const Aws::Utils::DateTime &value)
void SetAllocationId(const char *value)
AddressTransfer & WithPublicIp(Aws::String &&value)
AddressTransfer & WithPublicIp(const Aws::String &value)
void SetAddressTransferStatus(AddressTransferStatus &&value)
AddressTransfer & WithTransferAccountId(Aws::String &&value)
void SetTransferAccountId(Aws::String &&value)
void SetAllocationId(Aws::String &&value)
void SetPublicIp(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AddressTransfer & WithTransferOfferExpirationTimestamp(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream