AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AddressAttribute.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/ec2/model/PtrUpdateStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EC2_API AddressAttribute() = default;
37 AWS_EC2_API AddressAttribute(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetPublicIp() const { return m_publicIp; }
49 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
50 template<typename PublicIpT = Aws::String>
51 void SetPublicIp(PublicIpT&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::forward<PublicIpT>(value); }
52 template<typename PublicIpT = Aws::String>
53 AddressAttribute& WithPublicIp(PublicIpT&& value) { SetPublicIp(std::forward<PublicIpT>(value)); return *this;}
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) { m_allocationIdHasBeenSet = true; m_allocationId = std::forward<AllocationIdT>(value); }
64 template<typename AllocationIdT = Aws::String>
65 AddressAttribute& WithAllocationId(AllocationIdT&& value) { SetAllocationId(std::forward<AllocationIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetPtrRecord() const { return m_ptrRecord; }
73 inline bool PtrRecordHasBeenSet() const { return m_ptrRecordHasBeenSet; }
74 template<typename PtrRecordT = Aws::String>
75 void SetPtrRecord(PtrRecordT&& value) { m_ptrRecordHasBeenSet = true; m_ptrRecord = std::forward<PtrRecordT>(value); }
76 template<typename PtrRecordT = Aws::String>
77 AddressAttribute& WithPtrRecord(PtrRecordT&& value) { SetPtrRecord(std::forward<PtrRecordT>(value)); return *this;}
79
81
84 inline const PtrUpdateStatus& GetPtrRecordUpdate() const { return m_ptrRecordUpdate; }
85 inline bool PtrRecordUpdateHasBeenSet() const { return m_ptrRecordUpdateHasBeenSet; }
86 template<typename PtrRecordUpdateT = PtrUpdateStatus>
87 void SetPtrRecordUpdate(PtrRecordUpdateT&& value) { m_ptrRecordUpdateHasBeenSet = true; m_ptrRecordUpdate = std::forward<PtrRecordUpdateT>(value); }
88 template<typename PtrRecordUpdateT = PtrUpdateStatus>
89 AddressAttribute& WithPtrRecordUpdate(PtrRecordUpdateT&& value) { SetPtrRecordUpdate(std::forward<PtrRecordUpdateT>(value)); return *this;}
91 private:
92
93 Aws::String m_publicIp;
94 bool m_publicIpHasBeenSet = false;
95
96 Aws::String m_allocationId;
97 bool m_allocationIdHasBeenSet = false;
98
99 Aws::String m_ptrRecord;
100 bool m_ptrRecordHasBeenSet = false;
101
102 PtrUpdateStatus m_ptrRecordUpdate;
103 bool m_ptrRecordUpdateHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace EC2
108} // 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