AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AddressAttribute.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/PtrUpdateStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API AddressAttribute() = default;
32 AWS_EC2_API AddressAttribute(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetPublicIp() const { return m_publicIp; }
43 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
44 template <typename PublicIpT = Aws::String>
45 void SetPublicIp(PublicIpT&& value) {
46 m_publicIpHasBeenSet = true;
47 m_publicIp = std::forward<PublicIpT>(value);
48 }
49 template <typename PublicIpT = Aws::String>
50 AddressAttribute& WithPublicIp(PublicIpT&& value) {
51 SetPublicIp(std::forward<PublicIpT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetAllocationId() const { return m_allocationId; }
61 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
62 template <typename AllocationIdT = Aws::String>
63 void SetAllocationId(AllocationIdT&& value) {
64 m_allocationIdHasBeenSet = true;
65 m_allocationId = std::forward<AllocationIdT>(value);
66 }
67 template <typename AllocationIdT = Aws::String>
68 AddressAttribute& WithAllocationId(AllocationIdT&& value) {
69 SetAllocationId(std::forward<AllocationIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetPtrRecord() const { return m_ptrRecord; }
79 inline bool PtrRecordHasBeenSet() const { return m_ptrRecordHasBeenSet; }
80 template <typename PtrRecordT = Aws::String>
81 void SetPtrRecord(PtrRecordT&& value) {
82 m_ptrRecordHasBeenSet = true;
83 m_ptrRecord = std::forward<PtrRecordT>(value);
84 }
85 template <typename PtrRecordT = Aws::String>
86 AddressAttribute& WithPtrRecord(PtrRecordT&& value) {
87 SetPtrRecord(std::forward<PtrRecordT>(value));
88 return *this;
89 }
91
93
96 inline const PtrUpdateStatus& GetPtrRecordUpdate() const { return m_ptrRecordUpdate; }
97 inline bool PtrRecordUpdateHasBeenSet() const { return m_ptrRecordUpdateHasBeenSet; }
98 template <typename PtrRecordUpdateT = PtrUpdateStatus>
99 void SetPtrRecordUpdate(PtrRecordUpdateT&& value) {
100 m_ptrRecordUpdateHasBeenSet = true;
101 m_ptrRecordUpdate = std::forward<PtrRecordUpdateT>(value);
102 }
103 template <typename PtrRecordUpdateT = PtrUpdateStatus>
104 AddressAttribute& WithPtrRecordUpdate(PtrRecordUpdateT&& value) {
105 SetPtrRecordUpdate(std::forward<PtrRecordUpdateT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_publicIp;
111
112 Aws::String m_allocationId;
113
114 Aws::String m_ptrRecord;
115
116 PtrUpdateStatus m_ptrRecordUpdate;
117 bool m_publicIpHasBeenSet = false;
118 bool m_allocationIdHasBeenSet = false;
119 bool m_ptrRecordHasBeenSet = false;
120 bool m_ptrRecordUpdateHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace EC2
125} // namespace Aws
const Aws::String & GetPtrRecord() const
AWS_EC2_API AddressAttribute(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const PtrUpdateStatus & GetPtrRecordUpdate() const
void SetPtrRecord(PtrRecordT &&value)
void SetAllocationId(AllocationIdT &&value)
AWS_EC2_API AddressAttribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPublicIp(PublicIpT &&value)
const Aws::String & GetAllocationId() const
AWS_EC2_API AddressAttribute()=default
const Aws::String & GetPublicIp() const
AddressAttribute & WithPtrRecord(PtrRecordT &&value)
AddressAttribute & WithAllocationId(AllocationIdT &&value)
void SetPtrRecordUpdate(PtrRecordUpdateT &&value)
AddressAttribute & WithPtrRecordUpdate(PtrRecordUpdateT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AddressAttribute & WithPublicIp(PublicIpT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream