AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAgentRequest.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/datasync/DataSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datasync/model/TagListEntry.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DataSync
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_DATASYNC_API CreateAgentRequest();
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_DATASYNC_API Aws::String SerializePayload() const override;
38
40
41
43
49 inline const Aws::String& GetActivationKey() const{ return m_activationKey; }
50 inline bool ActivationKeyHasBeenSet() const { return m_activationKeyHasBeenSet; }
51 inline void SetActivationKey(const Aws::String& value) { m_activationKeyHasBeenSet = true; m_activationKey = value; }
52 inline void SetActivationKey(Aws::String&& value) { m_activationKeyHasBeenSet = true; m_activationKey = std::move(value); }
53 inline void SetActivationKey(const char* value) { m_activationKeyHasBeenSet = true; m_activationKey.assign(value); }
54 inline CreateAgentRequest& WithActivationKey(const Aws::String& value) { SetActivationKey(value); return *this;}
55 inline CreateAgentRequest& WithActivationKey(Aws::String&& value) { SetActivationKey(std::move(value)); return *this;}
56 inline CreateAgentRequest& WithActivationKey(const char* value) { SetActivationKey(value); return *this;}
58
60
64 inline const Aws::String& GetAgentName() const{ return m_agentName; }
65 inline bool AgentNameHasBeenSet() const { return m_agentNameHasBeenSet; }
66 inline void SetAgentName(const Aws::String& value) { m_agentNameHasBeenSet = true; m_agentName = value; }
67 inline void SetAgentName(Aws::String&& value) { m_agentNameHasBeenSet = true; m_agentName = std::move(value); }
68 inline void SetAgentName(const char* value) { m_agentNameHasBeenSet = true; m_agentName.assign(value); }
69 inline CreateAgentRequest& WithAgentName(const Aws::String& value) { SetAgentName(value); return *this;}
70 inline CreateAgentRequest& WithAgentName(Aws::String&& value) { SetAgentName(std::move(value)); return *this;}
71 inline CreateAgentRequest& WithAgentName(const char* value) { SetAgentName(value); return *this;}
73
75
80 inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
81 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
82 inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
83 inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
84 inline CreateAgentRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
85 inline CreateAgentRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
86 inline CreateAgentRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
87 inline CreateAgentRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
89
91
99 inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; }
100 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
101 inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; }
102 inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::move(value); }
103 inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); }
104 inline CreateAgentRequest& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;}
105 inline CreateAgentRequest& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(std::move(value)); return *this;}
106 inline CreateAgentRequest& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;}
108
110
114 inline const Aws::Vector<Aws::String>& GetSubnetArns() const{ return m_subnetArns; }
115 inline bool SubnetArnsHasBeenSet() const { return m_subnetArnsHasBeenSet; }
116 inline void SetSubnetArns(const Aws::Vector<Aws::String>& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = value; }
117 inline void SetSubnetArns(Aws::Vector<Aws::String>&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = std::move(value); }
118 inline CreateAgentRequest& WithSubnetArns(const Aws::Vector<Aws::String>& value) { SetSubnetArns(value); return *this;}
119 inline CreateAgentRequest& WithSubnetArns(Aws::Vector<Aws::String>&& value) { SetSubnetArns(std::move(value)); return *this;}
120 inline CreateAgentRequest& AddSubnetArns(const Aws::String& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; }
121 inline CreateAgentRequest& AddSubnetArns(Aws::String&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(std::move(value)); return *this; }
122 inline CreateAgentRequest& AddSubnetArns(const char* value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; }
124
126
131 inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const{ return m_securityGroupArns; }
132 inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
133 inline void SetSecurityGroupArns(const Aws::Vector<Aws::String>& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = value; }
134 inline void SetSecurityGroupArns(Aws::Vector<Aws::String>&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = std::move(value); }
137 inline CreateAgentRequest& AddSecurityGroupArns(const Aws::String& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
138 inline CreateAgentRequest& AddSecurityGroupArns(Aws::String&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(std::move(value)); return *this; }
139 inline CreateAgentRequest& AddSecurityGroupArns(const char* value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
141 private:
142
143 Aws::String m_activationKey;
144 bool m_activationKeyHasBeenSet = false;
145
146 Aws::String m_agentName;
147 bool m_agentNameHasBeenSet = false;
148
150 bool m_tagsHasBeenSet = false;
151
152 Aws::String m_vpcEndpointId;
153 bool m_vpcEndpointIdHasBeenSet = false;
154
155 Aws::Vector<Aws::String> m_subnetArns;
156 bool m_subnetArnsHasBeenSet = false;
157
158 Aws::Vector<Aws::String> m_securityGroupArns;
159 bool m_securityGroupArnsHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace DataSync
164} // namespace Aws
CreateAgentRequest & WithActivationKey(const Aws::String &value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAgentRequest & WithSubnetArns(const Aws::Vector< Aws::String > &value)
CreateAgentRequest & WithSubnetArns(Aws::Vector< Aws::String > &&value)
CreateAgentRequest & AddSecurityGroupArns(const char *value)
CreateAgentRequest & AddSubnetArns(Aws::String &&value)
void SetActivationKey(const Aws::String &value)
CreateAgentRequest & AddTags(const TagListEntry &value)
void SetAgentName(const Aws::String &value)
const Aws::Vector< TagListEntry > & GetTags() const
AWS_DATASYNC_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetSecurityGroupArns() const
CreateAgentRequest & WithActivationKey(const char *value)
CreateAgentRequest & WithAgentName(Aws::String &&value)
CreateAgentRequest & WithTags(Aws::Vector< TagListEntry > &&value)
CreateAgentRequest & AddSecurityGroupArns(const Aws::String &value)
CreateAgentRequest & WithActivationKey(Aws::String &&value)
CreateAgentRequest & AddSubnetArns(const char *value)
const Aws::String & GetActivationKey() const
void SetSecurityGroupArns(Aws::Vector< Aws::String > &&value)
CreateAgentRequest & WithVpcEndpointId(Aws::String &&value)
void SetSubnetArns(const Aws::Vector< Aws::String > &value)
CreateAgentRequest & WithTags(const Aws::Vector< TagListEntry > &value)
const Aws::Vector< Aws::String > & GetSubnetArns() const
CreateAgentRequest & AddSubnetArns(const Aws::String &value)
const Aws::String & GetVpcEndpointId() const
void SetVpcEndpointId(const Aws::String &value)
void SetSecurityGroupArns(const Aws::Vector< Aws::String > &value)
CreateAgentRequest & AddTags(TagListEntry &&value)
CreateAgentRequest & WithVpcEndpointId(const Aws::String &value)
CreateAgentRequest & WithSecurityGroupArns(const Aws::Vector< Aws::String > &value)
CreateAgentRequest & WithAgentName(const char *value)
CreateAgentRequest & AddSecurityGroupArns(Aws::String &&value)
void SetTags(const Aws::Vector< TagListEntry > &value)
virtual const char * GetServiceRequestName() const override
CreateAgentRequest & WithAgentName(const Aws::String &value)
void SetTags(Aws::Vector< TagListEntry > &&value)
void SetSubnetArns(Aws::Vector< Aws::String > &&value)
CreateAgentRequest & WithVpcEndpointId(const char *value)
CreateAgentRequest & WithSecurityGroupArns(Aws::Vector< Aws::String > &&value)
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