AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateEgressOnlyInternetGatewayRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/TagSpecification.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace 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_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
48 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
49 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
50 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
51 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
52 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
54 inline CreateEgressOnlyInternetGatewayRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
55 inline CreateEgressOnlyInternetGatewayRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
57
59
65 inline bool GetDryRun() const{ return m_dryRun; }
66 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
67 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
68 inline CreateEgressOnlyInternetGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
70
72
75 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
76 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
77 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
78 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
79 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
80 inline CreateEgressOnlyInternetGatewayRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
81 inline CreateEgressOnlyInternetGatewayRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
82 inline CreateEgressOnlyInternetGatewayRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
84
86
89 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
90 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
91 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
92 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
95 inline CreateEgressOnlyInternetGatewayRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
96 inline CreateEgressOnlyInternetGatewayRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
98 private:
99
100 Aws::String m_clientToken;
101 bool m_clientTokenHasBeenSet = false;
102
103 bool m_dryRun;
104 bool m_dryRunHasBeenSet = false;
105
106 Aws::String m_vpcId;
107 bool m_vpcIdHasBeenSet = false;
108
109 Aws::Vector<TagSpecification> m_tagSpecifications;
110 bool m_tagSpecificationsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace EC2
115} // namespace Aws
CreateEgressOnlyInternetGatewayRequest & WithDryRun(bool value)
CreateEgressOnlyInternetGatewayRequest & WithVpcId(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateEgressOnlyInternetGatewayRequest & WithClientToken(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateEgressOnlyInternetGatewayRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateEgressOnlyInternetGatewayRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateEgressOnlyInternetGatewayRequest & WithClientToken(const char *value)
CreateEgressOnlyInternetGatewayRequest & AddTagSpecifications(TagSpecification &&value)
CreateEgressOnlyInternetGatewayRequest & WithVpcId(Aws::String &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateEgressOnlyInternetGatewayRequest & WithClientToken(const Aws::String &value)
CreateEgressOnlyInternetGatewayRequest & WithVpcId(const char *value)
CreateEgressOnlyInternetGatewayRequest & AddTagSpecifications(const TagSpecification &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector