AWS SDK for C++  1.9.71
AWS SDK for C++
CreateVpnConnectionRouteRequest.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 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateVpnConnectionRoute"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
46  inline const Aws::String& GetDestinationCidrBlock() const{ return m_destinationCidrBlock; }
47 
51  inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
52 
56  inline void SetDestinationCidrBlock(const Aws::String& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = value; }
57 
61  inline void SetDestinationCidrBlock(Aws::String&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::move(value); }
62 
66  inline void SetDestinationCidrBlock(const char* value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock.assign(value); }
67 
71  inline CreateVpnConnectionRouteRequest& WithDestinationCidrBlock(const Aws::String& value) { SetDestinationCidrBlock(value); return *this;}
72 
76  inline CreateVpnConnectionRouteRequest& WithDestinationCidrBlock(Aws::String&& value) { SetDestinationCidrBlock(std::move(value)); return *this;}
77 
81  inline CreateVpnConnectionRouteRequest& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;}
82 
83 
87  inline const Aws::String& GetVpnConnectionId() const{ return m_vpnConnectionId; }
88 
92  inline bool VpnConnectionIdHasBeenSet() const { return m_vpnConnectionIdHasBeenSet; }
93 
97  inline void SetVpnConnectionId(const Aws::String& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = value; }
98 
102  inline void SetVpnConnectionId(Aws::String&& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = std::move(value); }
103 
107  inline void SetVpnConnectionId(const char* value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId.assign(value); }
108 
112  inline CreateVpnConnectionRouteRequest& WithVpnConnectionId(const Aws::String& value) { SetVpnConnectionId(value); return *this;}
113 
117  inline CreateVpnConnectionRouteRequest& WithVpnConnectionId(Aws::String&& value) { SetVpnConnectionId(std::move(value)); return *this;}
118 
122  inline CreateVpnConnectionRouteRequest& WithVpnConnectionId(const char* value) { SetVpnConnectionId(value); return *this;}
123 
124  private:
125 
126  Aws::String m_destinationCidrBlock;
127  bool m_destinationCidrBlockHasBeenSet;
128 
129  Aws::String m_vpnConnectionId;
130  bool m_vpnConnectionIdHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace EC2
135 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateVpnConnectionRouteRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateVpnConnectionRouteRequest.h:34
Aws::EC2::Model::CreateVpnConnectionRouteRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateVpnConnectionRouteRequest::WithDestinationCidrBlock
CreateVpnConnectionRouteRequest & WithDestinationCidrBlock(const char *value)
Definition: CreateVpnConnectionRouteRequest.h:81
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateVpnConnectionRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(const Aws::String &value)
Definition: CreateVpnConnectionRouteRequest.h:56
Aws::EC2::Model::CreateVpnConnectionRouteRequest::GetDestinationCidrBlock
const Aws::String & GetDestinationCidrBlock() const
Definition: CreateVpnConnectionRouteRequest.h:46
Aws::EC2::Model::CreateVpnConnectionRouteRequest::WithDestinationCidrBlock
CreateVpnConnectionRouteRequest & WithDestinationCidrBlock(const Aws::String &value)
Definition: CreateVpnConnectionRouteRequest.h:71
Aws::EC2::Model::CreateVpnConnectionRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(Aws::String &&value)
Definition: CreateVpnConnectionRouteRequest.h:61
Aws::EC2::Model::CreateVpnConnectionRouteRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
EC2Request.h
Aws::EC2::Model::CreateVpnConnectionRouteRequest::WithVpnConnectionId
CreateVpnConnectionRouteRequest & WithVpnConnectionId(const Aws::String &value)
Definition: CreateVpnConnectionRouteRequest.h:112
AWSString.h
Aws::EC2::Model::CreateVpnConnectionRouteRequest::VpnConnectionIdHasBeenSet
bool VpnConnectionIdHasBeenSet() const
Definition: CreateVpnConnectionRouteRequest.h:92
Aws::EC2::Model::CreateVpnConnectionRouteRequest::SetVpnConnectionId
void SetVpnConnectionId(const char *value)
Definition: CreateVpnConnectionRouteRequest.h:107
Aws::EC2::Model::CreateVpnConnectionRouteRequest
Definition: CreateVpnConnectionRouteRequest.h:26
Aws::EC2::Model::CreateVpnConnectionRouteRequest::WithVpnConnectionId
CreateVpnConnectionRouteRequest & WithVpnConnectionId(const char *value)
Definition: CreateVpnConnectionRouteRequest.h:122
Aws::EC2::Model::CreateVpnConnectionRouteRequest::SetVpnConnectionId
void SetVpnConnectionId(Aws::String &&value)
Definition: CreateVpnConnectionRouteRequest.h:102
Aws::EC2::Model::CreateVpnConnectionRouteRequest::WithVpnConnectionId
CreateVpnConnectionRouteRequest & WithVpnConnectionId(Aws::String &&value)
Definition: CreateVpnConnectionRouteRequest.h:117
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateVpnConnectionRouteRequest::CreateVpnConnectionRouteRequest
CreateVpnConnectionRouteRequest()
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::CreateVpnConnectionRouteRequest::DestinationCidrBlockHasBeenSet
bool DestinationCidrBlockHasBeenSet() const
Definition: CreateVpnConnectionRouteRequest.h:51
Aws::EC2::Model::CreateVpnConnectionRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(const char *value)
Definition: CreateVpnConnectionRouteRequest.h:66
Aws::EC2::Model::CreateVpnConnectionRouteRequest::GetVpnConnectionId
const Aws::String & GetVpnConnectionId() const
Definition: CreateVpnConnectionRouteRequest.h:87
Aws::EC2::Model::CreateVpnConnectionRouteRequest::SetVpnConnectionId
void SetVpnConnectionId(const Aws::String &value)
Definition: CreateVpnConnectionRouteRequest.h:97
EC2_EXPORTS.h
Aws::EC2::Model::CreateVpnConnectionRouteRequest::WithDestinationCidrBlock
CreateVpnConnectionRouteRequest & WithDestinationCidrBlock(Aws::String &&value)
Definition: CreateVpnConnectionRouteRequest.h:76