AWS SDK for C++  1.9.129
AWS SDK for C++
DeleteRouteRequest.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 "DeleteRoute"; }
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 DeleteRouteRequest& WithDestinationCidrBlock(const Aws::String& value) { SetDestinationCidrBlock(value); return *this;}
74 
79  inline DeleteRouteRequest& WithDestinationCidrBlock(Aws::String&& value) { SetDestinationCidrBlock(std::move(value)); return *this;}
80 
85  inline DeleteRouteRequest& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;}
86 
87 
92  inline const Aws::String& GetDestinationIpv6CidrBlock() const{ return m_destinationIpv6CidrBlock; }
93 
98  inline bool DestinationIpv6CidrBlockHasBeenSet() const { return m_destinationIpv6CidrBlockHasBeenSet; }
99 
104  inline void SetDestinationIpv6CidrBlock(const Aws::String& value) { m_destinationIpv6CidrBlockHasBeenSet = true; m_destinationIpv6CidrBlock = value; }
105 
110  inline void SetDestinationIpv6CidrBlock(Aws::String&& value) { m_destinationIpv6CidrBlockHasBeenSet = true; m_destinationIpv6CidrBlock = std::move(value); }
111 
116  inline void SetDestinationIpv6CidrBlock(const char* value) { m_destinationIpv6CidrBlockHasBeenSet = true; m_destinationIpv6CidrBlock.assign(value); }
117 
122  inline DeleteRouteRequest& WithDestinationIpv6CidrBlock(const Aws::String& value) { SetDestinationIpv6CidrBlock(value); return *this;}
123 
128  inline DeleteRouteRequest& WithDestinationIpv6CidrBlock(Aws::String&& value) { SetDestinationIpv6CidrBlock(std::move(value)); return *this;}
129 
134  inline DeleteRouteRequest& WithDestinationIpv6CidrBlock(const char* value) { SetDestinationIpv6CidrBlock(value); return *this;}
135 
136 
140  inline const Aws::String& GetDestinationPrefixListId() const{ return m_destinationPrefixListId; }
141 
145  inline bool DestinationPrefixListIdHasBeenSet() const { return m_destinationPrefixListIdHasBeenSet; }
146 
150  inline void SetDestinationPrefixListId(const Aws::String& value) { m_destinationPrefixListIdHasBeenSet = true; m_destinationPrefixListId = value; }
151 
155  inline void SetDestinationPrefixListId(Aws::String&& value) { m_destinationPrefixListIdHasBeenSet = true; m_destinationPrefixListId = std::move(value); }
156 
160  inline void SetDestinationPrefixListId(const char* value) { m_destinationPrefixListIdHasBeenSet = true; m_destinationPrefixListId.assign(value); }
161 
165  inline DeleteRouteRequest& WithDestinationPrefixListId(const Aws::String& value) { SetDestinationPrefixListId(value); return *this;}
166 
170  inline DeleteRouteRequest& WithDestinationPrefixListId(Aws::String&& value) { SetDestinationPrefixListId(std::move(value)); return *this;}
171 
175  inline DeleteRouteRequest& WithDestinationPrefixListId(const char* value) { SetDestinationPrefixListId(value); return *this;}
176 
177 
184  inline bool GetDryRun() const{ return m_dryRun; }
185 
192  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
193 
200  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
201 
208  inline DeleteRouteRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
209 
210 
214  inline const Aws::String& GetRouteTableId() const{ return m_routeTableId; }
215 
219  inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
220 
224  inline void SetRouteTableId(const Aws::String& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = value; }
225 
229  inline void SetRouteTableId(Aws::String&& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = std::move(value); }
230 
234  inline void SetRouteTableId(const char* value) { m_routeTableIdHasBeenSet = true; m_routeTableId.assign(value); }
235 
239  inline DeleteRouteRequest& WithRouteTableId(const Aws::String& value) { SetRouteTableId(value); return *this;}
240 
244  inline DeleteRouteRequest& WithRouteTableId(Aws::String&& value) { SetRouteTableId(std::move(value)); return *this;}
245 
249  inline DeleteRouteRequest& WithRouteTableId(const char* value) { SetRouteTableId(value); return *this;}
250 
251  private:
252 
253  Aws::String m_destinationCidrBlock;
254  bool m_destinationCidrBlockHasBeenSet;
255 
256  Aws::String m_destinationIpv6CidrBlock;
257  bool m_destinationIpv6CidrBlockHasBeenSet;
258 
259  Aws::String m_destinationPrefixListId;
260  bool m_destinationPrefixListIdHasBeenSet;
261 
262  bool m_dryRun;
263  bool m_dryRunHasBeenSet;
264 
265  Aws::String m_routeTableId;
266  bool m_routeTableIdHasBeenSet;
267  };
268 
269 } // namespace Model
270 } // namespace EC2
271 } // namespace Aws
Aws::EC2::Model::DeleteRouteRequest::WithRouteTableId
DeleteRouteRequest & WithRouteTableId(const char *value)
Definition: DeleteRouteRequest.h:249
Aws::EC2::Model::DeleteRouteRequest::SetDestinationPrefixListId
void SetDestinationPrefixListId(const Aws::String &value)
Definition: DeleteRouteRequest.h:150
Aws::EC2::Model::DeleteRouteRequest::WithDestinationCidrBlock
DeleteRouteRequest & WithDestinationCidrBlock(const Aws::String &value)
Definition: DeleteRouteRequest.h:73
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DeleteRouteRequest::GetRouteTableId
const Aws::String & GetRouteTableId() const
Definition: DeleteRouteRequest.h:214
Aws::EC2::Model::DeleteRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(const char *value)
Definition: DeleteRouteRequest.h:67
Aws::EC2::Model::DeleteRouteRequest::WithDestinationPrefixListId
DeleteRouteRequest & WithDestinationPrefixListId(Aws::String &&value)
Definition: DeleteRouteRequest.h:170
Aws::EC2::Model::DeleteRouteRequest::GetDestinationCidrBlock
const Aws::String & GetDestinationCidrBlock() const
Definition: DeleteRouteRequest.h:43
Aws::EC2::Model::DeleteRouteRequest::GetDestinationPrefixListId
const Aws::String & GetDestinationPrefixListId() const
Definition: DeleteRouteRequest.h:140
Aws::EC2::Model::DeleteRouteRequest::SetDestinationPrefixListId
void SetDestinationPrefixListId(const char *value)
Definition: DeleteRouteRequest.h:160
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DeleteRouteRequest::DestinationIpv6CidrBlockHasBeenSet
bool DestinationIpv6CidrBlockHasBeenSet() const
Definition: DeleteRouteRequest.h:98
Aws::EC2::Model::DeleteRouteRequest::WithDestinationCidrBlock
DeleteRouteRequest & WithDestinationCidrBlock(Aws::String &&value)
Definition: DeleteRouteRequest.h:79
Aws::EC2::Model::DeleteRouteRequest::WithRouteTableId
DeleteRouteRequest & WithRouteTableId(Aws::String &&value)
Definition: DeleteRouteRequest.h:244
Aws::EC2::Model::DeleteRouteRequest::WithDestinationPrefixListId
DeleteRouteRequest & WithDestinationPrefixListId(const Aws::String &value)
Definition: DeleteRouteRequest.h:165
Aws::EC2::Model::DeleteRouteRequest::SetRouteTableId
void SetRouteTableId(const char *value)
Definition: DeleteRouteRequest.h:234
Aws::EC2::Model::DeleteRouteRequest::SetRouteTableId
void SetRouteTableId(const Aws::String &value)
Definition: DeleteRouteRequest.h:224
Aws::EC2::Model::DeleteRouteRequest::SetDestinationIpv6CidrBlock
void SetDestinationIpv6CidrBlock(Aws::String &&value)
Definition: DeleteRouteRequest.h:110
Aws::EC2::Model::DeleteRouteRequest::SetDryRun
void SetDryRun(bool value)
Definition: DeleteRouteRequest.h:200
Aws::EC2::Model::DeleteRouteRequest::WithDestinationPrefixListId
DeleteRouteRequest & WithDestinationPrefixListId(const char *value)
Definition: DeleteRouteRequest.h:175
Aws::EC2::Model::DeleteRouteRequest::SetDestinationPrefixListId
void SetDestinationPrefixListId(Aws::String &&value)
Definition: DeleteRouteRequest.h:155
Aws::EC2::Model::DeleteRouteRequest::WithDestinationCidrBlock
DeleteRouteRequest & WithDestinationCidrBlock(const char *value)
Definition: DeleteRouteRequest.h:85
Aws::EC2::Model::DeleteRouteRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DeleteRouteRequest::GetDestinationIpv6CidrBlock
const Aws::String & GetDestinationIpv6CidrBlock() const
Definition: DeleteRouteRequest.h:92
Aws::EC2::Model::DeleteRouteRequest::WithRouteTableId
DeleteRouteRequest & WithRouteTableId(const Aws::String &value)
Definition: DeleteRouteRequest.h:239
EC2Request.h
Aws::EC2::Model::DeleteRouteRequest::SetDestinationIpv6CidrBlock
void SetDestinationIpv6CidrBlock(const char *value)
Definition: DeleteRouteRequest.h:116
Aws::EC2::Model::DeleteRouteRequest::WithDestinationIpv6CidrBlock
DeleteRouteRequest & WithDestinationIpv6CidrBlock(const char *value)
Definition: DeleteRouteRequest.h:134
AWSString.h
Aws::EC2::Model::DeleteRouteRequest::GetDryRun
bool GetDryRun() const
Definition: DeleteRouteRequest.h:184
Aws::EC2::Model::DeleteRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(const Aws::String &value)
Definition: DeleteRouteRequest.h:55
Aws::EC2::Model::DeleteRouteRequest::DestinationPrefixListIdHasBeenSet
bool DestinationPrefixListIdHasBeenSet() const
Definition: DeleteRouteRequest.h:145
Aws::EC2::Model::DeleteRouteRequest::WithDestinationIpv6CidrBlock
DeleteRouteRequest & WithDestinationIpv6CidrBlock(const Aws::String &value)
Definition: DeleteRouteRequest.h:122
Aws::EC2::Model::DeleteRouteRequest::DestinationCidrBlockHasBeenSet
bool DestinationCidrBlockHasBeenSet() const
Definition: DeleteRouteRequest.h:49
Aws::EC2::Model::DeleteRouteRequest::RouteTableIdHasBeenSet
bool RouteTableIdHasBeenSet() const
Definition: DeleteRouteRequest.h:219
Aws::EC2::Model::DeleteRouteRequest::DeleteRouteRequest
DeleteRouteRequest()
Aws::EC2::Model::DeleteRouteRequest::WithDestinationIpv6CidrBlock
DeleteRouteRequest & WithDestinationIpv6CidrBlock(Aws::String &&value)
Definition: DeleteRouteRequest.h:128
Aws::EC2::Model::DeleteRouteRequest::SetRouteTableId
void SetRouteTableId(Aws::String &&value)
Definition: DeleteRouteRequest.h:229
Aws::EC2::Model::DeleteRouteRequest::SetDestinationIpv6CidrBlock
void SetDestinationIpv6CidrBlock(const Aws::String &value)
Definition: DeleteRouteRequest.h:104
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DeleteRouteRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DeleteRouteRequest.h:192
Aws::EC2::Model::DeleteRouteRequest
Definition: DeleteRouteRequest.h:22
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DeleteRouteRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteRouteRequest.h:30
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DeleteRouteRequest::WithDryRun
DeleteRouteRequest & WithDryRun(bool value)
Definition: DeleteRouteRequest.h:208
Aws::EC2::Model::DeleteRouteRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DeleteRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(Aws::String &&value)
Definition: DeleteRouteRequest.h:61
EC2_EXPORTS.h