AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeleteRouteRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EC2 {
15namespace Model {
16
20 public:
21 AWS_EC2_API DeleteRouteRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DeleteRoute"; }
28
29 AWS_EC2_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
39 inline const Aws::String& GetDestinationPrefixListId() const { return m_destinationPrefixListId; }
40 inline bool DestinationPrefixListIdHasBeenSet() const { return m_destinationPrefixListIdHasBeenSet; }
41 template <typename DestinationPrefixListIdT = Aws::String>
42 void SetDestinationPrefixListId(DestinationPrefixListIdT&& value) {
43 m_destinationPrefixListIdHasBeenSet = true;
44 m_destinationPrefixListId = std::forward<DestinationPrefixListIdT>(value);
45 }
46 template <typename DestinationPrefixListIdT = Aws::String>
47 DeleteRouteRequest& WithDestinationPrefixListId(DestinationPrefixListIdT&& value) {
48 SetDestinationPrefixListId(std::forward<DestinationPrefixListIdT>(value));
49 return *this;
50 }
52
54
60 inline bool GetDryRun() const { return m_dryRun; }
61 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
62 inline void SetDryRun(bool value) {
63 m_dryRunHasBeenSet = true;
64 m_dryRun = value;
65 }
66 inline DeleteRouteRequest& WithDryRun(bool value) {
67 SetDryRun(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetRouteTableId() const { return m_routeTableId; }
77 inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
78 template <typename RouteTableIdT = Aws::String>
79 void SetRouteTableId(RouteTableIdT&& value) {
80 m_routeTableIdHasBeenSet = true;
81 m_routeTableId = std::forward<RouteTableIdT>(value);
82 }
83 template <typename RouteTableIdT = Aws::String>
84 DeleteRouteRequest& WithRouteTableId(RouteTableIdT&& value) {
85 SetRouteTableId(std::forward<RouteTableIdT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetDestinationCidrBlock() const { return m_destinationCidrBlock; }
96 inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
97 template <typename DestinationCidrBlockT = Aws::String>
98 void SetDestinationCidrBlock(DestinationCidrBlockT&& value) {
99 m_destinationCidrBlockHasBeenSet = true;
100 m_destinationCidrBlock = std::forward<DestinationCidrBlockT>(value);
101 }
102 template <typename DestinationCidrBlockT = Aws::String>
103 DeleteRouteRequest& WithDestinationCidrBlock(DestinationCidrBlockT&& value) {
104 SetDestinationCidrBlock(std::forward<DestinationCidrBlockT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetDestinationIpv6CidrBlock() const { return m_destinationIpv6CidrBlock; }
115 inline bool DestinationIpv6CidrBlockHasBeenSet() const { return m_destinationIpv6CidrBlockHasBeenSet; }
116 template <typename DestinationIpv6CidrBlockT = Aws::String>
117 void SetDestinationIpv6CidrBlock(DestinationIpv6CidrBlockT&& value) {
118 m_destinationIpv6CidrBlockHasBeenSet = true;
119 m_destinationIpv6CidrBlock = std::forward<DestinationIpv6CidrBlockT>(value);
120 }
121 template <typename DestinationIpv6CidrBlockT = Aws::String>
122 DeleteRouteRequest& WithDestinationIpv6CidrBlock(DestinationIpv6CidrBlockT&& value) {
123 SetDestinationIpv6CidrBlock(std::forward<DestinationIpv6CidrBlockT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_destinationPrefixListId;
129
130 bool m_dryRun{false};
131
132 Aws::String m_routeTableId;
133
134 Aws::String m_destinationCidrBlock;
135
136 Aws::String m_destinationIpv6CidrBlock;
137 bool m_destinationPrefixListIdHasBeenSet = false;
138 bool m_dryRunHasBeenSet = false;
139 bool m_routeTableIdHasBeenSet = false;
140 bool m_destinationCidrBlockHasBeenSet = false;
141 bool m_destinationIpv6CidrBlockHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace EC2
146} // namespace Aws
const Aws::String & GetRouteTableId() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DeleteRouteRequest & WithDestinationIpv6CidrBlock(DestinationIpv6CidrBlockT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DeleteRouteRequest & WithDestinationPrefixListId(DestinationPrefixListIdT &&value)
virtual const char * GetServiceRequestName() const override
DeleteRouteRequest & WithRouteTableId(RouteTableIdT &&value)
void SetDestinationCidrBlock(DestinationCidrBlockT &&value)
AWS_EC2_API DeleteRouteRequest()=default
const Aws::String & GetDestinationPrefixListId() const
const Aws::String & GetDestinationIpv6CidrBlock() const
void SetRouteTableId(RouteTableIdT &&value)
void SetDestinationIpv6CidrBlock(DestinationIpv6CidrBlockT &&value)
const Aws::String & GetDestinationCidrBlock() const
void SetDestinationPrefixListId(DestinationPrefixListIdT &&value)
DeleteRouteRequest & WithDestinationCidrBlock(DestinationCidrBlockT &&value)
DeleteRouteRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String