AWS SDK for C++  1.9.15
AWS SDK for C++
AssociateClientVpnTargetNetworkRequest.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 #include <aws/core/utils/UUID.h>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "AssociateClientVpnTargetNetwork"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::String& GetClientVpnEndpointId() const{ return m_clientVpnEndpointId; }
44 
48  inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
49 
53  inline void SetClientVpnEndpointId(const Aws::String& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = value; }
54 
58  inline void SetClientVpnEndpointId(Aws::String&& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = std::move(value); }
59 
63  inline void SetClientVpnEndpointId(const char* value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId.assign(value); }
64 
68  inline AssociateClientVpnTargetNetworkRequest& WithClientVpnEndpointId(const Aws::String& value) { SetClientVpnEndpointId(value); return *this;}
69 
73  inline AssociateClientVpnTargetNetworkRequest& WithClientVpnEndpointId(Aws::String&& value) { SetClientVpnEndpointId(std::move(value)); return *this;}
74 
78  inline AssociateClientVpnTargetNetworkRequest& WithClientVpnEndpointId(const char* value) { SetClientVpnEndpointId(value); return *this;}
79 
80 
84  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
85 
89  inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
90 
94  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
95 
99  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
100 
104  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
105 
109  inline AssociateClientVpnTargetNetworkRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
110 
114  inline AssociateClientVpnTargetNetworkRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
115 
119  inline AssociateClientVpnTargetNetworkRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
120 
121 
128  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
129 
136  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
137 
144  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
145 
152  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
153 
160  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
161 
168  inline AssociateClientVpnTargetNetworkRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
169 
176  inline AssociateClientVpnTargetNetworkRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
177 
184  inline AssociateClientVpnTargetNetworkRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
185 
186 
193  inline bool GetDryRun() const{ return m_dryRun; }
194 
201  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
202 
209  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
210 
217  inline AssociateClientVpnTargetNetworkRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
218 
219  private:
220 
221  Aws::String m_clientVpnEndpointId;
222  bool m_clientVpnEndpointIdHasBeenSet;
223 
224  Aws::String m_subnetId;
225  bool m_subnetIdHasBeenSet;
226 
227  Aws::String m_clientToken;
228  bool m_clientTokenHasBeenSet;
229 
230  bool m_dryRun;
231  bool m_dryRunHasBeenSet;
232  };
233 
234 } // namespace Model
235 } // namespace EC2
236 } // namespace Aws
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: AssociateClientVpnTargetNetworkRequest.h:128
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::WithClientToken
AssociateClientVpnTargetNetworkRequest & WithClientToken(const Aws::String &value)
Definition: AssociateClientVpnTargetNetworkRequest.h:168
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::SetClientVpnEndpointId
void SetClientVpnEndpointId(const char *value)
Definition: AssociateClientVpnTargetNetworkRequest.h:63
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::WithClientToken
AssociateClientVpnTargetNetworkRequest & WithClientToken(const char *value)
Definition: AssociateClientVpnTargetNetworkRequest.h:184
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::GetDryRun
bool GetDryRun() const
Definition: AssociateClientVpnTargetNetworkRequest.h:193
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::SetClientToken
void SetClientToken(const char *value)
Definition: AssociateClientVpnTargetNetworkRequest.h:160
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::WithClientToken
AssociateClientVpnTargetNetworkRequest & WithClientToken(Aws::String &&value)
Definition: AssociateClientVpnTargetNetworkRequest.h:176
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::SetClientVpnEndpointId
void SetClientVpnEndpointId(Aws::String &&value)
Definition: AssociateClientVpnTargetNetworkRequest.h:58
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: AssociateClientVpnTargetNetworkRequest.h:152
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest
Definition: AssociateClientVpnTargetNetworkRequest.h:23
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::GetClientVpnEndpointId
const Aws::String & GetClientVpnEndpointId() const
Definition: AssociateClientVpnTargetNetworkRequest.h:43
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::GetSubnetId
const Aws::String & GetSubnetId() const
Definition: AssociateClientVpnTargetNetworkRequest.h:84
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::SetDryRun
void SetDryRun(bool value)
Definition: AssociateClientVpnTargetNetworkRequest.h:209
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::SubnetIdHasBeenSet
bool SubnetIdHasBeenSet() const
Definition: AssociateClientVpnTargetNetworkRequest.h:89
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::SetSubnetId
void SetSubnetId(const char *value)
Definition: AssociateClientVpnTargetNetworkRequest.h:104
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::WithDryRun
AssociateClientVpnTargetNetworkRequest & WithDryRun(bool value)
Definition: AssociateClientVpnTargetNetworkRequest.h:217
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::SetSubnetId
void SetSubnetId(const Aws::String &value)
Definition: AssociateClientVpnTargetNetworkRequest.h:94
EC2Request.h
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::SetSubnetId
void SetSubnetId(Aws::String &&value)
Definition: AssociateClientVpnTargetNetworkRequest.h:99
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::WithClientVpnEndpointId
AssociateClientVpnTargetNetworkRequest & WithClientVpnEndpointId(const char *value)
Definition: AssociateClientVpnTargetNetworkRequest.h:78
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::SetClientVpnEndpointId
void SetClientVpnEndpointId(const Aws::String &value)
Definition: AssociateClientVpnTargetNetworkRequest.h:53
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::WithClientVpnEndpointId
AssociateClientVpnTargetNetworkRequest & WithClientVpnEndpointId(const Aws::String &value)
Definition: AssociateClientVpnTargetNetworkRequest.h:68
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: AssociateClientVpnTargetNetworkRequest.h:201
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::WithSubnetId
AssociateClientVpnTargetNetworkRequest & WithSubnetId(const Aws::String &value)
Definition: AssociateClientVpnTargetNetworkRequest.h:109
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::AssociateClientVpnTargetNetworkRequest
AssociateClientVpnTargetNetworkRequest()
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::WithClientVpnEndpointId
AssociateClientVpnTargetNetworkRequest & WithClientVpnEndpointId(Aws::String &&value)
Definition: AssociateClientVpnTargetNetworkRequest.h:73
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::WithSubnetId
AssociateClientVpnTargetNetworkRequest & WithSubnetId(const char *value)
Definition: AssociateClientVpnTargetNetworkRequest.h:119
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::AssociateClientVpnTargetNetworkRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: AssociateClientVpnTargetNetworkRequest.h:136
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::ClientVpnEndpointIdHasBeenSet
bool ClientVpnEndpointIdHasBeenSet() const
Definition: AssociateClientVpnTargetNetworkRequest.h:48
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateClientVpnTargetNetworkRequest.h:31
UUID.h
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: AssociateClientVpnTargetNetworkRequest.h:144
EC2_EXPORTS.h
Aws::EC2::Model::AssociateClientVpnTargetNetworkRequest::WithSubnetId
AssociateClientVpnTargetNetworkRequest & WithSubnetId(Aws::String &&value)
Definition: AssociateClientVpnTargetNetworkRequest.h:114