AWS SDK for C++

AWS SDK for C++ Version 1.11.605

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 template<typename ClientTokenT = Aws::String>
51 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
52 template<typename ClientTokenT = Aws::String>
53 CreateEgressOnlyInternetGatewayRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
55
57
63 inline bool GetDryRun() const { return m_dryRun; }
64 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
65 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
66 inline CreateEgressOnlyInternetGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
68
70
73 inline const Aws::String& GetVpcId() const { return m_vpcId; }
74 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
75 template<typename VpcIdT = Aws::String>
76 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
77 template<typename VpcIdT = Aws::String>
78 CreateEgressOnlyInternetGatewayRequest& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
80
82
85 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
86 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
87 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
88 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
89 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
90 CreateEgressOnlyInternetGatewayRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
91 template<typename TagSpecificationsT = TagSpecification>
92 CreateEgressOnlyInternetGatewayRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
94 private:
95
96 Aws::String m_clientToken;
97 bool m_clientTokenHasBeenSet = false;
98
99 bool m_dryRun{false};
100 bool m_dryRunHasBeenSet = false;
101
102 Aws::String m_vpcId;
103 bool m_vpcIdHasBeenSet = false;
104
105 Aws::Vector<TagSpecification> m_tagSpecifications;
106 bool m_tagSpecificationsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace EC2
111} // namespace Aws
CreateEgressOnlyInternetGatewayRequest & WithDryRun(bool value)
CreateEgressOnlyInternetGatewayRequest & WithTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateEgressOnlyInternetGatewayRequest & AddTagSpecifications(TagSpecificationsT &&value)
CreateEgressOnlyInternetGatewayRequest & WithClientToken(ClientTokenT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateEgressOnlyInternetGatewayRequest & WithVpcId(VpcIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector