AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
51 inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); }
52 inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
53 inline AddressAttribute& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
54 inline AddressAttribute& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;}
55 inline AddressAttribute& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
57
59
62 inline const Aws::String& GetAllocationId() const{ return m_allocationId; }
63 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
64 inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
65 inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); }
66 inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
67 inline AddressAttribute& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
68 inline AddressAttribute& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;}
69 inline AddressAttribute& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
71
73
76 inline const Aws::String& GetPtrRecord() const{ return m_ptrRecord; }
77 inline bool PtrRecordHasBeenSet() const { return m_ptrRecordHasBeenSet; }
78 inline void SetPtrRecord(const Aws::String& value) { m_ptrRecordHasBeenSet = true; m_ptrRecord = value; }
79 inline void SetPtrRecord(Aws::String&& value) { m_ptrRecordHasBeenSet = true; m_ptrRecord = std::move(value); }
80 inline void SetPtrRecord(const char* value) { m_ptrRecordHasBeenSet = true; m_ptrRecord.assign(value); }
81 inline AddressAttribute& WithPtrRecord(const Aws::String& value) { SetPtrRecord(value); return *this;}
82 inline AddressAttribute& WithPtrRecord(Aws::String&& value) { SetPtrRecord(std::move(value)); return *this;}
83 inline AddressAttribute& WithPtrRecord(const char* value) { SetPtrRecord(value); return *this;}
85
87
90 inline const PtrUpdateStatus& GetPtrRecordUpdate() const{ return m_ptrRecordUpdate; }
91 inline bool PtrRecordUpdateHasBeenSet() const { return m_ptrRecordUpdateHasBeenSet; }
92 inline void SetPtrRecordUpdate(const PtrUpdateStatus& value) { m_ptrRecordUpdateHasBeenSet = true; m_ptrRecordUpdate = value; }
93 inline void SetPtrRecordUpdate(PtrUpdateStatus&& value) { m_ptrRecordUpdateHasBeenSet = true; m_ptrRecordUpdate = std::move(value); }
94 inline AddressAttribute& WithPtrRecordUpdate(const PtrUpdateStatus& value) { SetPtrRecordUpdate(value); return *this;}
95 inline AddressAttribute& WithPtrRecordUpdate(PtrUpdateStatus&& value) { SetPtrRecordUpdate(std::move(value)); return *this;}
97 private:
98
99 Aws::String m_publicIp;
100 bool m_publicIpHasBeenSet = false;
101
102 Aws::String m_allocationId;
103 bool m_allocationIdHasBeenSet = false;
104
105 Aws::String m_ptrRecord;
106 bool m_ptrRecordHasBeenSet = false;
107
108 PtrUpdateStatus m_ptrRecordUpdate;
109 bool m_ptrRecordUpdateHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace EC2
114} // namespace Aws
const Aws::String & GetPtrRecord() const
void SetAllocationId(Aws::String &&value)
AddressAttribute & WithPtrRecordUpdate(const PtrUpdateStatus &value)
AddressAttribute & WithPtrRecord(Aws::String &&value)
AWS_EC2_API AddressAttribute(const Aws::Utils::Xml::XmlNode &xmlNode)
AddressAttribute & WithPublicIp(Aws::String &&value)
AddressAttribute & WithAllocationId(const Aws::String &value)
void SetPtrRecord(Aws::String &&value)
AddressAttribute & WithPtrRecord(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetPtrRecord(const char *value)
const PtrUpdateStatus & GetPtrRecordUpdate() const
void SetPtrRecordUpdate(PtrUpdateStatus &&value)
void SetAllocationId(const Aws::String &value)
AWS_EC2_API AddressAttribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AddressAttribute & WithPtrRecordUpdate(PtrUpdateStatus &&value)
AddressAttribute & WithPublicIp(const char *value)
void SetAllocationId(const char *value)
const Aws::String & GetAllocationId() const
AddressAttribute & WithAllocationId(const char *value)
void SetPtrRecordUpdate(const PtrUpdateStatus &value)
const Aws::String & GetPublicIp() const
void SetPublicIp(const Aws::String &value)
void SetPublicIp(const char *value)
AddressAttribute & WithPublicIp(const Aws::String &value)
void SetPtrRecord(const Aws::String &value)
AddressAttribute & WithPtrRecord(const Aws::String &value)
AddressAttribute & WithAllocationId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetPublicIp(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream