AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ActivationKeyT = Aws::String>
52 void SetActivationKey(ActivationKeyT&& value) { m_activationKeyHasBeenSet = true; m_activationKey = std::forward<ActivationKeyT>(value); }
53 template<typename ActivationKeyT = Aws::String>
54 CreateAgentRequest& WithActivationKey(ActivationKeyT&& value) { SetActivationKey(std::forward<ActivationKeyT>(value)); return *this;}
56
58
62 inline const Aws::String& GetAgentName() const { return m_agentName; }
63 inline bool AgentNameHasBeenSet() const { return m_agentNameHasBeenSet; }
64 template<typename AgentNameT = Aws::String>
65 void SetAgentName(AgentNameT&& value) { m_agentNameHasBeenSet = true; m_agentName = std::forward<AgentNameT>(value); }
66 template<typename AgentNameT = Aws::String>
67 CreateAgentRequest& WithAgentName(AgentNameT&& value) { SetAgentName(std::forward<AgentNameT>(value)); return *this;}
69
71
76 inline const Aws::Vector<TagListEntry>& GetTags() const { return m_tags; }
77 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
78 template<typename TagsT = Aws::Vector<TagListEntry>>
79 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
80 template<typename TagsT = Aws::Vector<TagListEntry>>
81 CreateAgentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
82 template<typename TagsT = TagListEntry>
83 CreateAgentRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
85
87
95 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
96 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
97 template<typename VpcEndpointIdT = Aws::String>
98 void SetVpcEndpointId(VpcEndpointIdT&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::forward<VpcEndpointIdT>(value); }
99 template<typename VpcEndpointIdT = Aws::String>
100 CreateAgentRequest& WithVpcEndpointId(VpcEndpointIdT&& value) { SetVpcEndpointId(std::forward<VpcEndpointIdT>(value)); return *this;}
102
104
108 inline const Aws::Vector<Aws::String>& GetSubnetArns() const { return m_subnetArns; }
109 inline bool SubnetArnsHasBeenSet() const { return m_subnetArnsHasBeenSet; }
110 template<typename SubnetArnsT = Aws::Vector<Aws::String>>
111 void SetSubnetArns(SubnetArnsT&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = std::forward<SubnetArnsT>(value); }
112 template<typename SubnetArnsT = Aws::Vector<Aws::String>>
113 CreateAgentRequest& WithSubnetArns(SubnetArnsT&& value) { SetSubnetArns(std::forward<SubnetArnsT>(value)); return *this;}
114 template<typename SubnetArnsT = Aws::String>
115 CreateAgentRequest& AddSubnetArns(SubnetArnsT&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.emplace_back(std::forward<SubnetArnsT>(value)); return *this; }
117
119
124 inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const { return m_securityGroupArns; }
125 inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
126 template<typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
127 void SetSecurityGroupArns(SecurityGroupArnsT&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = std::forward<SecurityGroupArnsT>(value); }
128 template<typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
129 CreateAgentRequest& WithSecurityGroupArns(SecurityGroupArnsT&& value) { SetSecurityGroupArns(std::forward<SecurityGroupArnsT>(value)); return *this;}
130 template<typename SecurityGroupArnsT = Aws::String>
131 CreateAgentRequest& AddSecurityGroupArns(SecurityGroupArnsT&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.emplace_back(std::forward<SecurityGroupArnsT>(value)); return *this; }
133 private:
134
135 Aws::String m_activationKey;
136 bool m_activationKeyHasBeenSet = false;
137
138 Aws::String m_agentName;
139 bool m_agentNameHasBeenSet = false;
140
142 bool m_tagsHasBeenSet = false;
143
144 Aws::String m_vpcEndpointId;
145 bool m_vpcEndpointIdHasBeenSet = false;
146
147 Aws::Vector<Aws::String> m_subnetArns;
148 bool m_subnetArnsHasBeenSet = false;
149
150 Aws::Vector<Aws::String> m_securityGroupArns;
151 bool m_securityGroupArnsHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace DataSync
156} // 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