AWS SDK for C++  1.9.74
AWS SDK for C++
CreateTransitGatewayRouteRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "CreateTransitGatewayRoute"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
43  inline const Aws::String& GetDestinationCidrBlock() const{ return m_destinationCidrBlock; }
44 
49  inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
50 
55  inline void SetDestinationCidrBlock(const Aws::String& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = value; }
56 
61  inline void SetDestinationCidrBlock(Aws::String&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::move(value); }
62 
67  inline void SetDestinationCidrBlock(const char* value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock.assign(value); }
68 
73  inline CreateTransitGatewayRouteRequest& WithDestinationCidrBlock(const Aws::String& value) { SetDestinationCidrBlock(value); return *this;}
74 
79  inline CreateTransitGatewayRouteRequest& WithDestinationCidrBlock(Aws::String&& value) { SetDestinationCidrBlock(std::move(value)); return *this;}
80 
85  inline CreateTransitGatewayRouteRequest& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;}
86 
87 
91  inline const Aws::String& GetTransitGatewayRouteTableId() const{ return m_transitGatewayRouteTableId; }
92 
96  inline bool TransitGatewayRouteTableIdHasBeenSet() const { return m_transitGatewayRouteTableIdHasBeenSet; }
97 
101  inline void SetTransitGatewayRouteTableId(const Aws::String& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = value; }
102 
106  inline void SetTransitGatewayRouteTableId(Aws::String&& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = std::move(value); }
107 
111  inline void SetTransitGatewayRouteTableId(const char* value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId.assign(value); }
112 
116  inline CreateTransitGatewayRouteRequest& WithTransitGatewayRouteTableId(const Aws::String& value) { SetTransitGatewayRouteTableId(value); return *this;}
117 
121  inline CreateTransitGatewayRouteRequest& WithTransitGatewayRouteTableId(Aws::String&& value) { SetTransitGatewayRouteTableId(std::move(value)); return *this;}
122 
126  inline CreateTransitGatewayRouteRequest& WithTransitGatewayRouteTableId(const char* value) { SetTransitGatewayRouteTableId(value); return *this;}
127 
128 
132  inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
133 
137  inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
138 
142  inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
143 
147  inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
148 
152  inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
153 
157  inline CreateTransitGatewayRouteRequest& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;}
158 
162  inline CreateTransitGatewayRouteRequest& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;}
163 
167  inline CreateTransitGatewayRouteRequest& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;}
168 
169 
173  inline bool GetBlackhole() const{ return m_blackhole; }
174 
178  inline bool BlackholeHasBeenSet() const { return m_blackholeHasBeenSet; }
179 
183  inline void SetBlackhole(bool value) { m_blackholeHasBeenSet = true; m_blackhole = value; }
184 
188  inline CreateTransitGatewayRouteRequest& WithBlackhole(bool value) { SetBlackhole(value); return *this;}
189 
190 
197  inline bool GetDryRun() const{ return m_dryRun; }
198 
205  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
206 
213  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
214 
221  inline CreateTransitGatewayRouteRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
222 
223  private:
224 
225  Aws::String m_destinationCidrBlock;
226  bool m_destinationCidrBlockHasBeenSet;
227 
228  Aws::String m_transitGatewayRouteTableId;
229  bool m_transitGatewayRouteTableIdHasBeenSet;
230 
231  Aws::String m_transitGatewayAttachmentId;
232  bool m_transitGatewayAttachmentIdHasBeenSet;
233 
234  bool m_blackhole;
235  bool m_blackholeHasBeenSet;
236 
237  bool m_dryRun;
238  bool m_dryRunHasBeenSet;
239  };
240 
241 } // namespace Model
242 } // namespace EC2
243 } // namespace Aws
Aws::EC2::Model::CreateTransitGatewayRouteRequest::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const Aws::String &value)
Definition: CreateTransitGatewayRouteRequest.h:142
Aws::EC2::Model::CreateTransitGatewayRouteRequest::WithTransitGatewayAttachmentId
CreateTransitGatewayRouteRequest & WithTransitGatewayAttachmentId(const char *value)
Definition: CreateTransitGatewayRouteRequest.h:167
Aws::EC2::Model::CreateTransitGatewayRouteRequest::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(const Aws::String &value)
Definition: CreateTransitGatewayRouteRequest.h:101
Aws::EC2::Model::CreateTransitGatewayRouteRequest::TransitGatewayRouteTableIdHasBeenSet
bool TransitGatewayRouteTableIdHasBeenSet() const
Definition: CreateTransitGatewayRouteRequest.h:96
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateTransitGatewayRouteRequest::GetDestinationCidrBlock
const Aws::String & GetDestinationCidrBlock() const
Definition: CreateTransitGatewayRouteRequest.h:43
Aws::EC2::Model::CreateTransitGatewayRouteRequest::WithTransitGatewayAttachmentId
CreateTransitGatewayRouteRequest & WithTransitGatewayAttachmentId(const Aws::String &value)
Definition: CreateTransitGatewayRouteRequest.h:157
Aws::EC2::Model::CreateTransitGatewayRouteRequest::GetBlackhole
bool GetBlackhole() const
Definition: CreateTransitGatewayRouteRequest.h:173
Aws::EC2::Model::CreateTransitGatewayRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(const Aws::String &value)
Definition: CreateTransitGatewayRouteRequest.h:55
Aws::EC2::Model::CreateTransitGatewayRouteRequest::WithBlackhole
CreateTransitGatewayRouteRequest & WithBlackhole(bool value)
Definition: CreateTransitGatewayRouteRequest.h:188
Aws::EC2::Model::CreateTransitGatewayRouteRequest::WithTransitGatewayRouteTableId
CreateTransitGatewayRouteRequest & WithTransitGatewayRouteTableId(const char *value)
Definition: CreateTransitGatewayRouteRequest.h:126
Aws::EC2::Model::CreateTransitGatewayRouteRequest::WithDestinationCidrBlock
CreateTransitGatewayRouteRequest & WithDestinationCidrBlock(const char *value)
Definition: CreateTransitGatewayRouteRequest.h:85
Aws::EC2::Model::CreateTransitGatewayRouteRequest::WithDryRun
CreateTransitGatewayRouteRequest & WithDryRun(bool value)
Definition: CreateTransitGatewayRouteRequest.h:221
Aws::EC2::Model::CreateTransitGatewayRouteRequest::DestinationCidrBlockHasBeenSet
bool DestinationCidrBlockHasBeenSet() const
Definition: CreateTransitGatewayRouteRequest.h:49
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateTransitGatewayRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(Aws::String &&value)
Definition: CreateTransitGatewayRouteRequest.h:61
Aws::EC2::Model::CreateTransitGatewayRouteRequest::WithDestinationCidrBlock
CreateTransitGatewayRouteRequest & WithDestinationCidrBlock(Aws::String &&value)
Definition: CreateTransitGatewayRouteRequest.h:79
Aws::EC2::Model::CreateTransitGatewayRouteRequest::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(Aws::String &&value)
Definition: CreateTransitGatewayRouteRequest.h:147
Aws::EC2::Model::CreateTransitGatewayRouteRequest::WithDestinationCidrBlock
CreateTransitGatewayRouteRequest & WithDestinationCidrBlock(const Aws::String &value)
Definition: CreateTransitGatewayRouteRequest.h:73
Aws::EC2::Model::CreateTransitGatewayRouteRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateTransitGatewayRouteRequest.h:205
Aws::EC2::Model::CreateTransitGatewayRouteRequest::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(const char *value)
Definition: CreateTransitGatewayRouteRequest.h:111
Aws::EC2::Model::CreateTransitGatewayRouteRequest::WithTransitGatewayAttachmentId
CreateTransitGatewayRouteRequest & WithTransitGatewayAttachmentId(Aws::String &&value)
Definition: CreateTransitGatewayRouteRequest.h:162
Aws::EC2::Model::CreateTransitGatewayRouteRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateTransitGatewayRouteRequest.h:213
Aws::EC2::Model::CreateTransitGatewayRouteRequest::TransitGatewayAttachmentIdHasBeenSet
bool TransitGatewayAttachmentIdHasBeenSet() const
Definition: CreateTransitGatewayRouteRequest.h:137
Aws::EC2::Model::CreateTransitGatewayRouteRequest
Definition: CreateTransitGatewayRouteRequest.h:22
Aws::EC2::Model::CreateTransitGatewayRouteRequest::WithTransitGatewayRouteTableId
CreateTransitGatewayRouteRequest & WithTransitGatewayRouteTableId(const Aws::String &value)
Definition: CreateTransitGatewayRouteRequest.h:116
EC2Request.h
Aws::EC2::Model::CreateTransitGatewayRouteRequest::GetDryRun
bool GetDryRun() const
Definition: CreateTransitGatewayRouteRequest.h:197
Aws::EC2::Model::CreateTransitGatewayRouteRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWSString.h
Aws::EC2::Model::CreateTransitGatewayRouteRequest::SetBlackhole
void SetBlackhole(bool value)
Definition: CreateTransitGatewayRouteRequest.h:183
Aws::EC2::Model::CreateTransitGatewayRouteRequest::GetTransitGatewayAttachmentId
const Aws::String & GetTransitGatewayAttachmentId() const
Definition: CreateTransitGatewayRouteRequest.h:132
Aws::EC2::Model::CreateTransitGatewayRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(const char *value)
Definition: CreateTransitGatewayRouteRequest.h:67
Aws::EC2::Model::CreateTransitGatewayRouteRequest::GetTransitGatewayRouteTableId
const Aws::String & GetTransitGatewayRouteTableId() const
Definition: CreateTransitGatewayRouteRequest.h:91
Aws::EC2::Model::CreateTransitGatewayRouteRequest::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(Aws::String &&value)
Definition: CreateTransitGatewayRouteRequest.h:106
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateTransitGatewayRouteRequest::BlackholeHasBeenSet
bool BlackholeHasBeenSet() const
Definition: CreateTransitGatewayRouteRequest.h:178
Aws::EC2::Model::CreateTransitGatewayRouteRequest::CreateTransitGatewayRouteRequest
CreateTransitGatewayRouteRequest()
Aws::EC2::Model::CreateTransitGatewayRouteRequest::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const char *value)
Definition: CreateTransitGatewayRouteRequest.h:152
Aws::EC2::Model::CreateTransitGatewayRouteRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateTransitGatewayRouteRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTransitGatewayRouteRequest.h:30
EC2_EXPORTS.h
Aws::EC2::Model::CreateTransitGatewayRouteRequest::WithTransitGatewayRouteTableId
CreateTransitGatewayRouteRequest & WithTransitGatewayRouteTableId(Aws::String &&value)
Definition: CreateTransitGatewayRouteRequest.h:121