AWS SDK for C++  1.9.124
AWS SDK for C++
TransitGatewayPropagation.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 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
48 
52  inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
53 
57  inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
58 
62  inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
63 
67  inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
68 
72  inline TransitGatewayPropagation& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;}
73 
77  inline TransitGatewayPropagation& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;}
78 
82  inline TransitGatewayPropagation& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;}
83 
84 
88  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
89 
93  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
94 
98  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
99 
103  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
104 
108  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
109 
113  inline TransitGatewayPropagation& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
114 
118  inline TransitGatewayPropagation& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
119 
123  inline TransitGatewayPropagation& WithResourceId(const char* value) { SetResourceId(value); return *this;}
124 
125 
130  inline const TransitGatewayAttachmentResourceType& GetResourceType() const{ return m_resourceType; }
131 
136  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
137 
142  inline void SetResourceType(const TransitGatewayAttachmentResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
143 
148  inline void SetResourceType(TransitGatewayAttachmentResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
149 
154  inline TransitGatewayPropagation& WithResourceType(const TransitGatewayAttachmentResourceType& value) { SetResourceType(value); return *this;}
155 
160  inline TransitGatewayPropagation& WithResourceType(TransitGatewayAttachmentResourceType&& value) { SetResourceType(std::move(value)); return *this;}
161 
162 
166  inline const Aws::String& GetTransitGatewayRouteTableId() const{ return m_transitGatewayRouteTableId; }
167 
171  inline bool TransitGatewayRouteTableIdHasBeenSet() const { return m_transitGatewayRouteTableIdHasBeenSet; }
172 
176  inline void SetTransitGatewayRouteTableId(const Aws::String& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = value; }
177 
181  inline void SetTransitGatewayRouteTableId(Aws::String&& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = std::move(value); }
182 
186  inline void SetTransitGatewayRouteTableId(const char* value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId.assign(value); }
187 
191  inline TransitGatewayPropagation& WithTransitGatewayRouteTableId(const Aws::String& value) { SetTransitGatewayRouteTableId(value); return *this;}
192 
196  inline TransitGatewayPropagation& WithTransitGatewayRouteTableId(Aws::String&& value) { SetTransitGatewayRouteTableId(std::move(value)); return *this;}
197 
201  inline TransitGatewayPropagation& WithTransitGatewayRouteTableId(const char* value) { SetTransitGatewayRouteTableId(value); return *this;}
202 
203 
207  inline const TransitGatewayPropagationState& GetState() const{ return m_state; }
208 
212  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
213 
217  inline void SetState(const TransitGatewayPropagationState& value) { m_stateHasBeenSet = true; m_state = value; }
218 
222  inline void SetState(TransitGatewayPropagationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
223 
227  inline TransitGatewayPropagation& WithState(const TransitGatewayPropagationState& value) { SetState(value); return *this;}
228 
232  inline TransitGatewayPropagation& WithState(TransitGatewayPropagationState&& value) { SetState(std::move(value)); return *this;}
233 
234  private:
235 
236  Aws::String m_transitGatewayAttachmentId;
237  bool m_transitGatewayAttachmentIdHasBeenSet;
238 
239  Aws::String m_resourceId;
240  bool m_resourceIdHasBeenSet;
241 
243  bool m_resourceTypeHasBeenSet;
244 
245  Aws::String m_transitGatewayRouteTableId;
246  bool m_transitGatewayRouteTableIdHasBeenSet;
247 
249  bool m_stateHasBeenSet;
250  };
251 
252 } // namespace Model
253 } // namespace EC2
254 } // namespace Aws
Aws::EC2::Model::TransitGatewayPropagation::GetState
const TransitGatewayPropagationState & GetState() const
Definition: TransitGatewayPropagation.h:207
Aws::EC2::Model::TransitGatewayPropagation::SetState
void SetState(const TransitGatewayPropagationState &value)
Definition: TransitGatewayPropagation.h:217
Aws::EC2::Model::TransitGatewayPropagation::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(const Aws::String &value)
Definition: TransitGatewayPropagation.h:176
Aws::EC2::Model::TransitGatewayPropagation::WithResourceId
TransitGatewayPropagation & WithResourceId(Aws::String &&value)
Definition: TransitGatewayPropagation.h:118
Aws::EC2::Model::TransitGatewayPropagation::WithTransitGatewayRouteTableId
TransitGatewayPropagation & WithTransitGatewayRouteTableId(const Aws::String &value)
Definition: TransitGatewayPropagation.h:191
Aws::EC2::Model::TransitGatewayPropagation::GetTransitGatewayAttachmentId
const Aws::String & GetTransitGatewayAttachmentId() const
Definition: TransitGatewayPropagation.h:47
Aws::EC2::Model::TransitGatewayPropagation::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayPropagation.h:67
Aws::EC2::Model::TransitGatewayPropagation::SetState
void SetState(TransitGatewayPropagationState &&value)
Definition: TransitGatewayPropagation.h:222
Aws::EC2::Model::TransitGatewayPropagation::GetTransitGatewayRouteTableId
const Aws::String & GetTransitGatewayRouteTableId() const
Definition: TransitGatewayPropagation.h:166
Aws::EC2::Model::TransitGatewayPropagation::WithTransitGatewayAttachmentId
TransitGatewayPropagation & WithTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayPropagation.h:82
Aws::EC2::Model::TransitGatewayPropagation::TransitGatewayPropagation
TransitGatewayPropagation(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayPropagation::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(const char *value)
Definition: TransitGatewayPropagation.h:186
Aws::EC2::Model::TransitGatewayPropagation::WithTransitGatewayAttachmentId
TransitGatewayPropagation & WithTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayPropagation.h:72
Aws::EC2::Model::TransitGatewayPropagation::WithResourceId
TransitGatewayPropagation & WithResourceId(const char *value)
Definition: TransitGatewayPropagation.h:123
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TransitGatewayPropagation::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: TransitGatewayPropagation.h:136
AWSStreamFwd.h
Aws::EC2::Model::TransitGatewayAttachmentResourceType
TransitGatewayAttachmentResourceType
Definition: TransitGatewayAttachmentResourceType.h:17
Aws::EC2::Model::TransitGatewayPropagation::WithTransitGatewayRouteTableId
TransitGatewayPropagation & WithTransitGatewayRouteTableId(Aws::String &&value)
Definition: TransitGatewayPropagation.h:196
Aws::EC2::Model::TransitGatewayPropagation::WithTransitGatewayAttachmentId
TransitGatewayPropagation & WithTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayPropagation.h:77
Aws::EC2::Model::TransitGatewayPropagation::GetResourceId
const Aws::String & GetResourceId() const
Definition: TransitGatewayPropagation.h:88
Aws::EC2::Model::TransitGatewayPropagation::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(Aws::String &&value)
Definition: TransitGatewayPropagation.h:181
TransitGatewayPropagationState.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
TransitGatewayAttachmentResourceType.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TransitGatewayPropagation::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: TransitGatewayPropagation.h:98
Aws::EC2::Model::TransitGatewayPropagation::WithTransitGatewayRouteTableId
TransitGatewayPropagation & WithTransitGatewayRouteTableId(const char *value)
Definition: TransitGatewayPropagation.h:201
Aws::EC2::Model::TransitGatewayPropagation::operator=
TransitGatewayPropagation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayPropagation::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: TransitGatewayPropagation.h:103
Aws::EC2::Model::TransitGatewayPropagation::WithResourceId
TransitGatewayPropagation & WithResourceId(const Aws::String &value)
Definition: TransitGatewayPropagation.h:113
Aws::EC2::Model::TransitGatewayPropagation::SetResourceType
void SetResourceType(TransitGatewayAttachmentResourceType &&value)
Definition: TransitGatewayPropagation.h:148
Aws::EC2::Model::TransitGatewayPropagation
Definition: TransitGatewayPropagation.h:34
Aws::EC2::Model::TransitGatewayPropagation::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: TransitGatewayPropagation.h:93
Aws::EC2::Model::TransitGatewayPropagation::WithState
TransitGatewayPropagation & WithState(TransitGatewayPropagationState &&value)
Definition: TransitGatewayPropagation.h:232
AWSString.h
Aws::EC2::Model::TransitGatewayPropagation::GetResourceType
const TransitGatewayAttachmentResourceType & GetResourceType() const
Definition: TransitGatewayPropagation.h:130
Aws::EC2::Model::TransitGatewayPropagation::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayPropagation.h:62
Aws::EC2::Model::TransitGatewayPropagation::TransitGatewayAttachmentIdHasBeenSet
bool TransitGatewayAttachmentIdHasBeenSet() const
Definition: TransitGatewayPropagation.h:52
Aws::EC2::Model::TransitGatewayPropagation::TransitGatewayPropagation
TransitGatewayPropagation()
Aws::EC2::Model::TransitGatewayPropagation::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayPropagation.h:57
Aws::EC2::Model::TransitGatewayPropagation::StateHasBeenSet
bool StateHasBeenSet() const
Definition: TransitGatewayPropagation.h:212
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TransitGatewayPropagation::WithResourceType
TransitGatewayPropagation & WithResourceType(TransitGatewayAttachmentResourceType &&value)
Definition: TransitGatewayPropagation.h:160
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::TransitGatewayPropagation::SetResourceType
void SetResourceType(const TransitGatewayAttachmentResourceType &value)
Definition: TransitGatewayPropagation.h:142
Aws::EC2::Model::TransitGatewayPropagationState
TransitGatewayPropagationState
Definition: TransitGatewayPropagationState.h:17
Aws::EC2::Model::TransitGatewayPropagation::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::TransitGatewayPropagation::SetResourceId
void SetResourceId(const char *value)
Definition: TransitGatewayPropagation.h:108
EC2_EXPORTS.h
Aws::EC2::Model::TransitGatewayPropagation::WithState
TransitGatewayPropagation & WithState(const TransitGatewayPropagationState &value)
Definition: TransitGatewayPropagation.h:227
Aws::EC2::Model::TransitGatewayPropagation::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TransitGatewayPropagation::WithResourceType
TransitGatewayPropagation & WithResourceType(const TransitGatewayAttachmentResourceType &value)
Definition: TransitGatewayPropagation.h:154
Aws::EC2::Model::TransitGatewayPropagation::TransitGatewayRouteTableIdHasBeenSet
bool TransitGatewayRouteTableIdHasBeenSet() const
Definition: TransitGatewayPropagation.h:171