AWS SDK for C++  1.9.69
AWS SDK for C++
TransitGatewayPrefixListReference.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& GetTransitGatewayRouteTableId() const{ return m_transitGatewayRouteTableId; }
48 
52  inline bool TransitGatewayRouteTableIdHasBeenSet() const { return m_transitGatewayRouteTableIdHasBeenSet; }
53 
57  inline void SetTransitGatewayRouteTableId(const Aws::String& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = value; }
58 
62  inline void SetTransitGatewayRouteTableId(Aws::String&& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = std::move(value); }
63 
67  inline void SetTransitGatewayRouteTableId(const char* value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId.assign(value); }
68 
72  inline TransitGatewayPrefixListReference& WithTransitGatewayRouteTableId(const Aws::String& value) { SetTransitGatewayRouteTableId(value); return *this;}
73 
77  inline TransitGatewayPrefixListReference& WithTransitGatewayRouteTableId(Aws::String&& value) { SetTransitGatewayRouteTableId(std::move(value)); return *this;}
78 
82  inline TransitGatewayPrefixListReference& WithTransitGatewayRouteTableId(const char* value) { SetTransitGatewayRouteTableId(value); return *this;}
83 
84 
88  inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; }
89 
93  inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
94 
98  inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; }
99 
103  inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); }
104 
108  inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); }
109 
113  inline TransitGatewayPrefixListReference& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
114 
118  inline TransitGatewayPrefixListReference& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
119 
123  inline TransitGatewayPrefixListReference& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
124 
125 
129  inline const Aws::String& GetPrefixListOwnerId() const{ return m_prefixListOwnerId; }
130 
134  inline bool PrefixListOwnerIdHasBeenSet() const { return m_prefixListOwnerIdHasBeenSet; }
135 
139  inline void SetPrefixListOwnerId(const Aws::String& value) { m_prefixListOwnerIdHasBeenSet = true; m_prefixListOwnerId = value; }
140 
144  inline void SetPrefixListOwnerId(Aws::String&& value) { m_prefixListOwnerIdHasBeenSet = true; m_prefixListOwnerId = std::move(value); }
145 
149  inline void SetPrefixListOwnerId(const char* value) { m_prefixListOwnerIdHasBeenSet = true; m_prefixListOwnerId.assign(value); }
150 
154  inline TransitGatewayPrefixListReference& WithPrefixListOwnerId(const Aws::String& value) { SetPrefixListOwnerId(value); return *this;}
155 
159  inline TransitGatewayPrefixListReference& WithPrefixListOwnerId(Aws::String&& value) { SetPrefixListOwnerId(std::move(value)); return *this;}
160 
164  inline TransitGatewayPrefixListReference& WithPrefixListOwnerId(const char* value) { SetPrefixListOwnerId(value); return *this;}
165 
166 
170  inline const TransitGatewayPrefixListReferenceState& GetState() const{ return m_state; }
171 
175  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
176 
180  inline void SetState(const TransitGatewayPrefixListReferenceState& value) { m_stateHasBeenSet = true; m_state = value; }
181 
185  inline void SetState(TransitGatewayPrefixListReferenceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
186 
190  inline TransitGatewayPrefixListReference& WithState(const TransitGatewayPrefixListReferenceState& value) { SetState(value); return *this;}
191 
195  inline TransitGatewayPrefixListReference& WithState(TransitGatewayPrefixListReferenceState&& value) { SetState(std::move(value)); return *this;}
196 
197 
201  inline bool GetBlackhole() const{ return m_blackhole; }
202 
206  inline bool BlackholeHasBeenSet() const { return m_blackholeHasBeenSet; }
207 
211  inline void SetBlackhole(bool value) { m_blackholeHasBeenSet = true; m_blackhole = value; }
212 
216  inline TransitGatewayPrefixListReference& WithBlackhole(bool value) { SetBlackhole(value); return *this;}
217 
218 
222  inline const TransitGatewayPrefixListAttachment& GetTransitGatewayAttachment() const{ return m_transitGatewayAttachment; }
223 
227  inline bool TransitGatewayAttachmentHasBeenSet() const { return m_transitGatewayAttachmentHasBeenSet; }
228 
232  inline void SetTransitGatewayAttachment(const TransitGatewayPrefixListAttachment& value) { m_transitGatewayAttachmentHasBeenSet = true; m_transitGatewayAttachment = value; }
233 
237  inline void SetTransitGatewayAttachment(TransitGatewayPrefixListAttachment&& value) { m_transitGatewayAttachmentHasBeenSet = true; m_transitGatewayAttachment = std::move(value); }
238 
242  inline TransitGatewayPrefixListReference& WithTransitGatewayAttachment(const TransitGatewayPrefixListAttachment& value) { SetTransitGatewayAttachment(value); return *this;}
243 
247  inline TransitGatewayPrefixListReference& WithTransitGatewayAttachment(TransitGatewayPrefixListAttachment&& value) { SetTransitGatewayAttachment(std::move(value)); return *this;}
248 
249  private:
250 
251  Aws::String m_transitGatewayRouteTableId;
252  bool m_transitGatewayRouteTableIdHasBeenSet;
253 
254  Aws::String m_prefixListId;
255  bool m_prefixListIdHasBeenSet;
256 
257  Aws::String m_prefixListOwnerId;
258  bool m_prefixListOwnerIdHasBeenSet;
259 
261  bool m_stateHasBeenSet;
262 
263  bool m_blackhole;
264  bool m_blackholeHasBeenSet;
265 
266  TransitGatewayPrefixListAttachment m_transitGatewayAttachment;
267  bool m_transitGatewayAttachmentHasBeenSet;
268  };
269 
270 } // namespace Model
271 } // namespace EC2
272 } // namespace Aws
Aws::EC2::Model::TransitGatewayPrefixListReference::SetTransitGatewayAttachment
void SetTransitGatewayAttachment(const TransitGatewayPrefixListAttachment &value)
Definition: TransitGatewayPrefixListReference.h:232
Aws::EC2::Model::TransitGatewayPrefixListReference::SetState
void SetState(const TransitGatewayPrefixListReferenceState &value)
Definition: TransitGatewayPrefixListReference.h:180
Aws::EC2::Model::TransitGatewayPrefixListReference::WithTransitGatewayAttachment
TransitGatewayPrefixListReference & WithTransitGatewayAttachment(const TransitGatewayPrefixListAttachment &value)
Definition: TransitGatewayPrefixListReference.h:242
Aws::EC2::Model::TransitGatewayPrefixListReference::WithPrefixListId
TransitGatewayPrefixListReference & WithPrefixListId(const Aws::String &value)
Definition: TransitGatewayPrefixListReference.h:113
Aws::EC2::Model::TransitGatewayPrefixListReference::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(Aws::String &&value)
Definition: TransitGatewayPrefixListReference.h:62
Aws::EC2::Model::TransitGatewayPrefixListReference::SetBlackhole
void SetBlackhole(bool value)
Definition: TransitGatewayPrefixListReference.h:211
Aws::EC2::Model::TransitGatewayPrefixListReference::SetState
void SetState(TransitGatewayPrefixListReferenceState &&value)
Definition: TransitGatewayPrefixListReference.h:185
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TransitGatewayPrefixListReference::WithState
TransitGatewayPrefixListReference & WithState(TransitGatewayPrefixListReferenceState &&value)
Definition: TransitGatewayPrefixListReference.h:195
Aws::EC2::Model::TransitGatewayPrefixListReferenceState
TransitGatewayPrefixListReferenceState
Definition: TransitGatewayPrefixListReferenceState.h:17
Aws::EC2::Model::TransitGatewayPrefixListReference::WithPrefixListOwnerId
TransitGatewayPrefixListReference & WithPrefixListOwnerId(Aws::String &&value)
Definition: TransitGatewayPrefixListReference.h:159
Aws::EC2::Model::TransitGatewayPrefixListReference::WithState
TransitGatewayPrefixListReference & WithState(const TransitGatewayPrefixListReferenceState &value)
Definition: TransitGatewayPrefixListReference.h:190
Aws::EC2::Model::TransitGatewayPrefixListReference::GetPrefixListId
const Aws::String & GetPrefixListId() const
Definition: TransitGatewayPrefixListReference.h:88
AWSStreamFwd.h
Aws::EC2::Model::TransitGatewayPrefixListReference::SetTransitGatewayAttachment
void SetTransitGatewayAttachment(TransitGatewayPrefixListAttachment &&value)
Definition: TransitGatewayPrefixListReference.h:237
Aws::EC2::Model::TransitGatewayPrefixListReference::BlackholeHasBeenSet
bool BlackholeHasBeenSet() const
Definition: TransitGatewayPrefixListReference.h:206
Aws::EC2::Model::TransitGatewayPrefixListReference::WithPrefixListOwnerId
TransitGatewayPrefixListReference & WithPrefixListOwnerId(const char *value)
Definition: TransitGatewayPrefixListReference.h:164
Aws::EC2::Model::TransitGatewayPrefixListReference
Definition: TransitGatewayPrefixListReference.h:34
Aws::EC2::Model::TransitGatewayPrefixListReference::GetTransitGatewayAttachment
const TransitGatewayPrefixListAttachment & GetTransitGatewayAttachment() const
Definition: TransitGatewayPrefixListReference.h:222
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TransitGatewayPrefixListReference::WithTransitGatewayRouteTableId
TransitGatewayPrefixListReference & WithTransitGatewayRouteTableId(const char *value)
Definition: TransitGatewayPrefixListReference.h:82
Aws::EC2::Model::TransitGatewayPrefixListReference::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(const Aws::String &value)
Definition: TransitGatewayPrefixListReference.h:57
Aws::EC2::Model::TransitGatewayPrefixListReference::SetPrefixListOwnerId
void SetPrefixListOwnerId(const Aws::String &value)
Definition: TransitGatewayPrefixListReference.h:139
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TransitGatewayPrefixListAttachment
Definition: TransitGatewayPrefixListAttachment.h:34
Aws::EC2::Model::TransitGatewayPrefixListReference::WithPrefixListOwnerId
TransitGatewayPrefixListReference & WithPrefixListOwnerId(const Aws::String &value)
Definition: TransitGatewayPrefixListReference.h:154
Aws::EC2::Model::TransitGatewayPrefixListReference::TransitGatewayPrefixListReference
TransitGatewayPrefixListReference()
Aws::EC2::Model::TransitGatewayPrefixListReference::PrefixListIdHasBeenSet
bool PrefixListIdHasBeenSet() const
Definition: TransitGatewayPrefixListReference.h:93
Aws::EC2::Model::TransitGatewayPrefixListReference::SetPrefixListOwnerId
void SetPrefixListOwnerId(const char *value)
Definition: TransitGatewayPrefixListReference.h:149
Aws::EC2::Model::TransitGatewayPrefixListReference::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayPrefixListAttachment.h
AWSString.h
Aws::EC2::Model::TransitGatewayPrefixListReference::GetBlackhole
bool GetBlackhole() const
Definition: TransitGatewayPrefixListReference.h:201
Aws::EC2::Model::TransitGatewayPrefixListReference::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TransitGatewayPrefixListReference::SetPrefixListId
void SetPrefixListId(const char *value)
Definition: TransitGatewayPrefixListReference.h:108
TransitGatewayPrefixListReferenceState.h
Aws::EC2::Model::TransitGatewayPrefixListReference::SetPrefixListId
void SetPrefixListId(const Aws::String &value)
Definition: TransitGatewayPrefixListReference.h:98
Aws::EC2::Model::TransitGatewayPrefixListReference::TransitGatewayRouteTableIdHasBeenSet
bool TransitGatewayRouteTableIdHasBeenSet() const
Definition: TransitGatewayPrefixListReference.h:52
Aws::EC2::Model::TransitGatewayPrefixListReference::TransitGatewayPrefixListReference
TransitGatewayPrefixListReference(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayPrefixListReference::SetPrefixListId
void SetPrefixListId(Aws::String &&value)
Definition: TransitGatewayPrefixListReference.h:103
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TransitGatewayPrefixListReference::WithTransitGatewayAttachment
TransitGatewayPrefixListReference & WithTransitGatewayAttachment(TransitGatewayPrefixListAttachment &&value)
Definition: TransitGatewayPrefixListReference.h:247
Aws::EC2::Model::TransitGatewayPrefixListReference::PrefixListOwnerIdHasBeenSet
bool PrefixListOwnerIdHasBeenSet() const
Definition: TransitGatewayPrefixListReference.h:134
Aws::EC2::Model::TransitGatewayPrefixListReference::GetTransitGatewayRouteTableId
const Aws::String & GetTransitGatewayRouteTableId() const
Definition: TransitGatewayPrefixListReference.h:47
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::TransitGatewayPrefixListReference::GetPrefixListOwnerId
const Aws::String & GetPrefixListOwnerId() const
Definition: TransitGatewayPrefixListReference.h:129
Aws::EC2::Model::TransitGatewayPrefixListReference::WithTransitGatewayRouteTableId
TransitGatewayPrefixListReference & WithTransitGatewayRouteTableId(Aws::String &&value)
Definition: TransitGatewayPrefixListReference.h:77
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TransitGatewayPrefixListReference::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(const char *value)
Definition: TransitGatewayPrefixListReference.h:67
Aws::EC2::Model::TransitGatewayPrefixListReference::WithTransitGatewayRouteTableId
TransitGatewayPrefixListReference & WithTransitGatewayRouteTableId(const Aws::String &value)
Definition: TransitGatewayPrefixListReference.h:72
Aws::EC2::Model::TransitGatewayPrefixListReference::GetState
const TransitGatewayPrefixListReferenceState & GetState() const
Definition: TransitGatewayPrefixListReference.h:170
Aws::EC2::Model::TransitGatewayPrefixListReference::SetPrefixListOwnerId
void SetPrefixListOwnerId(Aws::String &&value)
Definition: TransitGatewayPrefixListReference.h:144
Aws::EC2::Model::TransitGatewayPrefixListReference::WithPrefixListId
TransitGatewayPrefixListReference & WithPrefixListId(Aws::String &&value)
Definition: TransitGatewayPrefixListReference.h:118
Aws::EC2::Model::TransitGatewayPrefixListReference::WithPrefixListId
TransitGatewayPrefixListReference & WithPrefixListId(const char *value)
Definition: TransitGatewayPrefixListReference.h:123
EC2_EXPORTS.h
Aws::EC2::Model::TransitGatewayPrefixListReference::WithBlackhole
TransitGatewayPrefixListReference & WithBlackhole(bool value)
Definition: TransitGatewayPrefixListReference.h:216
Aws::EC2::Model::TransitGatewayPrefixListReference::StateHasBeenSet
bool StateHasBeenSet() const
Definition: TransitGatewayPrefixListReference.h:175
Aws::EC2::Model::TransitGatewayPrefixListReference::TransitGatewayAttachmentHasBeenSet
bool TransitGatewayAttachmentHasBeenSet() const
Definition: TransitGatewayPrefixListReference.h:227
Aws::EC2::Model::TransitGatewayPrefixListReference::operator=
TransitGatewayPrefixListReference & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)