AWS SDK for C++  1.9.71
AWS SDK for C++
TransitGatewayRoute.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlNode;
23 } // namespace Xml
24 } // namespace Utils
25 namespace EC2
26 {
27 namespace Model
28 {
29 
37  {
38  public:
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
50  inline const Aws::String& GetDestinationCidrBlock() const{ return m_destinationCidrBlock; }
51 
55  inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
56 
60  inline void SetDestinationCidrBlock(const Aws::String& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = value; }
61 
65  inline void SetDestinationCidrBlock(Aws::String&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::move(value); }
66 
70  inline void SetDestinationCidrBlock(const char* value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock.assign(value); }
71 
75  inline TransitGatewayRoute& WithDestinationCidrBlock(const Aws::String& value) { SetDestinationCidrBlock(value); return *this;}
76 
80  inline TransitGatewayRoute& WithDestinationCidrBlock(Aws::String&& value) { SetDestinationCidrBlock(std::move(value)); return *this;}
81 
85  inline TransitGatewayRoute& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;}
86 
87 
91  inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; }
92 
96  inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
97 
101  inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; }
102 
106  inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); }
107 
111  inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); }
112 
116  inline TransitGatewayRoute& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
117 
121  inline TransitGatewayRoute& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
122 
126  inline TransitGatewayRoute& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
127 
128 
132  inline const Aws::Vector<TransitGatewayRouteAttachment>& GetTransitGatewayAttachments() const{ return m_transitGatewayAttachments; }
133 
137  inline bool TransitGatewayAttachmentsHasBeenSet() const { return m_transitGatewayAttachmentsHasBeenSet; }
138 
142  inline void SetTransitGatewayAttachments(const Aws::Vector<TransitGatewayRouteAttachment>& value) { m_transitGatewayAttachmentsHasBeenSet = true; m_transitGatewayAttachments = value; }
143 
147  inline void SetTransitGatewayAttachments(Aws::Vector<TransitGatewayRouteAttachment>&& value) { m_transitGatewayAttachmentsHasBeenSet = true; m_transitGatewayAttachments = std::move(value); }
148 
152  inline TransitGatewayRoute& WithTransitGatewayAttachments(const Aws::Vector<TransitGatewayRouteAttachment>& value) { SetTransitGatewayAttachments(value); return *this;}
153 
157  inline TransitGatewayRoute& WithTransitGatewayAttachments(Aws::Vector<TransitGatewayRouteAttachment>&& value) { SetTransitGatewayAttachments(std::move(value)); return *this;}
158 
162  inline TransitGatewayRoute& AddTransitGatewayAttachments(const TransitGatewayRouteAttachment& value) { m_transitGatewayAttachmentsHasBeenSet = true; m_transitGatewayAttachments.push_back(value); return *this; }
163 
167  inline TransitGatewayRoute& AddTransitGatewayAttachments(TransitGatewayRouteAttachment&& value) { m_transitGatewayAttachmentsHasBeenSet = true; m_transitGatewayAttachments.push_back(std::move(value)); return *this; }
168 
169 
173  inline const TransitGatewayRouteType& GetType() const{ return m_type; }
174 
178  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
179 
183  inline void SetType(const TransitGatewayRouteType& value) { m_typeHasBeenSet = true; m_type = value; }
184 
188  inline void SetType(TransitGatewayRouteType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
189 
193  inline TransitGatewayRoute& WithType(const TransitGatewayRouteType& value) { SetType(value); return *this;}
194 
198  inline TransitGatewayRoute& WithType(TransitGatewayRouteType&& value) { SetType(std::move(value)); return *this;}
199 
200 
204  inline const TransitGatewayRouteState& GetState() const{ return m_state; }
205 
209  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
210 
214  inline void SetState(const TransitGatewayRouteState& value) { m_stateHasBeenSet = true; m_state = value; }
215 
219  inline void SetState(TransitGatewayRouteState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
220 
224  inline TransitGatewayRoute& WithState(const TransitGatewayRouteState& value) { SetState(value); return *this;}
225 
229  inline TransitGatewayRoute& WithState(TransitGatewayRouteState&& value) { SetState(std::move(value)); return *this;}
230 
231  private:
232 
233  Aws::String m_destinationCidrBlock;
234  bool m_destinationCidrBlockHasBeenSet;
235 
236  Aws::String m_prefixListId;
237  bool m_prefixListIdHasBeenSet;
238 
239  Aws::Vector<TransitGatewayRouteAttachment> m_transitGatewayAttachments;
240  bool m_transitGatewayAttachmentsHasBeenSet;
241 
243  bool m_typeHasBeenSet;
244 
245  TransitGatewayRouteState m_state;
246  bool m_stateHasBeenSet;
247  };
248 
249 } // namespace Model
250 } // namespace EC2
251 } // namespace Aws
Aws::EC2::Model::TransitGatewayRoute
Definition: TransitGatewayRoute.h:37
Aws::EC2::Model::TransitGatewayRoute::SetPrefixListId
void SetPrefixListId(const char *value)
Definition: TransitGatewayRoute.h:111
Aws::EC2::Model::TransitGatewayRoute::WithDestinationCidrBlock
TransitGatewayRoute & WithDestinationCidrBlock(const char *value)
Definition: TransitGatewayRoute.h:85
Aws::EC2::Model::TransitGatewayRoute::AddTransitGatewayAttachments
TransitGatewayRoute & AddTransitGatewayAttachments(const TransitGatewayRouteAttachment &value)
Definition: TransitGatewayRoute.h:162
Aws::EC2::Model::TransitGatewayRoute::WithDestinationCidrBlock
TransitGatewayRoute & WithDestinationCidrBlock(Aws::String &&value)
Definition: TransitGatewayRoute.h:80
Aws::EC2::Model::TransitGatewayRoute::operator=
TransitGatewayRoute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayRoute::PrefixListIdHasBeenSet
bool PrefixListIdHasBeenSet() const
Definition: TransitGatewayRoute.h:96
Aws::EC2::Model::TransitGatewayRoute::SetTransitGatewayAttachments
void SetTransitGatewayAttachments(Aws::Vector< TransitGatewayRouteAttachment > &&value)
Definition: TransitGatewayRoute.h:147
Aws::EC2::Model::TransitGatewayRoute::DestinationCidrBlockHasBeenSet
bool DestinationCidrBlockHasBeenSet() const
Definition: TransitGatewayRoute.h:55
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TransitGatewayRoute::SetTransitGatewayAttachments
void SetTransitGatewayAttachments(const Aws::Vector< TransitGatewayRouteAttachment > &value)
Definition: TransitGatewayRoute.h:142
Aws::EC2::Model::TransitGatewayRoute::SetDestinationCidrBlock
void SetDestinationCidrBlock(const Aws::String &value)
Definition: TransitGatewayRoute.h:60
Aws::EC2::Model::TransitGatewayRoute::WithType
TransitGatewayRoute & WithType(const TransitGatewayRouteType &value)
Definition: TransitGatewayRoute.h:193
Aws::EC2::Model::TransitGatewayRoute::SetType
void SetType(TransitGatewayRouteType &&value)
Definition: TransitGatewayRoute.h:188
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::EC2::Model::TransitGatewayRoute::SetPrefixListId
void SetPrefixListId(Aws::String &&value)
Definition: TransitGatewayRoute.h:106
Aws::EC2::Model::TransitGatewayRoute::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: TransitGatewayRoute.h:178
Aws::EC2::Model::TransitGatewayRouteState
TransitGatewayRouteState
Definition: TransitGatewayRouteState.h:17
AWSVector.h
Aws::EC2::Model::TransitGatewayRoute::TransitGatewayRoute
TransitGatewayRoute()
TransitGatewayRouteState.h
Aws::EC2::Model::TransitGatewayRoute::SetDestinationCidrBlock
void SetDestinationCidrBlock(const char *value)
Definition: TransitGatewayRoute.h:70
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TransitGatewayRoute::WithPrefixListId
TransitGatewayRoute & WithPrefixListId(const Aws::String &value)
Definition: TransitGatewayRoute.h:116
Aws::EC2::Model::TransitGatewayRoute::GetState
const TransitGatewayRouteState & GetState() const
Definition: TransitGatewayRoute.h:204
Aws::EC2::Model::TransitGatewayRoute::WithTransitGatewayAttachments
TransitGatewayRoute & WithTransitGatewayAttachments(Aws::Vector< TransitGatewayRouteAttachment > &&value)
Definition: TransitGatewayRoute.h:157
Aws::EC2::Model::TransitGatewayRoute::SetDestinationCidrBlock
void SetDestinationCidrBlock(Aws::String &&value)
Definition: TransitGatewayRoute.h:65
TransitGatewayRouteAttachment.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TransitGatewayRoute::GetPrefixListId
const Aws::String & GetPrefixListId() const
Definition: TransitGatewayRoute.h:91
Aws::EC2::Model::TransitGatewayRouteType
TransitGatewayRouteType
Definition: TransitGatewayRouteType.h:17
AWSString.h
Aws::EC2::Model::TransitGatewayRoute::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::TransitGatewayRoute::TransitGatewayAttachmentsHasBeenSet
bool TransitGatewayAttachmentsHasBeenSet() const
Definition: TransitGatewayRoute.h:137
Aws::EC2::Model::TransitGatewayRoute::SetState
void SetState(TransitGatewayRouteState &&value)
Definition: TransitGatewayRoute.h:219
Aws::EC2::Model::TransitGatewayRoute::TransitGatewayRoute
TransitGatewayRoute(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayRoute::SetState
void SetState(const TransitGatewayRouteState &value)
Definition: TransitGatewayRoute.h:214
Aws::EC2::Model::TransitGatewayRoute::WithTransitGatewayAttachments
TransitGatewayRoute & WithTransitGatewayAttachments(const Aws::Vector< TransitGatewayRouteAttachment > &value)
Definition: TransitGatewayRoute.h:152
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TransitGatewayRoute::WithPrefixListId
TransitGatewayRoute & WithPrefixListId(Aws::String &&value)
Definition: TransitGatewayRoute.h:121
Aws::EC2::Model::TransitGatewayRoute::AddTransitGatewayAttachments
TransitGatewayRoute & AddTransitGatewayAttachments(TransitGatewayRouteAttachment &&value)
Definition: TransitGatewayRoute.h:167
Aws::EC2::Model::TransitGatewayRoute::GetTransitGatewayAttachments
const Aws::Vector< TransitGatewayRouteAttachment > & GetTransitGatewayAttachments() const
Definition: TransitGatewayRoute.h:132
Aws::EC2::Model::TransitGatewayRoute::WithType
TransitGatewayRoute & WithType(TransitGatewayRouteType &&value)
Definition: TransitGatewayRoute.h:198
Aws::EC2::Model::TransitGatewayRoute::WithPrefixListId
TransitGatewayRoute & WithPrefixListId(const char *value)
Definition: TransitGatewayRoute.h:126
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::TransitGatewayRoute::WithState
TransitGatewayRoute & WithState(const TransitGatewayRouteState &value)
Definition: TransitGatewayRoute.h:224
Aws::EC2::Model::TransitGatewayRouteAttachment
Definition: TransitGatewayRouteAttachment.h:33
Aws::EC2::Model::TransitGatewayRoute::GetDestinationCidrBlock
const Aws::String & GetDestinationCidrBlock() const
Definition: TransitGatewayRoute.h:50
Aws::EC2::Model::TransitGatewayRoute::SetPrefixListId
void SetPrefixListId(const Aws::String &value)
Definition: TransitGatewayRoute.h:101
Aws::EC2::Model::TransitGatewayRoute::StateHasBeenSet
bool StateHasBeenSet() const
Definition: TransitGatewayRoute.h:209
Aws::EC2::Model::TransitGatewayRoute::SetType
void SetType(const TransitGatewayRouteType &value)
Definition: TransitGatewayRoute.h:183
Aws::EC2::Model::TransitGatewayRoute::WithDestinationCidrBlock
TransitGatewayRoute & WithDestinationCidrBlock(const Aws::String &value)
Definition: TransitGatewayRoute.h:75
EC2_EXPORTS.h
TransitGatewayRouteType.h
Aws::EC2::Model::TransitGatewayRoute::GetType
const TransitGatewayRouteType & GetType() const
Definition: TransitGatewayRoute.h:173
Aws::EC2::Model::TransitGatewayRoute::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TransitGatewayRoute::WithState
TransitGatewayRoute & WithState(TransitGatewayRouteState &&value)
Definition: TransitGatewayRoute.h:229