AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateAgentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datasync/DataSyncRequest.h>
10#include <aws/datasync/DataSync_EXPORTS.h>
11#include <aws/datasync/model/TagListEntry.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DataSync {
17namespace Model {
18
25 public:
26 AWS_DATASYNC_API CreateAgentRequest() = default;
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 "CreateAgent"; }
33
34 AWS_DATASYNC_API Aws::String SerializePayload() const override;
35
37
39
45 inline const Aws::String& GetActivationKey() const { return m_activationKey; }
46 inline bool ActivationKeyHasBeenSet() const { return m_activationKeyHasBeenSet; }
47 template <typename ActivationKeyT = Aws::String>
48 void SetActivationKey(ActivationKeyT&& value) {
49 m_activationKeyHasBeenSet = true;
50 m_activationKey = std::forward<ActivationKeyT>(value);
51 }
52 template <typename ActivationKeyT = Aws::String>
53 CreateAgentRequest& WithActivationKey(ActivationKeyT&& value) {
54 SetActivationKey(std::forward<ActivationKeyT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetAgentName() const { return m_agentName; }
65 inline bool AgentNameHasBeenSet() const { return m_agentNameHasBeenSet; }
66 template <typename AgentNameT = Aws::String>
67 void SetAgentName(AgentNameT&& value) {
68 m_agentNameHasBeenSet = true;
69 m_agentName = std::forward<AgentNameT>(value);
70 }
71 template <typename AgentNameT = Aws::String>
72 CreateAgentRequest& WithAgentName(AgentNameT&& value) {
73 SetAgentName(std::forward<AgentNameT>(value));
74 return *this;
75 }
77
79
84 inline const Aws::Vector<TagListEntry>& GetTags() const { return m_tags; }
85 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
86 template <typename TagsT = Aws::Vector<TagListEntry>>
87 void SetTags(TagsT&& value) {
88 m_tagsHasBeenSet = true;
89 m_tags = std::forward<TagsT>(value);
90 }
91 template <typename TagsT = Aws::Vector<TagListEntry>>
92 CreateAgentRequest& WithTags(TagsT&& value) {
93 SetTags(std::forward<TagsT>(value));
94 return *this;
95 }
96 template <typename TagsT = TagListEntry>
97 CreateAgentRequest& AddTags(TagsT&& value) {
98 m_tagsHasBeenSet = true;
99 m_tags.emplace_back(std::forward<TagsT>(value));
100 return *this;
101 }
103
105
117 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
118 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
119 template <typename VpcEndpointIdT = Aws::String>
120 void SetVpcEndpointId(VpcEndpointIdT&& value) {
121 m_vpcEndpointIdHasBeenSet = true;
122 m_vpcEndpointId = std::forward<VpcEndpointIdT>(value);
123 }
124 template <typename VpcEndpointIdT = Aws::String>
125 CreateAgentRequest& WithVpcEndpointId(VpcEndpointIdT&& value) {
126 SetVpcEndpointId(std::forward<VpcEndpointIdT>(value));
127 return *this;
128 }
130
132
145 inline const Aws::Vector<Aws::String>& GetSubnetArns() const { return m_subnetArns; }
146 inline bool SubnetArnsHasBeenSet() const { return m_subnetArnsHasBeenSet; }
147 template <typename SubnetArnsT = Aws::Vector<Aws::String>>
148 void SetSubnetArns(SubnetArnsT&& value) {
149 m_subnetArnsHasBeenSet = true;
150 m_subnetArns = std::forward<SubnetArnsT>(value);
151 }
152 template <typename SubnetArnsT = Aws::Vector<Aws::String>>
153 CreateAgentRequest& WithSubnetArns(SubnetArnsT&& value) {
154 SetSubnetArns(std::forward<SubnetArnsT>(value));
155 return *this;
156 }
157 template <typename SubnetArnsT = Aws::String>
158 CreateAgentRequest& AddSubnetArns(SubnetArnsT&& value) {
159 m_subnetArnsHasBeenSet = true;
160 m_subnetArns.emplace_back(std::forward<SubnetArnsT>(value));
161 return *this;
162 }
164
166
174 inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const { return m_securityGroupArns; }
175 inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
176 template <typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
177 void SetSecurityGroupArns(SecurityGroupArnsT&& value) {
178 m_securityGroupArnsHasBeenSet = true;
179 m_securityGroupArns = std::forward<SecurityGroupArnsT>(value);
180 }
181 template <typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
182 CreateAgentRequest& WithSecurityGroupArns(SecurityGroupArnsT&& value) {
183 SetSecurityGroupArns(std::forward<SecurityGroupArnsT>(value));
184 return *this;
185 }
186 template <typename SecurityGroupArnsT = Aws::String>
187 CreateAgentRequest& AddSecurityGroupArns(SecurityGroupArnsT&& value) {
188 m_securityGroupArnsHasBeenSet = true;
189 m_securityGroupArns.emplace_back(std::forward<SecurityGroupArnsT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_activationKey;
195
196 Aws::String m_agentName;
197
199
200 Aws::String m_vpcEndpointId;
201
202 Aws::Vector<Aws::String> m_subnetArns;
203
204 Aws::Vector<Aws::String> m_securityGroupArns;
205 bool m_activationKeyHasBeenSet = false;
206 bool m_agentNameHasBeenSet = false;
207 bool m_tagsHasBeenSet = false;
208 bool m_vpcEndpointIdHasBeenSet = false;
209 bool m_subnetArnsHasBeenSet = false;
210 bool m_securityGroupArnsHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace DataSync
215} // namespace Aws
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAgentRequest & WithActivationKey(ActivationKeyT &&value)
const Aws::Vector< TagListEntry > & GetTags() const
AWS_DATASYNC_API Aws::String SerializePayload() const override
CreateAgentRequest & AddTags(TagsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupArns() const
CreateAgentRequest & AddSecurityGroupArns(SecurityGroupArnsT &&value)
CreateAgentRequest & WithTags(TagsT &&value)
const Aws::String & GetActivationKey() const
void SetVpcEndpointId(VpcEndpointIdT &&value)
CreateAgentRequest & WithSubnetArns(SubnetArnsT &&value)
CreateAgentRequest & WithAgentName(AgentNameT &&value)
const Aws::Vector< Aws::String > & GetSubnetArns() const
const Aws::String & GetVpcEndpointId() const
void SetSecurityGroupArns(SecurityGroupArnsT &&value)
CreateAgentRequest & WithVpcEndpointId(VpcEndpointIdT &&value)
void SetActivationKey(ActivationKeyT &&value)
CreateAgentRequest & AddSubnetArns(SubnetArnsT &&value)
CreateAgentRequest & WithSecurityGroupArns(SecurityGroupArnsT &&value)
AWS_DATASYNC_API CreateAgentRequest()=default
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector