AWS SDK for C++  1.9.65
AWS SDK for C++
CreateLocalGatewayRouteRequest.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 "CreateLocalGatewayRoute"; }
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 CreateLocalGatewayRouteRequest& WithDestinationCidrBlock(const Aws::String& value) { SetDestinationCidrBlock(value); return *this;}
74 
79  inline CreateLocalGatewayRouteRequest& WithDestinationCidrBlock(Aws::String&& value) { SetDestinationCidrBlock(std::move(value)); return *this;}
80 
85  inline CreateLocalGatewayRouteRequest& 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 CreateLocalGatewayRouteRequest& WithLocalGatewayRouteTableId(const Aws::String& value) { SetLocalGatewayRouteTableId(value); return *this;}
117 
121  inline CreateLocalGatewayRouteRequest& WithLocalGatewayRouteTableId(Aws::String&& value) { SetLocalGatewayRouteTableId(std::move(value)); return *this;}
122 
126  inline CreateLocalGatewayRouteRequest& 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 CreateLocalGatewayRouteRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
160 
161 
165  inline const Aws::String& GetLocalGatewayVirtualInterfaceGroupId() const{ return m_localGatewayVirtualInterfaceGroupId; }
166 
170  inline bool LocalGatewayVirtualInterfaceGroupIdHasBeenSet() const { return m_localGatewayVirtualInterfaceGroupIdHasBeenSet; }
171 
175  inline void SetLocalGatewayVirtualInterfaceGroupId(const Aws::String& value) { m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true; m_localGatewayVirtualInterfaceGroupId = value; }
176 
180  inline void SetLocalGatewayVirtualInterfaceGroupId(Aws::String&& value) { m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true; m_localGatewayVirtualInterfaceGroupId = std::move(value); }
181 
185  inline void SetLocalGatewayVirtualInterfaceGroupId(const char* value) { m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true; m_localGatewayVirtualInterfaceGroupId.assign(value); }
186 
190  inline CreateLocalGatewayRouteRequest& WithLocalGatewayVirtualInterfaceGroupId(const Aws::String& value) { SetLocalGatewayVirtualInterfaceGroupId(value); return *this;}
191 
195  inline CreateLocalGatewayRouteRequest& WithLocalGatewayVirtualInterfaceGroupId(Aws::String&& value) { SetLocalGatewayVirtualInterfaceGroupId(std::move(value)); return *this;}
196 
200  inline CreateLocalGatewayRouteRequest& WithLocalGatewayVirtualInterfaceGroupId(const char* value) { SetLocalGatewayVirtualInterfaceGroupId(value); return *this;}
201 
202  private:
203 
204  Aws::String m_destinationCidrBlock;
205  bool m_destinationCidrBlockHasBeenSet;
206 
207  Aws::String m_localGatewayRouteTableId;
208  bool m_localGatewayRouteTableIdHasBeenSet;
209 
210  bool m_dryRun;
211  bool m_dryRunHasBeenSet;
212 
213  Aws::String m_localGatewayVirtualInterfaceGroupId;
214  bool m_localGatewayVirtualInterfaceGroupIdHasBeenSet;
215  };
216 
217 } // namespace Model
218 } // namespace EC2
219 } // namespace Aws
Aws::EC2::Model::CreateLocalGatewayRouteRequest::LocalGatewayVirtualInterfaceGroupIdHasBeenSet
bool LocalGatewayVirtualInterfaceGroupIdHasBeenSet() const
Definition: CreateLocalGatewayRouteRequest.h:170
Aws::EC2::Model::CreateLocalGatewayRouteRequest::WithDestinationCidrBlock
CreateLocalGatewayRouteRequest & WithDestinationCidrBlock(const char *value)
Definition: CreateLocalGatewayRouteRequest.h:85
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateLocalGatewayRouteRequest::WithLocalGatewayVirtualInterfaceGroupId
CreateLocalGatewayRouteRequest & WithLocalGatewayVirtualInterfaceGroupId(Aws::String &&value)
Definition: CreateLocalGatewayRouteRequest.h:195
Aws::EC2::Model::CreateLocalGatewayRouteRequest::CreateLocalGatewayRouteRequest
CreateLocalGatewayRouteRequest()
Aws::EC2::Model::CreateLocalGatewayRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(const char *value)
Definition: CreateLocalGatewayRouteRequest.h:67
Aws::EC2::Model::CreateLocalGatewayRouteRequest::SetLocalGatewayRouteTableId
void SetLocalGatewayRouteTableId(const char *value)
Definition: CreateLocalGatewayRouteRequest.h:111
Aws::EC2::Model::CreateLocalGatewayRouteRequest::WithDestinationCidrBlock
CreateLocalGatewayRouteRequest & WithDestinationCidrBlock(Aws::String &&value)
Definition: CreateLocalGatewayRouteRequest.h:79
Aws::EC2::Model::CreateLocalGatewayRouteRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateLocalGatewayRouteRequest::SetLocalGatewayVirtualInterfaceGroupId
void SetLocalGatewayVirtualInterfaceGroupId(Aws::String &&value)
Definition: CreateLocalGatewayRouteRequest.h:180
Aws::EC2::Model::CreateLocalGatewayRouteRequest::GetLocalGatewayRouteTableId
const Aws::String & GetLocalGatewayRouteTableId() const
Definition: CreateLocalGatewayRouteRequest.h:91
Aws::EC2::Model::CreateLocalGatewayRouteRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateLocalGatewayRouteRequest.h:30
Aws::EC2::Model::CreateLocalGatewayRouteRequest
Definition: CreateLocalGatewayRouteRequest.h:22
Aws::EC2::Model::CreateLocalGatewayRouteRequest::WithLocalGatewayRouteTableId
CreateLocalGatewayRouteRequest & WithLocalGatewayRouteTableId(Aws::String &&value)
Definition: CreateLocalGatewayRouteRequest.h:121
Aws::EC2::Model::CreateLocalGatewayRouteRequest::WithDestinationCidrBlock
CreateLocalGatewayRouteRequest & WithDestinationCidrBlock(const Aws::String &value)
Definition: CreateLocalGatewayRouteRequest.h:73
Aws::EC2::Model::CreateLocalGatewayRouteRequest::SetLocalGatewayVirtualInterfaceGroupId
void SetLocalGatewayVirtualInterfaceGroupId(const Aws::String &value)
Definition: CreateLocalGatewayRouteRequest.h:175
Aws::EC2::Model::CreateLocalGatewayRouteRequest::WithLocalGatewayVirtualInterfaceGroupId
CreateLocalGatewayRouteRequest & WithLocalGatewayVirtualInterfaceGroupId(const char *value)
Definition: CreateLocalGatewayRouteRequest.h:200
EC2Request.h
Aws::EC2::Model::CreateLocalGatewayRouteRequest::GetDestinationCidrBlock
const Aws::String & GetDestinationCidrBlock() const
Definition: CreateLocalGatewayRouteRequest.h:43
AWSString.h
Aws::EC2::Model::CreateLocalGatewayRouteRequest::LocalGatewayRouteTableIdHasBeenSet
bool LocalGatewayRouteTableIdHasBeenSet() const
Definition: CreateLocalGatewayRouteRequest.h:96
Aws::EC2::Model::CreateLocalGatewayRouteRequest::WithLocalGatewayVirtualInterfaceGroupId
CreateLocalGatewayRouteRequest & WithLocalGatewayVirtualInterfaceGroupId(const Aws::String &value)
Definition: CreateLocalGatewayRouteRequest.h:190
Aws::EC2::Model::CreateLocalGatewayRouteRequest::DestinationCidrBlockHasBeenSet
bool DestinationCidrBlockHasBeenSet() const
Definition: CreateLocalGatewayRouteRequest.h:49
Aws::EC2::Model::CreateLocalGatewayRouteRequest::SetLocalGatewayRouteTableId
void SetLocalGatewayRouteTableId(Aws::String &&value)
Definition: CreateLocalGatewayRouteRequest.h:106
Aws::EC2::Model::CreateLocalGatewayRouteRequest::WithDryRun
CreateLocalGatewayRouteRequest & WithDryRun(bool value)
Definition: CreateLocalGatewayRouteRequest.h:159
Aws::EC2::Model::CreateLocalGatewayRouteRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateLocalGatewayRouteRequest::WithLocalGatewayRouteTableId
CreateLocalGatewayRouteRequest & WithLocalGatewayRouteTableId(const Aws::String &value)
Definition: CreateLocalGatewayRouteRequest.h:116
Aws::EC2::Model::CreateLocalGatewayRouteRequest::SetLocalGatewayRouteTableId
void SetLocalGatewayRouteTableId(const Aws::String &value)
Definition: CreateLocalGatewayRouteRequest.h:101
Aws::EC2::Model::CreateLocalGatewayRouteRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateLocalGatewayRouteRequest.h:143
Aws::EC2::Model::CreateLocalGatewayRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(Aws::String &&value)
Definition: CreateLocalGatewayRouteRequest.h:61
Aws::EC2::Model::CreateLocalGatewayRouteRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateLocalGatewayRouteRequest.h:151
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateLocalGatewayRouteRequest::SetLocalGatewayVirtualInterfaceGroupId
void SetLocalGatewayVirtualInterfaceGroupId(const char *value)
Definition: CreateLocalGatewayRouteRequest.h:185
Aws::EC2::Model::CreateLocalGatewayRouteRequest::WithLocalGatewayRouteTableId
CreateLocalGatewayRouteRequest & WithLocalGatewayRouteTableId(const char *value)
Definition: CreateLocalGatewayRouteRequest.h:126
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateLocalGatewayRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(const Aws::String &value)
Definition: CreateLocalGatewayRouteRequest.h:55
Aws::EC2::Model::CreateLocalGatewayRouteRequest::GetLocalGatewayVirtualInterfaceGroupId
const Aws::String & GetLocalGatewayVirtualInterfaceGroupId() const
Definition: CreateLocalGatewayRouteRequest.h:165
Aws::EC2::Model::CreateLocalGatewayRouteRequest::GetDryRun
bool GetDryRun() const
Definition: CreateLocalGatewayRouteRequest.h:135
EC2_EXPORTS.h