AWS SDK for C++  1.9.65
AWS SDK for C++
TransitGatewayAssociation.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetTransitGatewayRouteTableId() const{ return m_transitGatewayRouteTableId; }
49 
53  inline bool TransitGatewayRouteTableIdHasBeenSet() const { return m_transitGatewayRouteTableIdHasBeenSet; }
54 
58  inline void SetTransitGatewayRouteTableId(const Aws::String& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = value; }
59 
63  inline void SetTransitGatewayRouteTableId(Aws::String&& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = std::move(value); }
64 
68  inline void SetTransitGatewayRouteTableId(const char* value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId.assign(value); }
69 
73  inline TransitGatewayAssociation& WithTransitGatewayRouteTableId(const Aws::String& value) { SetTransitGatewayRouteTableId(value); return *this;}
74 
78  inline TransitGatewayAssociation& WithTransitGatewayRouteTableId(Aws::String&& value) { SetTransitGatewayRouteTableId(std::move(value)); return *this;}
79 
83  inline TransitGatewayAssociation& WithTransitGatewayRouteTableId(const char* value) { SetTransitGatewayRouteTableId(value); return *this;}
84 
85 
89  inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
90 
94  inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
95 
99  inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
100 
104  inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
105 
109  inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
110 
114  inline TransitGatewayAssociation& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;}
115 
119  inline TransitGatewayAssociation& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;}
120 
124  inline TransitGatewayAssociation& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;}
125 
126 
130  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
131 
135  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
136 
140  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
141 
145  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
146 
150  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
151 
155  inline TransitGatewayAssociation& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
156 
160  inline TransitGatewayAssociation& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
161 
165  inline TransitGatewayAssociation& WithResourceId(const char* value) { SetResourceId(value); return *this;}
166 
167 
172  inline const TransitGatewayAttachmentResourceType& GetResourceType() const{ return m_resourceType; }
173 
178  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
179 
184  inline void SetResourceType(const TransitGatewayAttachmentResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
185 
190  inline void SetResourceType(TransitGatewayAttachmentResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
191 
196  inline TransitGatewayAssociation& WithResourceType(const TransitGatewayAttachmentResourceType& value) { SetResourceType(value); return *this;}
197 
202  inline TransitGatewayAssociation& WithResourceType(TransitGatewayAttachmentResourceType&& value) { SetResourceType(std::move(value)); return *this;}
203 
204 
208  inline const TransitGatewayAssociationState& GetState() const{ return m_state; }
209 
213  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
214 
218  inline void SetState(const TransitGatewayAssociationState& value) { m_stateHasBeenSet = true; m_state = value; }
219 
223  inline void SetState(TransitGatewayAssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
224 
228  inline TransitGatewayAssociation& WithState(const TransitGatewayAssociationState& value) { SetState(value); return *this;}
229 
233  inline TransitGatewayAssociation& WithState(TransitGatewayAssociationState&& value) { SetState(std::move(value)); return *this;}
234 
235  private:
236 
237  Aws::String m_transitGatewayRouteTableId;
238  bool m_transitGatewayRouteTableIdHasBeenSet;
239 
240  Aws::String m_transitGatewayAttachmentId;
241  bool m_transitGatewayAttachmentIdHasBeenSet;
242 
243  Aws::String m_resourceId;
244  bool m_resourceIdHasBeenSet;
245 
247  bool m_resourceTypeHasBeenSet;
248 
250  bool m_stateHasBeenSet;
251  };
252 
253 } // namespace Model
254 } // namespace EC2
255 } // namespace Aws
Aws::EC2::Model::TransitGatewayAssociation::WithResourceId
TransitGatewayAssociation & WithResourceId(const Aws::String &value)
Definition: TransitGatewayAssociation.h:155
Aws::EC2::Model::TransitGatewayAssociation::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(const char *value)
Definition: TransitGatewayAssociation.h:68
Aws::EC2::Model::TransitGatewayAssociation::WithResourceType
TransitGatewayAssociation & WithResourceType(const TransitGatewayAttachmentResourceType &value)
Definition: TransitGatewayAssociation.h:196
Aws::EC2::Model::TransitGatewayAssociation::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::TransitGatewayAssociation::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TransitGatewayAssociation::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(const Aws::String &value)
Definition: TransitGatewayAssociation.h:58
Aws::EC2::Model::TransitGatewayAssociation::SetState
void SetState(TransitGatewayAssociationState &&value)
Definition: TransitGatewayAssociation.h:223
Aws::EC2::Model::TransitGatewayAssociation::WithResourceId
TransitGatewayAssociation & WithResourceId(Aws::String &&value)
Definition: TransitGatewayAssociation.h:160
Aws::EC2::Model::TransitGatewayAssociation::SetResourceType
void SetResourceType(const TransitGatewayAttachmentResourceType &value)
Definition: TransitGatewayAssociation.h:184
Aws::EC2::Model::TransitGatewayAssociation::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: TransitGatewayAssociation.h:140
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TransitGatewayAssociation::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(Aws::String &&value)
Definition: TransitGatewayAssociation.h:63
Aws::EC2::Model::TransitGatewayAssociation::SetState
void SetState(const TransitGatewayAssociationState &value)
Definition: TransitGatewayAssociation.h:218
Aws::EC2::Model::TransitGatewayAssociation::GetTransitGatewayRouteTableId
const Aws::String & GetTransitGatewayRouteTableId() const
Definition: TransitGatewayAssociation.h:48
AWSStreamFwd.h
Aws::EC2::Model::TransitGatewayAttachmentResourceType
TransitGatewayAttachmentResourceType
Definition: TransitGatewayAttachmentResourceType.h:17
Aws::EC2::Model::TransitGatewayAssociation::TransitGatewayAttachmentIdHasBeenSet
bool TransitGatewayAttachmentIdHasBeenSet() const
Definition: TransitGatewayAssociation.h:94
Aws::EC2::Model::TransitGatewayAssociation::WithResourceId
TransitGatewayAssociation & WithResourceId(const char *value)
Definition: TransitGatewayAssociation.h:165
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TransitGatewayAssociation::GetResourceType
const TransitGatewayAttachmentResourceType & GetResourceType() const
Definition: TransitGatewayAssociation.h:172
Aws::EC2::Model::TransitGatewayAssociation::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayAssociation.h:109
Aws::EC2::Model::TransitGatewayAssociation::SetResourceId
void SetResourceId(const char *value)
Definition: TransitGatewayAssociation.h:150
Aws::EC2::Model::TransitGatewayAssociation::WithTransitGatewayAttachmentId
TransitGatewayAssociation & WithTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayAssociation.h:119
TransitGatewayAttachmentResourceType.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TransitGatewayAssociation::WithTransitGatewayRouteTableId
TransitGatewayAssociation & WithTransitGatewayRouteTableId(const char *value)
Definition: TransitGatewayAssociation.h:83
Aws::EC2::Model::TransitGatewayAssociationState
TransitGatewayAssociationState
Definition: TransitGatewayAssociationState.h:17
Aws::EC2::Model::TransitGatewayAssociation::WithState
TransitGatewayAssociation & WithState(const TransitGatewayAssociationState &value)
Definition: TransitGatewayAssociation.h:228
Aws::EC2::Model::TransitGatewayAssociation::WithState
TransitGatewayAssociation & WithState(TransitGatewayAssociationState &&value)
Definition: TransitGatewayAssociation.h:233
Aws::EC2::Model::TransitGatewayAssociation::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: TransitGatewayAssociation.h:178
Aws::EC2::Model::TransitGatewayAssociation::GetResourceId
const Aws::String & GetResourceId() const
Definition: TransitGatewayAssociation.h:130
AWSString.h
Aws::EC2::Model::TransitGatewayAssociation::SetResourceType
void SetResourceType(TransitGatewayAttachmentResourceType &&value)
Definition: TransitGatewayAssociation.h:190
Aws::EC2::Model::TransitGatewayAssociation::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayAssociation.h:99
Aws::EC2::Model::TransitGatewayAssociation::StateHasBeenSet
bool StateHasBeenSet() const
Definition: TransitGatewayAssociation.h:213
Aws::EC2::Model::TransitGatewayAssociation::WithTransitGatewayAttachmentId
TransitGatewayAssociation & WithTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayAssociation.h:124
TransitGatewayAssociationState.h
Aws::EC2::Model::TransitGatewayAssociation::WithResourceType
TransitGatewayAssociation & WithResourceType(TransitGatewayAttachmentResourceType &&value)
Definition: TransitGatewayAssociation.h:202
Aws::EC2::Model::TransitGatewayAssociation::TransitGatewayAssociation
TransitGatewayAssociation()
Aws::EC2::Model::TransitGatewayAssociation::TransitGatewayRouteTableIdHasBeenSet
bool TransitGatewayRouteTableIdHasBeenSet() const
Definition: TransitGatewayAssociation.h:53
Aws::EC2::Model::TransitGatewayAssociation::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: TransitGatewayAssociation.h:135
Aws::EC2::Model::TransitGatewayAssociation
Definition: TransitGatewayAssociation.h:35
Aws::EC2::Model::TransitGatewayAssociation::TransitGatewayAssociation
TransitGatewayAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayAssociation::WithTransitGatewayRouteTableId
TransitGatewayAssociation & WithTransitGatewayRouteTableId(const Aws::String &value)
Definition: TransitGatewayAssociation.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TransitGatewayAssociation::GetState
const TransitGatewayAssociationState & GetState() const
Definition: TransitGatewayAssociation.h:208
Aws::EC2::Model::TransitGatewayAssociation::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: TransitGatewayAssociation.h:145
Aws::EC2::Model::TransitGatewayAssociation::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayAssociation.h:104
Aws::EC2::Model::TransitGatewayAssociation::operator=
TransitGatewayAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h
Aws::EC2::Model::TransitGatewayAssociation::GetTransitGatewayAttachmentId
const Aws::String & GetTransitGatewayAttachmentId() const
Definition: TransitGatewayAssociation.h:89
Aws::EC2::Model::TransitGatewayAssociation::WithTransitGatewayRouteTableId
TransitGatewayAssociation & WithTransitGatewayRouteTableId(Aws::String &&value)
Definition: TransitGatewayAssociation.h:78
Aws::EC2::Model::TransitGatewayAssociation::WithTransitGatewayAttachmentId
TransitGatewayAssociation & WithTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayAssociation.h:114