AWS SDK for C++  1.9.108
AWS SDK for C++
TransitGatewayRouteTableAssociation.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& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
49 
53  inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
54 
58  inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
59 
63  inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
64 
68  inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
69 
73  inline TransitGatewayRouteTableAssociation& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;}
74 
78  inline TransitGatewayRouteTableAssociation& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;}
79 
83  inline TransitGatewayRouteTableAssociation& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;}
84 
85 
89  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
90 
94  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
95 
99  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
100 
104  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
105 
109  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
110 
114  inline TransitGatewayRouteTableAssociation& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
115 
119  inline TransitGatewayRouteTableAssociation& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
120 
124  inline TransitGatewayRouteTableAssociation& WithResourceId(const char* value) { SetResourceId(value); return *this;}
125 
126 
131  inline const TransitGatewayAttachmentResourceType& GetResourceType() const{ return m_resourceType; }
132 
137  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
138 
143  inline void SetResourceType(const TransitGatewayAttachmentResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
144 
149  inline void SetResourceType(TransitGatewayAttachmentResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
150 
155  inline TransitGatewayRouteTableAssociation& WithResourceType(const TransitGatewayAttachmentResourceType& value) { SetResourceType(value); return *this;}
156 
161  inline TransitGatewayRouteTableAssociation& WithResourceType(TransitGatewayAttachmentResourceType&& value) { SetResourceType(std::move(value)); return *this;}
162 
163 
167  inline const TransitGatewayAssociationState& GetState() const{ return m_state; }
168 
172  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
173 
177  inline void SetState(const TransitGatewayAssociationState& value) { m_stateHasBeenSet = true; m_state = value; }
178 
182  inline void SetState(TransitGatewayAssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
183 
187  inline TransitGatewayRouteTableAssociation& WithState(const TransitGatewayAssociationState& value) { SetState(value); return *this;}
188 
192  inline TransitGatewayRouteTableAssociation& WithState(TransitGatewayAssociationState&& value) { SetState(std::move(value)); return *this;}
193 
194  private:
195 
196  Aws::String m_transitGatewayAttachmentId;
197  bool m_transitGatewayAttachmentIdHasBeenSet;
198 
199  Aws::String m_resourceId;
200  bool m_resourceIdHasBeenSet;
201 
203  bool m_resourceTypeHasBeenSet;
204 
206  bool m_stateHasBeenSet;
207  };
208 
209 } // namespace Model
210 } // namespace EC2
211 } // namespace Aws
Aws::EC2::Model::TransitGatewayRouteTableAssociation::operator=
TransitGatewayRouteTableAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayRouteTableAssociation::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayRouteTableAssociation.h:63
Aws::EC2::Model::TransitGatewayRouteTableAssociation::WithResourceId
TransitGatewayRouteTableAssociation & WithResourceId(Aws::String &&value)
Definition: TransitGatewayRouteTableAssociation.h:119
Aws::EC2::Model::TransitGatewayRouteTableAssociation::SetState
void SetState(const TransitGatewayAssociationState &value)
Definition: TransitGatewayRouteTableAssociation.h:177
Aws::EC2::Model::TransitGatewayRouteTableAssociation::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayRouteTableAssociation.h:58
Aws::EC2::Model::TransitGatewayRouteTableAssociation::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::TransitGatewayRouteTableAssociation::WithTransitGatewayAttachmentId
TransitGatewayRouteTableAssociation & WithTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayRouteTableAssociation.h:83
Aws::EC2::Model::TransitGatewayRouteTableAssociation::GetResourceType
const TransitGatewayAttachmentResourceType & GetResourceType() const
Definition: TransitGatewayRouteTableAssociation.h:131
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TransitGatewayRouteTableAssociation
Definition: TransitGatewayRouteTableAssociation.h:35
Aws::EC2::Model::TransitGatewayRouteTableAssociation::SetResourceId
void SetResourceId(const char *value)
Definition: TransitGatewayRouteTableAssociation.h:109
Aws::EC2::Model::TransitGatewayRouteTableAssociation::GetState
const TransitGatewayAssociationState & GetState() const
Definition: TransitGatewayRouteTableAssociation.h:167
AWSStreamFwd.h
Aws::EC2::Model::TransitGatewayAttachmentResourceType
TransitGatewayAttachmentResourceType
Definition: TransitGatewayAttachmentResourceType.h:17
Aws::EC2::Model::TransitGatewayRouteTableAssociation::SetState
void SetState(TransitGatewayAssociationState &&value)
Definition: TransitGatewayRouteTableAssociation.h:182
Aws::EC2::Model::TransitGatewayRouteTableAssociation::WithState
TransitGatewayRouteTableAssociation & WithState(TransitGatewayAssociationState &&value)
Definition: TransitGatewayRouteTableAssociation.h:192
Aws::EC2::Model::TransitGatewayRouteTableAssociation::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: TransitGatewayRouteTableAssociation.h:137
Aws::EC2::Model::TransitGatewayRouteTableAssociation::WithResourceType
TransitGatewayRouteTableAssociation & WithResourceType(const TransitGatewayAttachmentResourceType &value)
Definition: TransitGatewayRouteTableAssociation.h:155
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TransitGatewayRouteTableAssociation::WithResourceId
TransitGatewayRouteTableAssociation & WithResourceId(const Aws::String &value)
Definition: TransitGatewayRouteTableAssociation.h:114
Aws::EC2::Model::TransitGatewayRouteTableAssociation::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: TransitGatewayRouteTableAssociation.h:94
TransitGatewayAttachmentResourceType.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TransitGatewayAssociationState
TransitGatewayAssociationState
Definition: TransitGatewayAssociationState.h:17
Aws::EC2::Model::TransitGatewayRouteTableAssociation::WithState
TransitGatewayRouteTableAssociation & WithState(const TransitGatewayAssociationState &value)
Definition: TransitGatewayRouteTableAssociation.h:187
Aws::EC2::Model::TransitGatewayRouteTableAssociation::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: TransitGatewayRouteTableAssociation.h:104
Aws::EC2::Model::TransitGatewayRouteTableAssociation::SetResourceType
void SetResourceType(const TransitGatewayAttachmentResourceType &value)
Definition: TransitGatewayRouteTableAssociation.h:143
AWSString.h
Aws::EC2::Model::TransitGatewayRouteTableAssociation::SetResourceType
void SetResourceType(TransitGatewayAttachmentResourceType &&value)
Definition: TransitGatewayRouteTableAssociation.h:149
Aws::EC2::Model::TransitGatewayRouteTableAssociation::GetTransitGatewayAttachmentId
const Aws::String & GetTransitGatewayAttachmentId() const
Definition: TransitGatewayRouteTableAssociation.h:48
Aws::EC2::Model::TransitGatewayRouteTableAssociation::WithResourceId
TransitGatewayRouteTableAssociation & WithResourceId(const char *value)
Definition: TransitGatewayRouteTableAssociation.h:124
TransitGatewayAssociationState.h
Aws::EC2::Model::TransitGatewayRouteTableAssociation::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TransitGatewayRouteTableAssociation::TransitGatewayRouteTableAssociation
TransitGatewayRouteTableAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayRouteTableAssociation::GetResourceId
const Aws::String & GetResourceId() const
Definition: TransitGatewayRouteTableAssociation.h:89
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::TransitGatewayRouteTableAssociation::TransitGatewayAttachmentIdHasBeenSet
bool TransitGatewayAttachmentIdHasBeenSet() const
Definition: TransitGatewayRouteTableAssociation.h:53
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TransitGatewayRouteTableAssociation::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayRouteTableAssociation.h:68
EC2_EXPORTS.h
Aws::EC2::Model::TransitGatewayRouteTableAssociation::WithResourceType
TransitGatewayRouteTableAssociation & WithResourceType(TransitGatewayAttachmentResourceType &&value)
Definition: TransitGatewayRouteTableAssociation.h:161
Aws::EC2::Model::TransitGatewayRouteTableAssociation::WithTransitGatewayAttachmentId
TransitGatewayRouteTableAssociation & WithTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayRouteTableAssociation.h:78
Aws::EC2::Model::TransitGatewayRouteTableAssociation::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: TransitGatewayRouteTableAssociation.h:99
Aws::EC2::Model::TransitGatewayRouteTableAssociation::TransitGatewayRouteTableAssociation
TransitGatewayRouteTableAssociation()
Aws::EC2::Model::TransitGatewayRouteTableAssociation::StateHasBeenSet
bool StateHasBeenSet() const
Definition: TransitGatewayRouteTableAssociation.h:172
Aws::EC2::Model::TransitGatewayRouteTableAssociation::WithTransitGatewayAttachmentId
TransitGatewayRouteTableAssociation & WithTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayRouteTableAssociation.h:73