AWS SDK for C++  1.9.74
AWS SDK for C++
DeleteTransitGatewayRouteRequest.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 "DeleteTransitGatewayRoute"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetTransitGatewayRouteTableId() const{ return m_transitGatewayRouteTableId; }
43 
47  inline bool TransitGatewayRouteTableIdHasBeenSet() const { return m_transitGatewayRouteTableIdHasBeenSet; }
48 
52  inline void SetTransitGatewayRouteTableId(const Aws::String& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = value; }
53 
57  inline void SetTransitGatewayRouteTableId(Aws::String&& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = std::move(value); }
58 
62  inline void SetTransitGatewayRouteTableId(const char* value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId.assign(value); }
63 
67  inline DeleteTransitGatewayRouteRequest& WithTransitGatewayRouteTableId(const Aws::String& value) { SetTransitGatewayRouteTableId(value); return *this;}
68 
72  inline DeleteTransitGatewayRouteRequest& WithTransitGatewayRouteTableId(Aws::String&& value) { SetTransitGatewayRouteTableId(std::move(value)); return *this;}
73 
77  inline DeleteTransitGatewayRouteRequest& WithTransitGatewayRouteTableId(const char* value) { SetTransitGatewayRouteTableId(value); return *this;}
78 
79 
84  inline const Aws::String& GetDestinationCidrBlock() const{ return m_destinationCidrBlock; }
85 
90  inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
91 
96  inline void SetDestinationCidrBlock(const Aws::String& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = value; }
97 
102  inline void SetDestinationCidrBlock(Aws::String&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::move(value); }
103 
108  inline void SetDestinationCidrBlock(const char* value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock.assign(value); }
109 
114  inline DeleteTransitGatewayRouteRequest& WithDestinationCidrBlock(const Aws::String& value) { SetDestinationCidrBlock(value); return *this;}
115 
120  inline DeleteTransitGatewayRouteRequest& WithDestinationCidrBlock(Aws::String&& value) { SetDestinationCidrBlock(std::move(value)); return *this;}
121 
126  inline DeleteTransitGatewayRouteRequest& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;}
127 
128 
135  inline bool GetDryRun() const{ return m_dryRun; }
136 
143  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
144 
151  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
152 
159  inline DeleteTransitGatewayRouteRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
160 
161  private:
162 
163  Aws::String m_transitGatewayRouteTableId;
164  bool m_transitGatewayRouteTableIdHasBeenSet;
165 
166  Aws::String m_destinationCidrBlock;
167  bool m_destinationCidrBlockHasBeenSet;
168 
169  bool m_dryRun;
170  bool m_dryRunHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace EC2
175 } // namespace Aws
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(Aws::String &&value)
Definition: DeleteTransitGatewayRouteRequest.h:57
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::GetDryRun
bool GetDryRun() const
Definition: DeleteTransitGatewayRouteRequest.h:135
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteTransitGatewayRouteRequest.h:30
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::WithTransitGatewayRouteTableId
DeleteTransitGatewayRouteRequest & WithTransitGatewayRouteTableId(const Aws::String &value)
Definition: DeleteTransitGatewayRouteRequest.h:67
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::GetTransitGatewayRouteTableId
const Aws::String & GetTransitGatewayRouteTableId() const
Definition: DeleteTransitGatewayRouteRequest.h:42
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::SetDryRun
void SetDryRun(bool value)
Definition: DeleteTransitGatewayRouteRequest.h:151
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::DeleteTransitGatewayRouteRequest
DeleteTransitGatewayRouteRequest()
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(Aws::String &&value)
Definition: DeleteTransitGatewayRouteRequest.h:102
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(const Aws::String &value)
Definition: DeleteTransitGatewayRouteRequest.h:96
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::TransitGatewayRouteTableIdHasBeenSet
bool TransitGatewayRouteTableIdHasBeenSet() const
Definition: DeleteTransitGatewayRouteRequest.h:47
EC2Request.h
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::DestinationCidrBlockHasBeenSet
bool DestinationCidrBlockHasBeenSet() const
Definition: DeleteTransitGatewayRouteRequest.h:90
AWSString.h
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DeleteTransitGatewayRouteRequest.h:143
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(const char *value)
Definition: DeleteTransitGatewayRouteRequest.h:62
Aws::EC2::Model::DeleteTransitGatewayRouteRequest
Definition: DeleteTransitGatewayRouteRequest.h:22
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::WithDestinationCidrBlock
DeleteTransitGatewayRouteRequest & WithDestinationCidrBlock(const Aws::String &value)
Definition: DeleteTransitGatewayRouteRequest.h:114
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::WithDestinationCidrBlock
DeleteTransitGatewayRouteRequest & WithDestinationCidrBlock(Aws::String &&value)
Definition: DeleteTransitGatewayRouteRequest.h:120
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(const Aws::String &value)
Definition: DeleteTransitGatewayRouteRequest.h:52
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::WithTransitGatewayRouteTableId
DeleteTransitGatewayRouteRequest & WithTransitGatewayRouteTableId(Aws::String &&value)
Definition: DeleteTransitGatewayRouteRequest.h:72
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::GetDestinationCidrBlock
const Aws::String & GetDestinationCidrBlock() const
Definition: DeleteTransitGatewayRouteRequest.h:84
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::WithDryRun
DeleteTransitGatewayRouteRequest & WithDryRun(bool value)
Definition: DeleteTransitGatewayRouteRequest.h:159
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::WithDestinationCidrBlock
DeleteTransitGatewayRouteRequest & WithDestinationCidrBlock(const char *value)
Definition: DeleteTransitGatewayRouteRequest.h:126
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::DeleteTransitGatewayRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(const char *value)
Definition: DeleteTransitGatewayRouteRequest.h:108
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::WithTransitGatewayRouteTableId
DeleteTransitGatewayRouteRequest & WithTransitGatewayRouteTableId(const char *value)
Definition: DeleteTransitGatewayRouteRequest.h:77
EC2_EXPORTS.h
Aws::EC2::Model::DeleteTransitGatewayRouteRequest::SerializePayload
Aws::String SerializePayload() const override