AWS SDK for C++  1.9.67
AWS SDK for C++
ApplySecurityGroupsToClientVpnTargetNetworkRequest.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>
11 #include <utility>
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 "ApplySecurityGroupsToClientVpnTargetNetwork"; }
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 ApplySecurityGroupsToClientVpnTargetNetworkRequest& WithClientVpnEndpointId(const Aws::String& value) { SetClientVpnEndpointId(value); return *this;}
69 
73  inline ApplySecurityGroupsToClientVpnTargetNetworkRequest& WithClientVpnEndpointId(Aws::String&& value) { SetClientVpnEndpointId(std::move(value)); return *this;}
74 
78  inline ApplySecurityGroupsToClientVpnTargetNetworkRequest& WithClientVpnEndpointId(const char* value) { SetClientVpnEndpointId(value); return *this;}
79 
80 
84  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
85 
89  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
90 
94  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
95 
99  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
100 
104  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
105 
109  inline ApplySecurityGroupsToClientVpnTargetNetworkRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
110 
114  inline ApplySecurityGroupsToClientVpnTargetNetworkRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
115 
119  inline ApplySecurityGroupsToClientVpnTargetNetworkRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
120 
121 
126  inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
127 
132  inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
133 
138  inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
139 
144  inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
145 
150  inline ApplySecurityGroupsToClientVpnTargetNetworkRequest& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
151 
156  inline ApplySecurityGroupsToClientVpnTargetNetworkRequest& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
157 
162  inline ApplySecurityGroupsToClientVpnTargetNetworkRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
163 
168  inline ApplySecurityGroupsToClientVpnTargetNetworkRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
169 
174  inline ApplySecurityGroupsToClientVpnTargetNetworkRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
175 
176 
183  inline bool GetDryRun() const{ return m_dryRun; }
184 
191  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
192 
199  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
200 
207  inline ApplySecurityGroupsToClientVpnTargetNetworkRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
208 
209  private:
210 
211  Aws::String m_clientVpnEndpointId;
212  bool m_clientVpnEndpointIdHasBeenSet;
213 
214  Aws::String m_vpcId;
215  bool m_vpcIdHasBeenSet;
216 
217  Aws::Vector<Aws::String> m_securityGroupIds;
218  bool m_securityGroupIdsHasBeenSet;
219 
220  bool m_dryRun;
221  bool m_dryRunHasBeenSet;
222  };
223 
224 } // namespace Model
225 } // namespace EC2
226 } // namespace Aws
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::SetClientVpnEndpointId
void SetClientVpnEndpointId(const char *value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:63
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::WithClientVpnEndpointId
ApplySecurityGroupsToClientVpnTargetNetworkRequest & WithClientVpnEndpointId(const char *value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:78
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::WithClientVpnEndpointId
ApplySecurityGroupsToClientVpnTargetNetworkRequest & WithClientVpnEndpointId(Aws::String &&value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:73
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:31
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::SetSecurityGroupIds
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:144
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::AddSecurityGroupIds
ApplySecurityGroupsToClientVpnTargetNetworkRequest & AddSecurityGroupIds(Aws::String &&value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:168
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::SetClientVpnEndpointId
void SetClientVpnEndpointId(Aws::String &&value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:58
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::WithSecurityGroupIds
ApplySecurityGroupsToClientVpnTargetNetworkRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:156
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::WithClientVpnEndpointId
ApplySecurityGroupsToClientVpnTargetNetworkRequest & WithClientVpnEndpointId(const Aws::String &value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:68
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:191
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::GetDryRun
bool GetDryRun() const
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:183
AWSVector.h
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::SetClientVpnEndpointId
void SetClientVpnEndpointId(const Aws::String &value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:53
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::GetVpcId
const Aws::String & GetVpcId() const
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:84
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:23
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::WithVpcId
ApplySecurityGroupsToClientVpnTargetNetworkRequest & WithVpcId(Aws::String &&value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:114
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:94
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::ApplySecurityGroupsToClientVpnTargetNetworkRequest
ApplySecurityGroupsToClientVpnTargetNetworkRequest()
EC2Request.h
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::WithVpcId
ApplySecurityGroupsToClientVpnTargetNetworkRequest & WithVpcId(const char *value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:119
AWSString.h
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::GetSecurityGroupIds
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:126
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::SetDryRun
void SetDryRun(bool value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:199
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::ClientVpnEndpointIdHasBeenSet
bool ClientVpnEndpointIdHasBeenSet() const
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:48
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::SecurityGroupIdsHasBeenSet
bool SecurityGroupIdsHasBeenSet() const
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:132
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::WithVpcId
ApplySecurityGroupsToClientVpnTargetNetworkRequest & WithVpcId(const Aws::String &value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:109
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::AddSecurityGroupIds
ApplySecurityGroupsToClientVpnTargetNetworkRequest & AddSecurityGroupIds(const char *value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:174
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::WithSecurityGroupIds
ApplySecurityGroupsToClientVpnTargetNetworkRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:150
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::SetSecurityGroupIds
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:138
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::AddSecurityGroupIds
ApplySecurityGroupsToClientVpnTargetNetworkRequest & AddSecurityGroupIds(const Aws::String &value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:162
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::SetVpcId
void SetVpcId(const char *value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:104
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:99
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:89
EC2_EXPORTS.h
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::WithDryRun
ApplySecurityGroupsToClientVpnTargetNetworkRequest & WithDryRun(bool value)
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:207
Aws::EC2::Model::ApplySecurityGroupsToClientVpnTargetNetworkRequest::GetClientVpnEndpointId
const Aws::String & GetClientVpnEndpointId() const
Definition: ApplySecurityGroupsToClientVpnTargetNetworkRequest.h:43