AWS SDK for C++  1.9.15
AWS SDK for C++
CreateEgressOnlyInternetGatewayRequest.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>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateEgressOnlyInternetGateway"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
47  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
48 
55  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
56 
63  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
64 
71  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
72 
79  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
80 
87  inline CreateEgressOnlyInternetGatewayRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
88 
95  inline CreateEgressOnlyInternetGatewayRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
96 
103  inline CreateEgressOnlyInternetGatewayRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
104 
105 
112  inline bool GetDryRun() const{ return m_dryRun; }
113 
120  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
121 
128  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
129 
136  inline CreateEgressOnlyInternetGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
137 
138 
142  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
143 
147  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
148 
152  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
153 
157  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
158 
162  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
163 
167  inline CreateEgressOnlyInternetGatewayRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
168 
172  inline CreateEgressOnlyInternetGatewayRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
173 
177  inline CreateEgressOnlyInternetGatewayRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
178 
179 
183  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
184 
188  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
189 
193  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
194 
198  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
199 
203  inline CreateEgressOnlyInternetGatewayRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
204 
208  inline CreateEgressOnlyInternetGatewayRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
209 
213  inline CreateEgressOnlyInternetGatewayRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
214 
218  inline CreateEgressOnlyInternetGatewayRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
219 
220  private:
221 
222  Aws::String m_clientToken;
223  bool m_clientTokenHasBeenSet;
224 
225  bool m_dryRun;
226  bool m_dryRunHasBeenSet;
227 
228  Aws::String m_vpcId;
229  bool m_vpcIdHasBeenSet;
230 
231  Aws::Vector<TagSpecification> m_tagSpecifications;
232  bool m_tagSpecificationsHasBeenSet;
233  };
234 
235 } // namespace Model
236 } // namespace EC2
237 } // namespace Aws
TagSpecification.h
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::SetVpcId
void SetVpcId(const char *value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:162
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::WithClientToken
CreateEgressOnlyInternetGatewayRequest & WithClientToken(Aws::String &&value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:95
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateEgressOnlyInternetGatewayRequest.h:47
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::AddTagSpecifications
CreateEgressOnlyInternetGatewayRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:213
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::WithDryRun
CreateEgressOnlyInternetGatewayRequest & WithDryRun(bool value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:136
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:71
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::WithVpcId
CreateEgressOnlyInternetGatewayRequest & WithVpcId(Aws::String &&value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:172
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::WithVpcId
CreateEgressOnlyInternetGatewayRequest & WithVpcId(const char *value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:177
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:152
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:128
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:193
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::WithClientToken
CreateEgressOnlyInternetGatewayRequest & WithClientToken(const char *value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:103
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateEgressOnlyInternetGatewayRequest.h:183
EC2Request.h
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::GetVpcId
const Aws::String & GetVpcId() const
Definition: CreateEgressOnlyInternetGatewayRequest.h:142
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateEgressOnlyInternetGatewayRequest.h:120
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateEgressOnlyInternetGatewayRequest.h:188
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest
Definition: CreateEgressOnlyInternetGatewayRequest.h:24
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::CreateEgressOnlyInternetGatewayRequest
CreateEgressOnlyInternetGatewayRequest()
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::WithTagSpecifications
CreateEgressOnlyInternetGatewayRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:208
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::GetDryRun
bool GetDryRun() const
Definition: CreateEgressOnlyInternetGatewayRequest.h:112
AWSString.h
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateEgressOnlyInternetGatewayRequest.h:55
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: CreateEgressOnlyInternetGatewayRequest.h:147
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::AddTagSpecifications
CreateEgressOnlyInternetGatewayRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:218
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:157
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:79
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:63
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateEgressOnlyInternetGatewayRequest.h:32
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::WithClientToken
CreateEgressOnlyInternetGatewayRequest & WithClientToken(const Aws::String &value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:87
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::WithVpcId
CreateEgressOnlyInternetGatewayRequest & WithVpcId(const Aws::String &value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:167
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:198
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::SerializePayload
Aws::String SerializePayload() const override
EC2_EXPORTS.h
Aws::EC2::Model::CreateEgressOnlyInternetGatewayRequest::WithTagSpecifications
CreateEgressOnlyInternetGatewayRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateEgressOnlyInternetGatewayRequest.h:203