AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OutpostLag.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/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API OutpostLag() = default;
37 AWS_EC2_API OutpostLag(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_EC2_API OutpostLag& operator=(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& GetOutpostArn() const { return m_outpostArn; }
49 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
50 template<typename OutpostArnT = Aws::String>
51 void SetOutpostArn(OutpostArnT&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::forward<OutpostArnT>(value); }
52 template<typename OutpostArnT = Aws::String>
53 OutpostLag& WithOutpostArn(OutpostArnT&& value) { SetOutpostArn(std::forward<OutpostArnT>(value)); return *this;}
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) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
64 template<typename OwnerIdT = Aws::String>
65 OutpostLag& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetState() const { return m_state; }
73 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
74 template<typename StateT = Aws::String>
75 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
76 template<typename StateT = Aws::String>
77 OutpostLag& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
79
81
84 inline const Aws::String& GetOutpostLagId() const { return m_outpostLagId; }
85 inline bool OutpostLagIdHasBeenSet() const { return m_outpostLagIdHasBeenSet; }
86 template<typename OutpostLagIdT = Aws::String>
87 void SetOutpostLagId(OutpostLagIdT&& value) { m_outpostLagIdHasBeenSet = true; m_outpostLagId = std::forward<OutpostLagIdT>(value); }
88 template<typename OutpostLagIdT = Aws::String>
89 OutpostLag& WithOutpostLagId(OutpostLagIdT&& value) { SetOutpostLagId(std::forward<OutpostLagIdT>(value)); return *this;}
91
93
97 inline const Aws::Vector<Aws::String>& GetLocalGatewayVirtualInterfaceIds() const { return m_localGatewayVirtualInterfaceIds; }
98 inline bool LocalGatewayVirtualInterfaceIdsHasBeenSet() const { return m_localGatewayVirtualInterfaceIdsHasBeenSet; }
99 template<typename LocalGatewayVirtualInterfaceIdsT = Aws::Vector<Aws::String>>
100 void SetLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT&& value) { m_localGatewayVirtualInterfaceIdsHasBeenSet = true; m_localGatewayVirtualInterfaceIds = std::forward<LocalGatewayVirtualInterfaceIdsT>(value); }
101 template<typename LocalGatewayVirtualInterfaceIdsT = Aws::Vector<Aws::String>>
102 OutpostLag& WithLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT&& value) { SetLocalGatewayVirtualInterfaceIds(std::forward<LocalGatewayVirtualInterfaceIdsT>(value)); return *this;}
103 template<typename LocalGatewayVirtualInterfaceIdsT = Aws::String>
104 OutpostLag& AddLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT&& value) { m_localGatewayVirtualInterfaceIdsHasBeenSet = true; m_localGatewayVirtualInterfaceIds.emplace_back(std::forward<LocalGatewayVirtualInterfaceIdsT>(value)); return *this; }
106
108
111 inline const Aws::Vector<Aws::String>& GetServiceLinkVirtualInterfaceIds() const { return m_serviceLinkVirtualInterfaceIds; }
112 inline bool ServiceLinkVirtualInterfaceIdsHasBeenSet() const { return m_serviceLinkVirtualInterfaceIdsHasBeenSet; }
113 template<typename ServiceLinkVirtualInterfaceIdsT = Aws::Vector<Aws::String>>
114 void SetServiceLinkVirtualInterfaceIds(ServiceLinkVirtualInterfaceIdsT&& value) { m_serviceLinkVirtualInterfaceIdsHasBeenSet = true; m_serviceLinkVirtualInterfaceIds = std::forward<ServiceLinkVirtualInterfaceIdsT>(value); }
115 template<typename ServiceLinkVirtualInterfaceIdsT = Aws::Vector<Aws::String>>
116 OutpostLag& WithServiceLinkVirtualInterfaceIds(ServiceLinkVirtualInterfaceIdsT&& value) { SetServiceLinkVirtualInterfaceIds(std::forward<ServiceLinkVirtualInterfaceIdsT>(value)); return *this;}
117 template<typename ServiceLinkVirtualInterfaceIdsT = Aws::String>
118 OutpostLag& AddServiceLinkVirtualInterfaceIds(ServiceLinkVirtualInterfaceIdsT&& value) { m_serviceLinkVirtualInterfaceIdsHasBeenSet = true; m_serviceLinkVirtualInterfaceIds.emplace_back(std::forward<ServiceLinkVirtualInterfaceIdsT>(value)); return *this; }
120
122
125 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
126 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
127 template<typename TagsT = Aws::Vector<Tag>>
128 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
129 template<typename TagsT = Aws::Vector<Tag>>
130 OutpostLag& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
131 template<typename TagsT = Tag>
132 OutpostLag& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
134 private:
135
136 Aws::String m_outpostArn;
137 bool m_outpostArnHasBeenSet = false;
138
139 Aws::String m_ownerId;
140 bool m_ownerIdHasBeenSet = false;
141
142 Aws::String m_state;
143 bool m_stateHasBeenSet = false;
144
145 Aws::String m_outpostLagId;
146 bool m_outpostLagIdHasBeenSet = false;
147
148 Aws::Vector<Aws::String> m_localGatewayVirtualInterfaceIds;
149 bool m_localGatewayVirtualInterfaceIdsHasBeenSet = false;
150
151 Aws::Vector<Aws::String> m_serviceLinkVirtualInterfaceIds;
152 bool m_serviceLinkVirtualInterfaceIdsHasBeenSet = false;
153
154 Aws::Vector<Tag> m_tags;
155 bool m_tagsHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace EC2
160} // namespace Aws
AWS_EC2_API OutpostLag & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
OutpostLag & AddLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT &&value)
Definition OutpostLag.h:104
OutpostLag & WithOutpostArn(OutpostArnT &&value)
Definition OutpostLag.h:53
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetOutpostLagId(OutpostLagIdT &&value)
Definition OutpostLag.h:87
OutpostLag & AddTags(TagsT &&value)
Definition OutpostLag.h:132
OutpostLag & WithLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT &&value)
Definition OutpostLag.h:102
void SetState(StateT &&value)
Definition OutpostLag.h:75
OutpostLag & WithState(StateT &&value)
Definition OutpostLag.h:77
OutpostLag & WithServiceLinkVirtualInterfaceIds(ServiceLinkVirtualInterfaceIdsT &&value)
Definition OutpostLag.h:116
void SetOutpostArn(OutpostArnT &&value)
Definition OutpostLag.h:51
bool ServiceLinkVirtualInterfaceIdsHasBeenSet() const
Definition OutpostLag.h:112
const Aws::String & GetOutpostLagId() const
Definition OutpostLag.h:84
const Aws::Vector< Aws::String > & GetLocalGatewayVirtualInterfaceIds() const
Definition OutpostLag.h:97
const Aws::String & GetOutpostArn() const
Definition OutpostLag.h:48
bool OwnerIdHasBeenSet() const
Definition OutpostLag.h:61
bool LocalGatewayVirtualInterfaceIdsHasBeenSet() const
Definition OutpostLag.h:98
const Aws::String & GetState() const
Definition OutpostLag.h:72
OutpostLag & WithOwnerId(OwnerIdT &&value)
Definition OutpostLag.h:65
const Aws::Vector< Tag > & GetTags() const
Definition OutpostLag.h:125
void SetOwnerId(OwnerIdT &&value)
Definition OutpostLag.h:63
AWS_EC2_API OutpostLag()=default
void SetLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT &&value)
Definition OutpostLag.h:100
OutpostLag & WithOutpostLagId(OutpostLagIdT &&value)
Definition OutpostLag.h:89
void SetTags(TagsT &&value)
Definition OutpostLag.h:128
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
OutpostLag & WithTags(TagsT &&value)
Definition OutpostLag.h:130
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:114
OutpostLag & AddServiceLinkVirtualInterfaceIds(ServiceLinkVirtualInterfaceIdsT &&value)
Definition OutpostLag.h:118
bool OutpostLagIdHasBeenSet() const
Definition OutpostLag.h:85
bool OutpostArnHasBeenSet() const
Definition OutpostLag.h:49
const Aws::Vector< Aws::String > & GetServiceLinkVirtualInterfaceIds() const
Definition OutpostLag.h:111
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