AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
SecondaryNetwork.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/SecondaryNetworkIpv4CidrBlockAssociation.h>
12#include <aws/ec2/model/SecondaryNetworkState.h>
13#include <aws/ec2/model/SecondaryNetworkType.h>
14#include <aws/ec2/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
26
33 public:
34 AWS_EC2_API SecondaryNetwork() = default;
35 AWS_EC2_API SecondaryNetwork(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const Aws::String& GetSecondaryNetworkId() const { return m_secondaryNetworkId; }
46 inline bool SecondaryNetworkIdHasBeenSet() const { return m_secondaryNetworkIdHasBeenSet; }
47 template <typename SecondaryNetworkIdT = Aws::String>
48 void SetSecondaryNetworkId(SecondaryNetworkIdT&& value) {
49 m_secondaryNetworkIdHasBeenSet = true;
50 m_secondaryNetworkId = std::forward<SecondaryNetworkIdT>(value);
51 }
52 template <typename SecondaryNetworkIdT = Aws::String>
53 SecondaryNetwork& WithSecondaryNetworkId(SecondaryNetworkIdT&& value) {
54 SetSecondaryNetworkId(std::forward<SecondaryNetworkIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetSecondaryNetworkArn() const { return m_secondaryNetworkArn; }
64 inline bool SecondaryNetworkArnHasBeenSet() const { return m_secondaryNetworkArnHasBeenSet; }
65 template <typename SecondaryNetworkArnT = Aws::String>
66 void SetSecondaryNetworkArn(SecondaryNetworkArnT&& value) {
67 m_secondaryNetworkArnHasBeenSet = true;
68 m_secondaryNetworkArn = std::forward<SecondaryNetworkArnT>(value);
69 }
70 template <typename SecondaryNetworkArnT = Aws::String>
71 SecondaryNetwork& WithSecondaryNetworkArn(SecondaryNetworkArnT&& value) {
72 SetSecondaryNetworkArn(std::forward<SecondaryNetworkArnT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
83 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
84 template <typename OwnerIdT = Aws::String>
85 void SetOwnerId(OwnerIdT&& value) {
86 m_ownerIdHasBeenSet = true;
87 m_ownerId = std::forward<OwnerIdT>(value);
88 }
89 template <typename OwnerIdT = Aws::String>
90 SecondaryNetwork& WithOwnerId(OwnerIdT&& value) {
91 SetOwnerId(std::forward<OwnerIdT>(value));
92 return *this;
93 }
95
97
100 inline SecondaryNetworkType GetType() const { return m_type; }
101 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
102 inline void SetType(SecondaryNetworkType value) {
103 m_typeHasBeenSet = true;
104 m_type = value;
105 }
107 SetType(value);
108 return *this;
109 }
111
113
116 inline SecondaryNetworkState GetState() const { return m_state; }
117 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
118 inline void SetState(SecondaryNetworkState value) {
119 m_stateHasBeenSet = true;
120 m_state = value;
121 }
123 SetState(value);
124 return *this;
125 }
127
129
132 inline const Aws::String& GetStateReason() const { return m_stateReason; }
133 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
134 template <typename StateReasonT = Aws::String>
135 void SetStateReason(StateReasonT&& value) {
136 m_stateReasonHasBeenSet = true;
137 m_stateReason = std::forward<StateReasonT>(value);
138 }
139 template <typename StateReasonT = Aws::String>
140 SecondaryNetwork& WithStateReason(StateReasonT&& value) {
141 SetStateReason(std::forward<StateReasonT>(value));
142 return *this;
143 }
145
147
152 return m_ipv4CidrBlockAssociations;
153 }
154 inline bool Ipv4CidrBlockAssociationsHasBeenSet() const { return m_ipv4CidrBlockAssociationsHasBeenSet; }
155 template <typename Ipv4CidrBlockAssociationsT = Aws::Vector<SecondaryNetworkIpv4CidrBlockAssociation>>
156 void SetIpv4CidrBlockAssociations(Ipv4CidrBlockAssociationsT&& value) {
157 m_ipv4CidrBlockAssociationsHasBeenSet = true;
158 m_ipv4CidrBlockAssociations = std::forward<Ipv4CidrBlockAssociationsT>(value);
159 }
160 template <typename Ipv4CidrBlockAssociationsT = Aws::Vector<SecondaryNetworkIpv4CidrBlockAssociation>>
161 SecondaryNetwork& WithIpv4CidrBlockAssociations(Ipv4CidrBlockAssociationsT&& value) {
162 SetIpv4CidrBlockAssociations(std::forward<Ipv4CidrBlockAssociationsT>(value));
163 return *this;
164 }
165 template <typename Ipv4CidrBlockAssociationsT = SecondaryNetworkIpv4CidrBlockAssociation>
166 SecondaryNetwork& AddIpv4CidrBlockAssociations(Ipv4CidrBlockAssociationsT&& value) {
167 m_ipv4CidrBlockAssociationsHasBeenSet = true;
168 m_ipv4CidrBlockAssociations.emplace_back(std::forward<Ipv4CidrBlockAssociationsT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
178 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
179 template <typename TagsT = Aws::Vector<Tag>>
180 void SetTags(TagsT&& value) {
181 m_tagsHasBeenSet = true;
182 m_tags = std::forward<TagsT>(value);
183 }
184 template <typename TagsT = Aws::Vector<Tag>>
185 SecondaryNetwork& WithTags(TagsT&& value) {
186 SetTags(std::forward<TagsT>(value));
187 return *this;
188 }
189 template <typename TagsT = Tag>
190 SecondaryNetwork& AddTags(TagsT&& value) {
191 m_tagsHasBeenSet = true;
192 m_tags.emplace_back(std::forward<TagsT>(value));
193 return *this;
194 }
196 private:
197 Aws::String m_secondaryNetworkId;
198
199 Aws::String m_secondaryNetworkArn;
200
201 Aws::String m_ownerId;
202
204
206
207 Aws::String m_stateReason;
208
210
211 Aws::Vector<Tag> m_tags;
212 bool m_secondaryNetworkIdHasBeenSet = false;
213 bool m_secondaryNetworkArnHasBeenSet = false;
214 bool m_ownerIdHasBeenSet = false;
215 bool m_typeHasBeenSet = false;
216 bool m_stateHasBeenSet = false;
217 bool m_stateReasonHasBeenSet = false;
218 bool m_ipv4CidrBlockAssociationsHasBeenSet = false;
219 bool m_tagsHasBeenSet = false;
220};
221
222} // namespace Model
223} // namespace EC2
224} // namespace Aws
SecondaryNetwork & WithType(SecondaryNetworkType value)
AWS_EC2_API SecondaryNetwork(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetOwnerId() const
const Aws::String & GetStateReason() const
void SetSecondaryNetworkId(SecondaryNetworkIdT &&value)
SecondaryNetworkType GetType() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SecondaryNetwork & AddIpv4CidrBlockAssociations(Ipv4CidrBlockAssociationsT &&value)
SecondaryNetworkState GetState() const
void SetState(SecondaryNetworkState value)
const Aws::Vector< SecondaryNetworkIpv4CidrBlockAssociation > & GetIpv4CidrBlockAssociations() const
SecondaryNetwork & WithState(SecondaryNetworkState value)
void SetSecondaryNetworkArn(SecondaryNetworkArnT &&value)
SecondaryNetwork & AddTags(TagsT &&value)
SecondaryNetwork & WithTags(TagsT &&value)
SecondaryNetwork & WithStateReason(StateReasonT &&value)
const Aws::Vector< Tag > & GetTags() const
void SetOwnerId(OwnerIdT &&value)
void SetStateReason(StateReasonT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API SecondaryNetwork()=default
void SetIpv4CidrBlockAssociations(Ipv4CidrBlockAssociationsT &&value)
const Aws::String & GetSecondaryNetworkArn() const
SecondaryNetwork & WithSecondaryNetworkArn(SecondaryNetworkArnT &&value)
const Aws::String & GetSecondaryNetworkId() const
void SetType(SecondaryNetworkType value)
AWS_EC2_API SecondaryNetwork & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SecondaryNetwork & WithSecondaryNetworkId(SecondaryNetworkIdT &&value)
SecondaryNetwork & WithOwnerId(OwnerIdT &&value)
SecondaryNetwork & WithIpv4CidrBlockAssociations(Ipv4CidrBlockAssociationsT &&value)
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