AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateLicenseEndpointRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/deadline/DeadlineRequest.h>
12#include <aws/deadline/Deadline_EXPORTS.h>
13
14#include <utility>
15
16namespace Aws {
17namespace deadline {
18namespace Model {
19
23 public:
24 AWS_DEADLINE_API CreateLicenseEndpointRequest() = 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 "CreateLicenseEndpoint"; }
31
32 AWS_DEADLINE_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetClientToken() const { return m_clientToken; }
42 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
43 template <typename ClientTokenT = Aws::String>
44 void SetClientToken(ClientTokenT&& value) {
45 m_clientTokenHasBeenSet = true;
46 m_clientToken = std::forward<ClientTokenT>(value);
47 }
48 template <typename ClientTokenT = Aws::String>
50 SetClientToken(std::forward<ClientTokenT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetVpcId() const { return m_vpcId; }
60 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
61 template <typename VpcIdT = Aws::String>
62 void SetVpcId(VpcIdT&& value) {
63 m_vpcIdHasBeenSet = true;
64 m_vpcId = std::forward<VpcIdT>(value);
65 }
66 template <typename VpcIdT = Aws::String>
68 SetVpcId(std::forward<VpcIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
78 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
79 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
80 void SetSubnetIds(SubnetIdsT&& value) {
81 m_subnetIdsHasBeenSet = true;
82 m_subnetIds = std::forward<SubnetIdsT>(value);
83 }
84 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
86 SetSubnetIds(std::forward<SubnetIdsT>(value));
87 return *this;
88 }
89 template <typename SubnetIdsT = Aws::String>
91 m_subnetIdsHasBeenSet = true;
92 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
102 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
103 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
104 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
105 m_securityGroupIdsHasBeenSet = true;
106 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
107 }
108 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
110 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
111 return *this;
112 }
113 template <typename SecurityGroupIdsT = Aws::String>
115 m_securityGroupIdsHasBeenSet = true;
116 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
117 return *this;
118 }
120
122
126 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
127 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
128 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
129 void SetTags(TagsT&& value) {
130 m_tagsHasBeenSet = true;
131 m_tags = std::forward<TagsT>(value);
132 }
133 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 SetTags(std::forward<TagsT>(value));
136 return *this;
137 }
138 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
139 CreateLicenseEndpointRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
140 m_tagsHasBeenSet = true;
141 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
142 return *this;
143 }
145 private:
147
148 Aws::String m_vpcId;
149
150 Aws::Vector<Aws::String> m_subnetIds;
151
152 Aws::Vector<Aws::String> m_securityGroupIds;
153
155 bool m_clientTokenHasBeenSet = true;
156 bool m_vpcIdHasBeenSet = false;
157 bool m_subnetIdsHasBeenSet = false;
158 bool m_securityGroupIdsHasBeenSet = false;
159 bool m_tagsHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace deadline
164} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateLicenseEndpointRequest & WithVpcId(VpcIdT &&value)
CreateLicenseEndpointRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
CreateLicenseEndpointRequest & WithClientToken(ClientTokenT &&value)
AWS_DEADLINE_API CreateLicenseEndpointRequest()=default
const Aws::Vector< Aws::String > & GetSubnetIds() const
CreateLicenseEndpointRequest & WithTags(TagsT &&value)
CreateLicenseEndpointRequest & AddSubnetIds(SubnetIdsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DEADLINE_API Aws::String SerializePayload() const override
CreateLicenseEndpointRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateLicenseEndpointRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
CreateLicenseEndpointRequest & WithSubnetIds(SubnetIdsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector