AWS SDK for C++  1.9.160
AWS SDK for C++
CreateAgentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace DataSync
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateAgent"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
53  inline const Aws::String& GetActivationKey() const{ return m_activationKey; }
54 
66  inline bool ActivationKeyHasBeenSet() const { return m_activationKeyHasBeenSet; }
67 
79  inline void SetActivationKey(const Aws::String& value) { m_activationKeyHasBeenSet = true; m_activationKey = value; }
80 
92  inline void SetActivationKey(Aws::String&& value) { m_activationKeyHasBeenSet = true; m_activationKey = std::move(value); }
93 
105  inline void SetActivationKey(const char* value) { m_activationKeyHasBeenSet = true; m_activationKey.assign(value); }
106 
118  inline CreateAgentRequest& WithActivationKey(const Aws::String& value) { SetActivationKey(value); return *this;}
119 
131  inline CreateAgentRequest& WithActivationKey(Aws::String&& value) { SetActivationKey(std::move(value)); return *this;}
132 
144  inline CreateAgentRequest& WithActivationKey(const char* value) { SetActivationKey(value); return *this;}
145 
146 
151  inline const Aws::String& GetAgentName() const{ return m_agentName; }
152 
157  inline bool AgentNameHasBeenSet() const { return m_agentNameHasBeenSet; }
158 
163  inline void SetAgentName(const Aws::String& value) { m_agentNameHasBeenSet = true; m_agentName = value; }
164 
169  inline void SetAgentName(Aws::String&& value) { m_agentNameHasBeenSet = true; m_agentName = std::move(value); }
170 
175  inline void SetAgentName(const char* value) { m_agentNameHasBeenSet = true; m_agentName.assign(value); }
176 
181  inline CreateAgentRequest& WithAgentName(const Aws::String& value) { SetAgentName(value); return *this;}
182 
187  inline CreateAgentRequest& WithAgentName(Aws::String&& value) { SetAgentName(std::move(value)); return *this;}
188 
193  inline CreateAgentRequest& WithAgentName(const char* value) { SetAgentName(value); return *this;}
194 
195 
203  inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
204 
212  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
213 
221  inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
222 
230  inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
231 
239  inline CreateAgentRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
240 
248  inline CreateAgentRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
249 
257  inline CreateAgentRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
258 
266  inline CreateAgentRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
267 
268 
277  inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; }
278 
287  inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
288 
297  inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; }
298 
307  inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::move(value); }
308 
317  inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); }
318 
327  inline CreateAgentRequest& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;}
328 
337  inline CreateAgentRequest& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(std::move(value)); return *this;}
338 
347  inline CreateAgentRequest& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;}
348 
349 
359  inline const Aws::Vector<Aws::String>& GetSubnetArns() const{ return m_subnetArns; }
360 
370  inline bool SubnetArnsHasBeenSet() const { return m_subnetArnsHasBeenSet; }
371 
381  inline void SetSubnetArns(const Aws::Vector<Aws::String>& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = value; }
382 
392  inline void SetSubnetArns(Aws::Vector<Aws::String>&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = std::move(value); }
393 
403  inline CreateAgentRequest& WithSubnetArns(const Aws::Vector<Aws::String>& value) { SetSubnetArns(value); return *this;}
404 
414  inline CreateAgentRequest& WithSubnetArns(Aws::Vector<Aws::String>&& value) { SetSubnetArns(std::move(value)); return *this;}
415 
425  inline CreateAgentRequest& AddSubnetArns(const Aws::String& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; }
426 
436  inline CreateAgentRequest& AddSubnetArns(Aws::String&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(std::move(value)); return *this; }
437 
447  inline CreateAgentRequest& AddSubnetArns(const char* value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; }
448 
449 
455  inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const{ return m_securityGroupArns; }
456 
462  inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
463 
469  inline void SetSecurityGroupArns(const Aws::Vector<Aws::String>& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = value; }
470 
476  inline void SetSecurityGroupArns(Aws::Vector<Aws::String>&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = std::move(value); }
477 
483  inline CreateAgentRequest& WithSecurityGroupArns(const Aws::Vector<Aws::String>& value) { SetSecurityGroupArns(value); return *this;}
484 
490  inline CreateAgentRequest& WithSecurityGroupArns(Aws::Vector<Aws::String>&& value) { SetSecurityGroupArns(std::move(value)); return *this;}
491 
497  inline CreateAgentRequest& AddSecurityGroupArns(const Aws::String& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
498 
504  inline CreateAgentRequest& AddSecurityGroupArns(Aws::String&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(std::move(value)); return *this; }
505 
511  inline CreateAgentRequest& AddSecurityGroupArns(const char* value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
512 
513  private:
514 
515  Aws::String m_activationKey;
516  bool m_activationKeyHasBeenSet;
517 
518  Aws::String m_agentName;
519  bool m_agentNameHasBeenSet;
520 
522  bool m_tagsHasBeenSet;
523 
524  Aws::String m_vpcEndpointId;
525  bool m_vpcEndpointIdHasBeenSet;
526 
527  Aws::Vector<Aws::String> m_subnetArns;
528  bool m_subnetArnsHasBeenSet;
529 
530  Aws::Vector<Aws::String> m_securityGroupArns;
531  bool m_securityGroupArnsHasBeenSet;
532  };
533 
534 } // namespace Model
535 } // namespace DataSync
536 } // namespace Aws
Aws::DataSync::Model::CreateAgentRequest::SetAgentName
void SetAgentName(const char *value)
Definition: CreateAgentRequest.h:175
Aws::DataSync::Model::CreateAgentRequest::WithActivationKey
CreateAgentRequest & WithActivationKey(Aws::String &&value)
Definition: CreateAgentRequest.h:131
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::DataSync::Model::CreateAgentRequest::AddTags
CreateAgentRequest & AddTags(const TagListEntry &value)
Definition: CreateAgentRequest.h:257
Aws::DataSync::Model::CreateAgentRequest::SecurityGroupArnsHasBeenSet
bool SecurityGroupArnsHasBeenSet() const
Definition: CreateAgentRequest.h:462
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DataSync::Model::TagListEntry
Definition: TagListEntry.h:36
Aws::DataSync::Model::CreateAgentRequest::WithSecurityGroupArns
CreateAgentRequest & WithSecurityGroupArns(const Aws::Vector< Aws::String > &value)
Definition: CreateAgentRequest.h:483
Aws::DataSync::Model::CreateAgentRequest::SetSecurityGroupArns
void SetSecurityGroupArns(const Aws::Vector< Aws::String > &value)
Definition: CreateAgentRequest.h:469
Aws::DataSync::Model::CreateAgentRequest::AddSubnetArns
CreateAgentRequest & AddSubnetArns(const Aws::String &value)
Definition: CreateAgentRequest.h:425
Aws::DataSync::Model::CreateAgentRequest::AddSubnetArns
CreateAgentRequest & AddSubnetArns(const char *value)
Definition: CreateAgentRequest.h:447
Aws::DataSync::Model::CreateAgentRequest::WithTags
CreateAgentRequest & WithTags(const Aws::Vector< TagListEntry > &value)
Definition: CreateAgentRequest.h:239
Aws::DataSync::Model::CreateAgentRequest::GetAgentName
const Aws::String & GetAgentName() const
Definition: CreateAgentRequest.h:151
Aws::DataSync::Model::CreateAgentRequest::SetActivationKey
void SetActivationKey(const char *value)
Definition: CreateAgentRequest.h:105
Aws::DataSync::Model::CreateAgentRequest::WithSecurityGroupArns
CreateAgentRequest & WithSecurityGroupArns(Aws::Vector< Aws::String > &&value)
Definition: CreateAgentRequest.h:490
Aws::DataSync::Model::CreateAgentRequest::WithVpcEndpointId
CreateAgentRequest & WithVpcEndpointId(const char *value)
Definition: CreateAgentRequest.h:347
DataSyncRequest.h
Aws::DataSync::Model::CreateAgentRequest::SetVpcEndpointId
void SetVpcEndpointId(const Aws::String &value)
Definition: CreateAgentRequest.h:297
Aws::DataSync::Model::CreateAgentRequest
Definition: CreateAgentRequest.h:27
Aws::DataSync::Model::CreateAgentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DataSync::Model::CreateAgentRequest::SubnetArnsHasBeenSet
bool SubnetArnsHasBeenSet() const
Definition: CreateAgentRequest.h:370
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DataSync::Model::CreateAgentRequest::WithAgentName
CreateAgentRequest & WithAgentName(const char *value)
Definition: CreateAgentRequest.h:193
AWSVector.h
Aws::DataSync::Model::CreateAgentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAgentRequest.h:35
Aws::DataSync::Model::CreateAgentRequest::AddSecurityGroupArns
CreateAgentRequest & AddSecurityGroupArns(const Aws::String &value)
Definition: CreateAgentRequest.h:497
Aws::DataSync::Model::CreateAgentRequest::AddSubnetArns
CreateAgentRequest & AddSubnetArns(Aws::String &&value)
Definition: CreateAgentRequest.h:436
Aws::DataSync::Model::CreateAgentRequest::ActivationKeyHasBeenSet
bool ActivationKeyHasBeenSet() const
Definition: CreateAgentRequest.h:66
Aws::DataSync::Model::CreateAgentRequest::GetVpcEndpointId
const Aws::String & GetVpcEndpointId() const
Definition: CreateAgentRequest.h:277
Aws::DataSync::Model::CreateAgentRequest::AddSecurityGroupArns
CreateAgentRequest & AddSecurityGroupArns(Aws::String &&value)
Definition: CreateAgentRequest.h:504
Aws::DataSync::Model::CreateAgentRequest::WithActivationKey
CreateAgentRequest & WithActivationKey(const char *value)
Definition: CreateAgentRequest.h:144
Aws::DataSync::Model::CreateAgentRequest::GetSecurityGroupArns
const Aws::Vector< Aws::String > & GetSecurityGroupArns() const
Definition: CreateAgentRequest.h:455
Aws::DataSync::Model::CreateAgentRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateAgentRequest.h:212
Aws::DataSync::Model::CreateAgentRequest::WithAgentName
CreateAgentRequest & WithAgentName(Aws::String &&value)
Definition: CreateAgentRequest.h:187
Aws::DataSync::Model::CreateAgentRequest::SetTags
void SetTags(const Aws::Vector< TagListEntry > &value)
Definition: CreateAgentRequest.h:221
Aws::DataSync::Model::CreateAgentRequest::SetAgentName
void SetAgentName(const Aws::String &value)
Definition: CreateAgentRequest.h:163
TagListEntry.h
Aws::DataSync::Model::CreateAgentRequest::AddTags
CreateAgentRequest & AddTags(TagListEntry &&value)
Definition: CreateAgentRequest.h:266
Aws::DataSync::Model::CreateAgentRequest::SetSecurityGroupArns
void SetSecurityGroupArns(Aws::Vector< Aws::String > &&value)
Definition: CreateAgentRequest.h:476
Aws::DataSync::Model::CreateAgentRequest::SetSubnetArns
void SetSubnetArns(Aws::Vector< Aws::String > &&value)
Definition: CreateAgentRequest.h:392
AWSString.h
DataSync_EXPORTS.h
Aws::DataSync::Model::CreateAgentRequest::WithVpcEndpointId
CreateAgentRequest & WithVpcEndpointId(const Aws::String &value)
Definition: CreateAgentRequest.h:327
Aws::DataSync::Model::CreateAgentRequest::AgentNameHasBeenSet
bool AgentNameHasBeenSet() const
Definition: CreateAgentRequest.h:157
Aws::DataSync::Model::CreateAgentRequest::SetTags
void SetTags(Aws::Vector< TagListEntry > &&value)
Definition: CreateAgentRequest.h:230
Aws::DataSync::Model::CreateAgentRequest::WithSubnetArns
CreateAgentRequest & WithSubnetArns(Aws::Vector< Aws::String > &&value)
Definition: CreateAgentRequest.h:414
Aws::DataSync::Model::CreateAgentRequest::SetActivationKey
void SetActivationKey(Aws::String &&value)
Definition: CreateAgentRequest.h:92
Aws::DataSync::Model::CreateAgentRequest::GetTags
const Aws::Vector< TagListEntry > & GetTags() const
Definition: CreateAgentRequest.h:203
Aws::DataSync::DataSyncRequest
Definition: DataSyncRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::CreateAgentRequest::WithActivationKey
CreateAgentRequest & WithActivationKey(const Aws::String &value)
Definition: CreateAgentRequest.h:118
Aws::DataSync::Model::CreateAgentRequest::AddSecurityGroupArns
CreateAgentRequest & AddSecurityGroupArns(const char *value)
Definition: CreateAgentRequest.h:511
Aws::DataSync::Model::CreateAgentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DataSync::Model::CreateAgentRequest::SetVpcEndpointId
void SetVpcEndpointId(const char *value)
Definition: CreateAgentRequest.h:317
Aws::DataSync::Model::CreateAgentRequest::WithAgentName
CreateAgentRequest & WithAgentName(const Aws::String &value)
Definition: CreateAgentRequest.h:181
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::CreateAgentRequest::WithTags
CreateAgentRequest & WithTags(Aws::Vector< TagListEntry > &&value)
Definition: CreateAgentRequest.h:248
Aws::DataSync::Model::CreateAgentRequest::SetAgentName
void SetAgentName(Aws::String &&value)
Definition: CreateAgentRequest.h:169
Aws::DataSync::Model::CreateAgentRequest::WithSubnetArns
CreateAgentRequest & WithSubnetArns(const Aws::Vector< Aws::String > &value)
Definition: CreateAgentRequest.h:403
Aws::DataSync::Model::CreateAgentRequest::SetSubnetArns
void SetSubnetArns(const Aws::Vector< Aws::String > &value)
Definition: CreateAgentRequest.h:381
Aws::DataSync::Model::CreateAgentRequest::CreateAgentRequest
CreateAgentRequest()
Aws::DataSync::Model::CreateAgentRequest::WithVpcEndpointId
CreateAgentRequest & WithVpcEndpointId(Aws::String &&value)
Definition: CreateAgentRequest.h:337
Aws::DataSync::Model::CreateAgentRequest::SetActivationKey
void SetActivationKey(const Aws::String &value)
Definition: CreateAgentRequest.h:79
Aws::DataSync::Model::CreateAgentRequest::SetVpcEndpointId
void SetVpcEndpointId(Aws::String &&value)
Definition: CreateAgentRequest.h:307
Aws::DataSync::Model::CreateAgentRequest::GetSubnetArns
const Aws::Vector< Aws::String > & GetSubnetArns() const
Definition: CreateAgentRequest.h:359
Aws::DataSync::Model::CreateAgentRequest::VpcEndpointIdHasBeenSet
bool VpcEndpointIdHasBeenSet() const
Definition: CreateAgentRequest.h:287
Aws::DataSync::Model::CreateAgentRequest::GetActivationKey
const Aws::String & GetActivationKey() const
Definition: CreateAgentRequest.h:53