AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LocalGatewayRouteTableVpcAssociation.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
35 {
36 public:
37 AWS_EC2_API LocalGatewayRouteTableVpcAssociation() = default;
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetLocalGatewayRouteTableVpcAssociationId() const { return m_localGatewayRouteTableVpcAssociationId; }
50 inline bool LocalGatewayRouteTableVpcAssociationIdHasBeenSet() const { return m_localGatewayRouteTableVpcAssociationIdHasBeenSet; }
51 template<typename LocalGatewayRouteTableVpcAssociationIdT = Aws::String>
52 void SetLocalGatewayRouteTableVpcAssociationId(LocalGatewayRouteTableVpcAssociationIdT&& value) { m_localGatewayRouteTableVpcAssociationIdHasBeenSet = true; m_localGatewayRouteTableVpcAssociationId = std::forward<LocalGatewayRouteTableVpcAssociationIdT>(value); }
53 template<typename LocalGatewayRouteTableVpcAssociationIdT = Aws::String>
54 LocalGatewayRouteTableVpcAssociation& WithLocalGatewayRouteTableVpcAssociationId(LocalGatewayRouteTableVpcAssociationIdT&& value) { SetLocalGatewayRouteTableVpcAssociationId(std::forward<LocalGatewayRouteTableVpcAssociationIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetLocalGatewayRouteTableId() const { return m_localGatewayRouteTableId; }
62 inline bool LocalGatewayRouteTableIdHasBeenSet() const { return m_localGatewayRouteTableIdHasBeenSet; }
63 template<typename LocalGatewayRouteTableIdT = Aws::String>
64 void SetLocalGatewayRouteTableId(LocalGatewayRouteTableIdT&& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = std::forward<LocalGatewayRouteTableIdT>(value); }
65 template<typename LocalGatewayRouteTableIdT = Aws::String>
66 LocalGatewayRouteTableVpcAssociation& WithLocalGatewayRouteTableId(LocalGatewayRouteTableIdT&& value) { SetLocalGatewayRouteTableId(std::forward<LocalGatewayRouteTableIdT>(value)); return *this;}
68
70
74 inline const Aws::String& GetLocalGatewayRouteTableArn() const { return m_localGatewayRouteTableArn; }
75 inline bool LocalGatewayRouteTableArnHasBeenSet() const { return m_localGatewayRouteTableArnHasBeenSet; }
76 template<typename LocalGatewayRouteTableArnT = Aws::String>
77 void SetLocalGatewayRouteTableArn(LocalGatewayRouteTableArnT&& value) { m_localGatewayRouteTableArnHasBeenSet = true; m_localGatewayRouteTableArn = std::forward<LocalGatewayRouteTableArnT>(value); }
78 template<typename LocalGatewayRouteTableArnT = Aws::String>
79 LocalGatewayRouteTableVpcAssociation& WithLocalGatewayRouteTableArn(LocalGatewayRouteTableArnT&& value) { SetLocalGatewayRouteTableArn(std::forward<LocalGatewayRouteTableArnT>(value)); return *this;}
81
83
86 inline const Aws::String& GetLocalGatewayId() const { return m_localGatewayId; }
87 inline bool LocalGatewayIdHasBeenSet() const { return m_localGatewayIdHasBeenSet; }
88 template<typename LocalGatewayIdT = Aws::String>
89 void SetLocalGatewayId(LocalGatewayIdT&& value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId = std::forward<LocalGatewayIdT>(value); }
90 template<typename LocalGatewayIdT = Aws::String>
91 LocalGatewayRouteTableVpcAssociation& WithLocalGatewayId(LocalGatewayIdT&& value) { SetLocalGatewayId(std::forward<LocalGatewayIdT>(value)); return *this;}
93
95
98 inline const Aws::String& GetVpcId() const { return m_vpcId; }
99 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
100 template<typename VpcIdT = Aws::String>
101 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
102 template<typename VpcIdT = Aws::String>
103 LocalGatewayRouteTableVpcAssociation& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
105
107
111 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
112 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
113 template<typename OwnerIdT = Aws::String>
114 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
115 template<typename OwnerIdT = Aws::String>
116 LocalGatewayRouteTableVpcAssociation& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
118
120
123 inline const Aws::String& GetState() const { return m_state; }
124 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
125 template<typename StateT = Aws::String>
126 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
127 template<typename StateT = Aws::String>
128 LocalGatewayRouteTableVpcAssociation& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
130
132
135 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 template<typename TagsT = Aws::Vector<Tag>>
138 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
139 template<typename TagsT = Aws::Vector<Tag>>
140 LocalGatewayRouteTableVpcAssociation& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
141 template<typename TagsT = Tag>
142 LocalGatewayRouteTableVpcAssociation& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
144 private:
145
146 Aws::String m_localGatewayRouteTableVpcAssociationId;
147 bool m_localGatewayRouteTableVpcAssociationIdHasBeenSet = false;
148
149 Aws::String m_localGatewayRouteTableId;
150 bool m_localGatewayRouteTableIdHasBeenSet = false;
151
152 Aws::String m_localGatewayRouteTableArn;
153 bool m_localGatewayRouteTableArnHasBeenSet = false;
154
155 Aws::String m_localGatewayId;
156 bool m_localGatewayIdHasBeenSet = false;
157
158 Aws::String m_vpcId;
159 bool m_vpcIdHasBeenSet = false;
160
161 Aws::String m_ownerId;
162 bool m_ownerIdHasBeenSet = false;
163
164 Aws::String m_state;
165 bool m_stateHasBeenSet = false;
166
167 Aws::Vector<Tag> m_tags;
168 bool m_tagsHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace EC2
173} // namespace Aws
LocalGatewayRouteTableVpcAssociation & WithVpcId(VpcIdT &&value)
LocalGatewayRouteTableVpcAssociation & WithLocalGatewayRouteTableVpcAssociationId(LocalGatewayRouteTableVpcAssociationIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetLocalGatewayRouteTableVpcAssociationId(LocalGatewayRouteTableVpcAssociationIdT &&value)
LocalGatewayRouteTableVpcAssociation & AddTags(TagsT &&value)
LocalGatewayRouteTableVpcAssociation & WithOwnerId(OwnerIdT &&value)
LocalGatewayRouteTableVpcAssociation & WithState(StateT &&value)
AWS_EC2_API LocalGatewayRouteTableVpcAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
LocalGatewayRouteTableVpcAssociation & WithTags(TagsT &&value)
LocalGatewayRouteTableVpcAssociation & WithLocalGatewayRouteTableId(LocalGatewayRouteTableIdT &&value)
LocalGatewayRouteTableVpcAssociation & WithLocalGatewayRouteTableArn(LocalGatewayRouteTableArnT &&value)
AWS_EC2_API LocalGatewayRouteTableVpcAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LocalGatewayRouteTableVpcAssociation & WithLocalGatewayId(LocalGatewayIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
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