AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
113 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
114 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
115 template <typename VpcEndpointIdT = Aws::String>
116 void SetVpcEndpointId(VpcEndpointIdT&& value) {
117 m_vpcEndpointIdHasBeenSet = true;
118 m_vpcEndpointId = std::forward<VpcEndpointIdT>(value);
119 }
120 template <typename VpcEndpointIdT = Aws::String>
121 CreateAgentRequest& WithVpcEndpointId(VpcEndpointIdT&& value) {
122 SetVpcEndpointId(std::forward<VpcEndpointIdT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::Vector<Aws::String>& GetSubnetArns() const { return m_subnetArns; }
133 inline bool SubnetArnsHasBeenSet() const { return m_subnetArnsHasBeenSet; }
134 template <typename SubnetArnsT = Aws::Vector<Aws::String>>
135 void SetSubnetArns(SubnetArnsT&& value) {
136 m_subnetArnsHasBeenSet = true;
137 m_subnetArns = std::forward<SubnetArnsT>(value);
138 }
139 template <typename SubnetArnsT = Aws::Vector<Aws::String>>
140 CreateAgentRequest& WithSubnetArns(SubnetArnsT&& value) {
141 SetSubnetArns(std::forward<SubnetArnsT>(value));
142 return *this;
143 }
144 template <typename SubnetArnsT = Aws::String>
145 CreateAgentRequest& AddSubnetArns(SubnetArnsT&& value) {
146 m_subnetArnsHasBeenSet = true;
147 m_subnetArns.emplace_back(std::forward<SubnetArnsT>(value));
148 return *this;
149 }
151
153
158 inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const { return m_securityGroupArns; }
159 inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
160 template <typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
161 void SetSecurityGroupArns(SecurityGroupArnsT&& value) {
162 m_securityGroupArnsHasBeenSet = true;
163 m_securityGroupArns = std::forward<SecurityGroupArnsT>(value);
164 }
165 template <typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
166 CreateAgentRequest& WithSecurityGroupArns(SecurityGroupArnsT&& value) {
167 SetSecurityGroupArns(std::forward<SecurityGroupArnsT>(value));
168 return *this;
169 }
170 template <typename SecurityGroupArnsT = Aws::String>
171 CreateAgentRequest& AddSecurityGroupArns(SecurityGroupArnsT&& value) {
172 m_securityGroupArnsHasBeenSet = true;
173 m_securityGroupArns.emplace_back(std::forward<SecurityGroupArnsT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_activationKey;
179
180 Aws::String m_agentName;
181
183
184 Aws::String m_vpcEndpointId;
185
186 Aws::Vector<Aws::String> m_subnetArns;
187
188 Aws::Vector<Aws::String> m_securityGroupArns;
189 bool m_activationKeyHasBeenSet = false;
190 bool m_agentNameHasBeenSet = false;
191 bool m_tagsHasBeenSet = false;
192 bool m_vpcEndpointIdHasBeenSet = false;
193 bool m_subnetArnsHasBeenSet = false;
194 bool m_securityGroupArnsHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace DataSync
199} // 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