AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateCarrierGatewayRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2Request.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/TagSpecification.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EC2 {
18namespace Model {
19
23 public:
24 AWS_EC2_API CreateCarrierGatewayRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateCarrierGateway"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
42 inline const Aws::String& GetVpcId() const { return m_vpcId; }
43 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
44 template <typename VpcIdT = Aws::String>
45 void SetVpcId(VpcIdT&& value) {
46 m_vpcIdHasBeenSet = true;
47 m_vpcId = std::forward<VpcIdT>(value);
48 }
49 template <typename VpcIdT = Aws::String>
51 SetVpcId(std::forward<VpcIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
61 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
62 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
63 void SetTagSpecifications(TagSpecificationsT&& value) {
64 m_tagSpecificationsHasBeenSet = true;
65 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
66 }
67 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
69 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
70 return *this;
71 }
72 template <typename TagSpecificationsT = TagSpecification>
74 m_tagSpecificationsHasBeenSet = true;
75 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
76 return *this;
77 }
79
81
87 inline bool GetDryRun() const { return m_dryRun; }
88 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
89 inline void SetDryRun(bool value) {
90 m_dryRunHasBeenSet = true;
91 m_dryRun = value;
92 }
94 SetDryRun(value);
95 return *this;
96 }
98
100
106 inline const Aws::String& GetClientToken() const { return m_clientToken; }
107 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
108 template <typename ClientTokenT = Aws::String>
109 void SetClientToken(ClientTokenT&& value) {
110 m_clientTokenHasBeenSet = true;
111 m_clientToken = std::forward<ClientTokenT>(value);
112 }
113 template <typename ClientTokenT = Aws::String>
115 SetClientToken(std::forward<ClientTokenT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_vpcId;
121
122 Aws::Vector<TagSpecification> m_tagSpecifications;
123
124 bool m_dryRun{false};
125
127 bool m_vpcIdHasBeenSet = false;
128 bool m_tagSpecificationsHasBeenSet = false;
129 bool m_dryRunHasBeenSet = false;
130 bool m_clientTokenHasBeenSet = true;
131};
132
133} // namespace Model
134} // namespace EC2
135} // namespace Aws
AWS_EC2_API CreateCarrierGatewayRequest()=default
CreateCarrierGatewayRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateCarrierGatewayRequest & WithClientToken(ClientTokenT &&value)
CreateCarrierGatewayRequest & AddTagSpecifications(TagSpecificationsT &&value)
CreateCarrierGatewayRequest & WithVpcId(VpcIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateCarrierGatewayRequest & WithTagSpecifications(TagSpecificationsT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector