AWS SDK for C++  1.9.130
AWS SDK for C++
DeleteLocalGatewayRouteRequest.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 "DeleteLocalGatewayRoute"; }
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 DeleteLocalGatewayRouteRequest& WithDestinationCidrBlock(const Aws::String& value) { SetDestinationCidrBlock(value); return *this;}
74 
79  inline DeleteLocalGatewayRouteRequest& WithDestinationCidrBlock(Aws::String&& value) { SetDestinationCidrBlock(std::move(value)); return *this;}
80 
85  inline DeleteLocalGatewayRouteRequest& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;}
86 
87 
91  inline const Aws::String& GetLocalGatewayRouteTableId() const{ return m_localGatewayRouteTableId; }
92 
96  inline bool LocalGatewayRouteTableIdHasBeenSet() const { return m_localGatewayRouteTableIdHasBeenSet; }
97 
101  inline void SetLocalGatewayRouteTableId(const Aws::String& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = value; }
102 
106  inline void SetLocalGatewayRouteTableId(Aws::String&& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = std::move(value); }
107 
111  inline void SetLocalGatewayRouteTableId(const char* value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId.assign(value); }
112 
116  inline DeleteLocalGatewayRouteRequest& WithLocalGatewayRouteTableId(const Aws::String& value) { SetLocalGatewayRouteTableId(value); return *this;}
117 
121  inline DeleteLocalGatewayRouteRequest& WithLocalGatewayRouteTableId(Aws::String&& value) { SetLocalGatewayRouteTableId(std::move(value)); return *this;}
122 
126  inline DeleteLocalGatewayRouteRequest& WithLocalGatewayRouteTableId(const char* value) { SetLocalGatewayRouteTableId(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 DeleteLocalGatewayRouteRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
160 
161  private:
162 
163  Aws::String m_destinationCidrBlock;
164  bool m_destinationCidrBlockHasBeenSet;
165 
166  Aws::String m_localGatewayRouteTableId;
167  bool m_localGatewayRouteTableIdHasBeenSet;
168 
169  bool m_dryRun;
170  bool m_dryRunHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace EC2
175 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteLocalGatewayRouteRequest.h:30
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(const Aws::String &value)
Definition: DeleteLocalGatewayRouteRequest.h:55
Aws::EC2::Model::DeleteLocalGatewayRouteRequest
Definition: DeleteLocalGatewayRouteRequest.h:22
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::SetDryRun
void SetDryRun(bool value)
Definition: DeleteLocalGatewayRouteRequest.h:151
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::SetLocalGatewayRouteTableId
void SetLocalGatewayRouteTableId(const char *value)
Definition: DeleteLocalGatewayRouteRequest.h:111
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DeleteLocalGatewayRouteRequest.h:143
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::DeleteLocalGatewayRouteRequest
DeleteLocalGatewayRouteRequest()
EC2Request.h
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::GetDestinationCidrBlock
const Aws::String & GetDestinationCidrBlock() const
Definition: DeleteLocalGatewayRouteRequest.h:43
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::WithDestinationCidrBlock
DeleteLocalGatewayRouteRequest & WithDestinationCidrBlock(const char *value)
Definition: DeleteLocalGatewayRouteRequest.h:85
AWSString.h
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::WithLocalGatewayRouteTableId
DeleteLocalGatewayRouteRequest & WithLocalGatewayRouteTableId(Aws::String &&value)
Definition: DeleteLocalGatewayRouteRequest.h:121
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::DestinationCidrBlockHasBeenSet
bool DestinationCidrBlockHasBeenSet() const
Definition: DeleteLocalGatewayRouteRequest.h:49
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::GetLocalGatewayRouteTableId
const Aws::String & GetLocalGatewayRouteTableId() const
Definition: DeleteLocalGatewayRouteRequest.h:91
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::GetDryRun
bool GetDryRun() const
Definition: DeleteLocalGatewayRouteRequest.h:135
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::SetLocalGatewayRouteTableId
void SetLocalGatewayRouteTableId(const Aws::String &value)
Definition: DeleteLocalGatewayRouteRequest.h:101
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(Aws::String &&value)
Definition: DeleteLocalGatewayRouteRequest.h:61
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::WithLocalGatewayRouteTableId
DeleteLocalGatewayRouteRequest & WithLocalGatewayRouteTableId(const Aws::String &value)
Definition: DeleteLocalGatewayRouteRequest.h:116
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::LocalGatewayRouteTableIdHasBeenSet
bool LocalGatewayRouteTableIdHasBeenSet() const
Definition: DeleteLocalGatewayRouteRequest.h:96
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::WithDestinationCidrBlock
DeleteLocalGatewayRouteRequest & WithDestinationCidrBlock(Aws::String &&value)
Definition: DeleteLocalGatewayRouteRequest.h:79
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::SetLocalGatewayRouteTableId
void SetLocalGatewayRouteTableId(Aws::String &&value)
Definition: DeleteLocalGatewayRouteRequest.h:106
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(const char *value)
Definition: DeleteLocalGatewayRouteRequest.h:67
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::WithDryRun
DeleteLocalGatewayRouteRequest & WithDryRun(bool value)
Definition: DeleteLocalGatewayRouteRequest.h:159
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::DeleteLocalGatewayRouteRequest::SerializePayload
Aws::String SerializePayload() const override
EC2_EXPORTS.h
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::WithLocalGatewayRouteTableId
DeleteLocalGatewayRouteRequest & WithLocalGatewayRouteTableId(const char *value)
Definition: DeleteLocalGatewayRouteRequest.h:126
Aws::EC2::Model::DeleteLocalGatewayRouteRequest::WithDestinationCidrBlock
DeleteLocalGatewayRouteRequest & WithDestinationCidrBlock(const Aws::String &value)
Definition: DeleteLocalGatewayRouteRequest.h:73