AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ByoipCidr.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/memory/stl/AWSVector.h>
11#include <aws/ec2/model/ByoipCidrState.h>
12#include <aws/ec2/model/AsnAssociation.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_EC2_API ByoipCidr();
40 AWS_EC2_API ByoipCidr(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_EC2_API ByoipCidr& operator=(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& GetCidr() const{ return m_cidr; }
52 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
53 inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; }
54 inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); }
55 inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); }
56 inline ByoipCidr& WithCidr(const Aws::String& value) { SetCidr(value); return *this;}
57 inline ByoipCidr& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;}
58 inline ByoipCidr& WithCidr(const char* value) { SetCidr(value); return *this;}
60
62
65 inline const Aws::String& GetDescription() const{ return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
68 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
69 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
70 inline ByoipCidr& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
71 inline ByoipCidr& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
72 inline ByoipCidr& WithDescription(const char* value) { SetDescription(value); return *this;}
74
76
79 inline const Aws::Vector<AsnAssociation>& GetAsnAssociations() const{ return m_asnAssociations; }
80 inline bool AsnAssociationsHasBeenSet() const { return m_asnAssociationsHasBeenSet; }
81 inline void SetAsnAssociations(const Aws::Vector<AsnAssociation>& value) { m_asnAssociationsHasBeenSet = true; m_asnAssociations = value; }
82 inline void SetAsnAssociations(Aws::Vector<AsnAssociation>&& value) { m_asnAssociationsHasBeenSet = true; m_asnAssociations = std::move(value); }
83 inline ByoipCidr& WithAsnAssociations(const Aws::Vector<AsnAssociation>& value) { SetAsnAssociations(value); return *this;}
84 inline ByoipCidr& WithAsnAssociations(Aws::Vector<AsnAssociation>&& value) { SetAsnAssociations(std::move(value)); return *this;}
85 inline ByoipCidr& AddAsnAssociations(const AsnAssociation& value) { m_asnAssociationsHasBeenSet = true; m_asnAssociations.push_back(value); return *this; }
86 inline ByoipCidr& AddAsnAssociations(AsnAssociation&& value) { m_asnAssociationsHasBeenSet = true; m_asnAssociations.push_back(std::move(value)); return *this; }
88
90
94 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
95 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
96 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
97 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
98 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
99 inline ByoipCidr& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
100 inline ByoipCidr& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
101 inline ByoipCidr& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
103
105
122 inline const ByoipCidrState& GetState() const{ return m_state; }
123 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
124 inline void SetState(const ByoipCidrState& value) { m_stateHasBeenSet = true; m_state = value; }
125 inline void SetState(ByoipCidrState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
126 inline ByoipCidr& WithState(const ByoipCidrState& value) { SetState(value); return *this;}
127 inline ByoipCidr& WithState(ByoipCidrState&& value) { SetState(std::move(value)); return *this;}
129
131
143 inline const Aws::String& GetNetworkBorderGroup() const{ return m_networkBorderGroup; }
144 inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; }
145 inline void SetNetworkBorderGroup(const Aws::String& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = value; }
146 inline void SetNetworkBorderGroup(Aws::String&& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = std::move(value); }
147 inline void SetNetworkBorderGroup(const char* value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup.assign(value); }
148 inline ByoipCidr& WithNetworkBorderGroup(const Aws::String& value) { SetNetworkBorderGroup(value); return *this;}
149 inline ByoipCidr& WithNetworkBorderGroup(Aws::String&& value) { SetNetworkBorderGroup(std::move(value)); return *this;}
150 inline ByoipCidr& WithNetworkBorderGroup(const char* value) { SetNetworkBorderGroup(value); return *this;}
152 private:
153
154 Aws::String m_cidr;
155 bool m_cidrHasBeenSet = false;
156
157 Aws::String m_description;
158 bool m_descriptionHasBeenSet = false;
159
160 Aws::Vector<AsnAssociation> m_asnAssociations;
161 bool m_asnAssociationsHasBeenSet = false;
162
163 Aws::String m_statusMessage;
164 bool m_statusMessageHasBeenSet = false;
165
166 ByoipCidrState m_state;
167 bool m_stateHasBeenSet = false;
168
169 Aws::String m_networkBorderGroup;
170 bool m_networkBorderGroupHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace EC2
175} // namespace Aws
ByoipCidr & WithDescription(const Aws::String &value)
Definition ByoipCidr.h:70
void SetCidr(Aws::String &&value)
Definition ByoipCidr.h:54
void SetNetworkBorderGroup(const Aws::String &value)
Definition ByoipCidr.h:145
void SetDescription(const Aws::String &value)
Definition ByoipCidr.h:67
ByoipCidr & WithCidr(Aws::String &&value)
Definition ByoipCidr.h:57
ByoipCidr & WithDescription(Aws::String &&value)
Definition ByoipCidr.h:71
ByoipCidr & AddAsnAssociations(const AsnAssociation &value)
Definition ByoipCidr.h:85
ByoipCidr & WithAsnAssociations(const Aws::Vector< AsnAssociation > &value)
Definition ByoipCidr.h:83
ByoipCidr & WithAsnAssociations(Aws::Vector< AsnAssociation > &&value)
Definition ByoipCidr.h:84
void SetStatusMessage(const char *value)
Definition ByoipCidr.h:98
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ByoipCidr & WithNetworkBorderGroup(Aws::String &&value)
Definition ByoipCidr.h:149
ByoipCidr & AddAsnAssociations(AsnAssociation &&value)
Definition ByoipCidr.h:86
void SetState(const ByoipCidrState &value)
Definition ByoipCidr.h:124
const Aws::String & GetDescription() const
Definition ByoipCidr.h:65
bool StatusMessageHasBeenSet() const
Definition ByoipCidr.h:95
const Aws::String & GetCidr() const
Definition ByoipCidr.h:51
ByoipCidr & WithStatusMessage(Aws::String &&value)
Definition ByoipCidr.h:100
const Aws::String & GetNetworkBorderGroup() const
Definition ByoipCidr.h:143
void SetCidr(const char *value)
Definition ByoipCidr.h:55
ByoipCidr & WithNetworkBorderGroup(const char *value)
Definition ByoipCidr.h:150
bool StateHasBeenSet() const
Definition ByoipCidr.h:123
bool NetworkBorderGroupHasBeenSet() const
Definition ByoipCidr.h:144
bool CidrHasBeenSet() const
Definition ByoipCidr.h:52
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API ByoipCidr & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ByoipCidr & WithCidr(const Aws::String &value)
Definition ByoipCidr.h:56
void SetStatusMessage(Aws::String &&value)
Definition ByoipCidr.h:97
bool AsnAssociationsHasBeenSet() const
Definition ByoipCidr.h:80
void SetStatusMessage(const Aws::String &value)
Definition ByoipCidr.h:96
void SetAsnAssociations(const Aws::Vector< AsnAssociation > &value)
Definition ByoipCidr.h:81
ByoipCidr & WithStatusMessage(const char *value)
Definition ByoipCidr.h:101
const Aws::String & GetStatusMessage() const
Definition ByoipCidr.h:94
void SetNetworkBorderGroup(const char *value)
Definition ByoipCidr.h:147
AWS_EC2_API ByoipCidr(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetState(ByoipCidrState &&value)
Definition ByoipCidr.h:125
bool DescriptionHasBeenSet() const
Definition ByoipCidr.h:66
void SetNetworkBorderGroup(Aws::String &&value)
Definition ByoipCidr.h:146
const ByoipCidrState & GetState() const
Definition ByoipCidr.h:122
ByoipCidr & WithState(const ByoipCidrState &value)
Definition ByoipCidr.h:126
const Aws::Vector< AsnAssociation > & GetAsnAssociations() const
Definition ByoipCidr.h:79
ByoipCidr & WithNetworkBorderGroup(const Aws::String &value)
Definition ByoipCidr.h:148
ByoipCidr & WithDescription(const char *value)
Definition ByoipCidr.h:72
void SetCidr(const Aws::String &value)
Definition ByoipCidr.h:53
void SetAsnAssociations(Aws::Vector< AsnAssociation > &&value)
Definition ByoipCidr.h:82
void SetDescription(const char *value)
Definition ByoipCidr.h:69
ByoipCidr & WithStatusMessage(const Aws::String &value)
Definition ByoipCidr.h:99
ByoipCidr & WithState(ByoipCidrState &&value)
Definition ByoipCidr.h:127
void SetDescription(Aws::String &&value)
Definition ByoipCidr.h:68
ByoipCidr & WithCidr(const char *value)
Definition ByoipCidr.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream