AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
OutpostLag.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/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
30 public:
31 AWS_EC2_API OutpostLag() = default;
32 AWS_EC2_API OutpostLag(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_EC2_API OutpostLag& operator=(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& GetOutpostArn() const { return m_outpostArn; }
43 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
44 template <typename OutpostArnT = Aws::String>
45 void SetOutpostArn(OutpostArnT&& value) {
46 m_outpostArnHasBeenSet = true;
47 m_outpostArn = std::forward<OutpostArnT>(value);
48 }
49 template <typename OutpostArnT = Aws::String>
50 OutpostLag& WithOutpostArn(OutpostArnT&& value) {
51 SetOutpostArn(std::forward<OutpostArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
61 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
62 template <typename OwnerIdT = Aws::String>
63 void SetOwnerId(OwnerIdT&& value) {
64 m_ownerIdHasBeenSet = true;
65 m_ownerId = std::forward<OwnerIdT>(value);
66 }
67 template <typename OwnerIdT = Aws::String>
68 OutpostLag& WithOwnerId(OwnerIdT&& value) {
69 SetOwnerId(std::forward<OwnerIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetState() const { return m_state; }
79 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
80 template <typename StateT = Aws::String>
81 void SetState(StateT&& value) {
82 m_stateHasBeenSet = true;
83 m_state = std::forward<StateT>(value);
84 }
85 template <typename StateT = Aws::String>
86 OutpostLag& WithState(StateT&& value) {
87 SetState(std::forward<StateT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetOutpostLagId() const { return m_outpostLagId; }
97 inline bool OutpostLagIdHasBeenSet() const { return m_outpostLagIdHasBeenSet; }
98 template <typename OutpostLagIdT = Aws::String>
99 void SetOutpostLagId(OutpostLagIdT&& value) {
100 m_outpostLagIdHasBeenSet = true;
101 m_outpostLagId = std::forward<OutpostLagIdT>(value);
102 }
103 template <typename OutpostLagIdT = Aws::String>
104 OutpostLag& WithOutpostLagId(OutpostLagIdT&& value) {
105 SetOutpostLagId(std::forward<OutpostLagIdT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::Vector<Aws::String>& GetLocalGatewayVirtualInterfaceIds() const { return m_localGatewayVirtualInterfaceIds; }
116 inline bool LocalGatewayVirtualInterfaceIdsHasBeenSet() const { return m_localGatewayVirtualInterfaceIdsHasBeenSet; }
117 template <typename LocalGatewayVirtualInterfaceIdsT = Aws::Vector<Aws::String>>
118 void SetLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT&& value) {
119 m_localGatewayVirtualInterfaceIdsHasBeenSet = true;
120 m_localGatewayVirtualInterfaceIds = std::forward<LocalGatewayVirtualInterfaceIdsT>(value);
121 }
122 template <typename LocalGatewayVirtualInterfaceIdsT = Aws::Vector<Aws::String>>
123 OutpostLag& WithLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT&& value) {
124 SetLocalGatewayVirtualInterfaceIds(std::forward<LocalGatewayVirtualInterfaceIdsT>(value));
125 return *this;
126 }
127 template <typename LocalGatewayVirtualInterfaceIdsT = Aws::String>
128 OutpostLag& AddLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT&& value) {
129 m_localGatewayVirtualInterfaceIdsHasBeenSet = true;
130 m_localGatewayVirtualInterfaceIds.emplace_back(std::forward<LocalGatewayVirtualInterfaceIdsT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::Vector<Aws::String>& GetServiceLinkVirtualInterfaceIds() const { return m_serviceLinkVirtualInterfaceIds; }
140 inline bool ServiceLinkVirtualInterfaceIdsHasBeenSet() const { return m_serviceLinkVirtualInterfaceIdsHasBeenSet; }
141 template <typename ServiceLinkVirtualInterfaceIdsT = Aws::Vector<Aws::String>>
142 void SetServiceLinkVirtualInterfaceIds(ServiceLinkVirtualInterfaceIdsT&& value) {
143 m_serviceLinkVirtualInterfaceIdsHasBeenSet = true;
144 m_serviceLinkVirtualInterfaceIds = std::forward<ServiceLinkVirtualInterfaceIdsT>(value);
145 }
146 template <typename ServiceLinkVirtualInterfaceIdsT = Aws::Vector<Aws::String>>
147 OutpostLag& WithServiceLinkVirtualInterfaceIds(ServiceLinkVirtualInterfaceIdsT&& value) {
148 SetServiceLinkVirtualInterfaceIds(std::forward<ServiceLinkVirtualInterfaceIdsT>(value));
149 return *this;
150 }
151 template <typename ServiceLinkVirtualInterfaceIdsT = Aws::String>
152 OutpostLag& AddServiceLinkVirtualInterfaceIds(ServiceLinkVirtualInterfaceIdsT&& value) {
153 m_serviceLinkVirtualInterfaceIdsHasBeenSet = true;
154 m_serviceLinkVirtualInterfaceIds.emplace_back(std::forward<ServiceLinkVirtualInterfaceIdsT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
164 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
165 template <typename TagsT = Aws::Vector<Tag>>
166 void SetTags(TagsT&& value) {
167 m_tagsHasBeenSet = true;
168 m_tags = std::forward<TagsT>(value);
169 }
170 template <typename TagsT = Aws::Vector<Tag>>
171 OutpostLag& WithTags(TagsT&& value) {
172 SetTags(std::forward<TagsT>(value));
173 return *this;
174 }
175 template <typename TagsT = Tag>
176 OutpostLag& AddTags(TagsT&& value) {
177 m_tagsHasBeenSet = true;
178 m_tags.emplace_back(std::forward<TagsT>(value));
179 return *this;
180 }
182 private:
183 Aws::String m_outpostArn;
184
185 Aws::String m_ownerId;
186
187 Aws::String m_state;
188
189 Aws::String m_outpostLagId;
190
191 Aws::Vector<Aws::String> m_localGatewayVirtualInterfaceIds;
192
193 Aws::Vector<Aws::String> m_serviceLinkVirtualInterfaceIds;
194
195 Aws::Vector<Tag> m_tags;
196 bool m_outpostArnHasBeenSet = false;
197 bool m_ownerIdHasBeenSet = false;
198 bool m_stateHasBeenSet = false;
199 bool m_outpostLagIdHasBeenSet = false;
200 bool m_localGatewayVirtualInterfaceIdsHasBeenSet = false;
201 bool m_serviceLinkVirtualInterfaceIdsHasBeenSet = false;
202 bool m_tagsHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace EC2
207} // namespace Aws
AWS_EC2_API OutpostLag & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
OutpostLag & AddLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT &&value)
Definition OutpostLag.h:128
OutpostLag & WithOutpostArn(OutpostArnT &&value)
Definition OutpostLag.h:50
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetOutpostLagId(OutpostLagIdT &&value)
Definition OutpostLag.h:99
OutpostLag & AddTags(TagsT &&value)
Definition OutpostLag.h:176
OutpostLag & WithLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT &&value)
Definition OutpostLag.h:123
void SetState(StateT &&value)
Definition OutpostLag.h:81
OutpostLag & WithState(StateT &&value)
Definition OutpostLag.h:86
OutpostLag & WithServiceLinkVirtualInterfaceIds(ServiceLinkVirtualInterfaceIdsT &&value)
Definition OutpostLag.h:147
void SetOutpostArn(OutpostArnT &&value)
Definition OutpostLag.h:45
bool ServiceLinkVirtualInterfaceIdsHasBeenSet() const
Definition OutpostLag.h:140
const Aws::String & GetOutpostLagId() const
Definition OutpostLag.h:96
const Aws::Vector< Aws::String > & GetLocalGatewayVirtualInterfaceIds() const
Definition OutpostLag.h:115
const Aws::String & GetOutpostArn() const
Definition OutpostLag.h:42
bool OwnerIdHasBeenSet() const
Definition OutpostLag.h:61
bool LocalGatewayVirtualInterfaceIdsHasBeenSet() const
Definition OutpostLag.h:116
const Aws::String & GetState() const
Definition OutpostLag.h:78
OutpostLag & WithOwnerId(OwnerIdT &&value)
Definition OutpostLag.h:68
const Aws::Vector< Tag > & GetTags() const
Definition OutpostLag.h:163
void SetOwnerId(OwnerIdT &&value)
Definition OutpostLag.h:63
AWS_EC2_API OutpostLag()=default
void SetLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT &&value)
Definition OutpostLag.h:118
OutpostLag & WithOutpostLagId(OutpostLagIdT &&value)
Definition OutpostLag.h:104
void SetTags(TagsT &&value)
Definition OutpostLag.h:166
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
OutpostLag & WithTags(TagsT &&value)
Definition OutpostLag.h:171
const Aws::String & GetOwnerId() const
Definition OutpostLag.h:60
AWS_EC2_API OutpostLag(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetServiceLinkVirtualInterfaceIds(ServiceLinkVirtualInterfaceIdsT &&value)
Definition OutpostLag.h:142
OutpostLag & AddServiceLinkVirtualInterfaceIds(ServiceLinkVirtualInterfaceIdsT &&value)
Definition OutpostLag.h:152
bool OutpostLagIdHasBeenSet() const
Definition OutpostLag.h:97
bool OutpostArnHasBeenSet() const
Definition OutpostLag.h:43
const Aws::Vector< Aws::String > & GetServiceLinkVirtualInterfaceIds() const
Definition OutpostLag.h:139
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