/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace DataSync { namespace Model { /** *

CreateAgentRequest

See Also:

AWS * API Reference

*/ class CreateAgentRequest : public DataSyncRequest { public: AWS_DATASYNC_API CreateAgentRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateAgent"; } AWS_DATASYNC_API Aws::String SerializePayload() const override; AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Specifies your DataSync agent's activation key. If you don't have an * activation key, see Activate * your agent.

*/ inline const Aws::String& GetActivationKey() const{ return m_activationKey; } /** *

Specifies your DataSync agent's activation key. If you don't have an * activation key, see Activate * your agent.

*/ inline bool ActivationKeyHasBeenSet() const { return m_activationKeyHasBeenSet; } /** *

Specifies your DataSync agent's activation key. If you don't have an * activation key, see Activate * your agent.

*/ inline void SetActivationKey(const Aws::String& value) { m_activationKeyHasBeenSet = true; m_activationKey = value; } /** *

Specifies your DataSync agent's activation key. If you don't have an * activation key, see Activate * your agent.

*/ inline void SetActivationKey(Aws::String&& value) { m_activationKeyHasBeenSet = true; m_activationKey = std::move(value); } /** *

Specifies your DataSync agent's activation key. If you don't have an * activation key, see Activate * your agent.

*/ inline void SetActivationKey(const char* value) { m_activationKeyHasBeenSet = true; m_activationKey.assign(value); } /** *

Specifies your DataSync agent's activation key. If you don't have an * activation key, see Activate * your agent.

*/ inline CreateAgentRequest& WithActivationKey(const Aws::String& value) { SetActivationKey(value); return *this;} /** *

Specifies your DataSync agent's activation key. If you don't have an * activation key, see Activate * your agent.

*/ inline CreateAgentRequest& WithActivationKey(Aws::String&& value) { SetActivationKey(std::move(value)); return *this;} /** *

Specifies your DataSync agent's activation key. If you don't have an * activation key, see Activate * your agent.

*/ inline CreateAgentRequest& WithActivationKey(const char* value) { SetActivationKey(value); return *this;} /** *

Specifies a name for your agent. You can see this name in the DataSync * console.

*/ inline const Aws::String& GetAgentName() const{ return m_agentName; } /** *

Specifies a name for your agent. You can see this name in the DataSync * console.

*/ inline bool AgentNameHasBeenSet() const { return m_agentNameHasBeenSet; } /** *

Specifies a name for your agent. You can see this name in the DataSync * console.

*/ inline void SetAgentName(const Aws::String& value) { m_agentNameHasBeenSet = true; m_agentName = value; } /** *

Specifies a name for your agent. You can see this name in the DataSync * console.

*/ inline void SetAgentName(Aws::String&& value) { m_agentNameHasBeenSet = true; m_agentName = std::move(value); } /** *

Specifies a name for your agent. You can see this name in the DataSync * console.

*/ inline void SetAgentName(const char* value) { m_agentNameHasBeenSet = true; m_agentName.assign(value); } /** *

Specifies a name for your agent. You can see this name in the DataSync * console.

*/ inline CreateAgentRequest& WithAgentName(const Aws::String& value) { SetAgentName(value); return *this;} /** *

Specifies a name for your agent. You can see this name in the DataSync * console.

*/ inline CreateAgentRequest& WithAgentName(Aws::String&& value) { SetAgentName(std::move(value)); return *this;} /** *

Specifies a name for your agent. You can see this name in the DataSync * console.

*/ inline CreateAgentRequest& WithAgentName(const char* value) { SetAgentName(value); return *this;} /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least one tag for your * agent.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least one tag for your * agent.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least one tag for your * agent.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least one tag for your * agent.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least one tag for your * agent.

*/ inline CreateAgentRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least one tag for your * agent.

*/ inline CreateAgentRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least one tag for your * agent.

*/ inline CreateAgentRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least one tag for your * agent.

*/ inline CreateAgentRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

Specifies the ID of the VPC endpoint that you want your agent to connect to. * For example, a VPC endpoint ID looks like * vpce-01234d5aff67890e1.

The VPC endpoint you use * must include the DataSync service name (for example, * com.amazonaws.us-east-2.datasync).

*/ inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; } /** *

Specifies the ID of the VPC endpoint that you want your agent to connect to. * For example, a VPC endpoint ID looks like * vpce-01234d5aff67890e1.

The VPC endpoint you use * must include the DataSync service name (for example, * com.amazonaws.us-east-2.datasync).

*/ inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; } /** *

Specifies the ID of the VPC endpoint that you want your agent to connect to. * For example, a VPC endpoint ID looks like * vpce-01234d5aff67890e1.

The VPC endpoint you use * must include the DataSync service name (for example, * com.amazonaws.us-east-2.datasync).

*/ inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; } /** *

Specifies the ID of the VPC endpoint that you want your agent to connect to. * For example, a VPC endpoint ID looks like * vpce-01234d5aff67890e1.

The VPC endpoint you use * must include the DataSync service name (for example, * com.amazonaws.us-east-2.datasync).

*/ inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::move(value); } /** *

Specifies the ID of the VPC endpoint that you want your agent to connect to. * For example, a VPC endpoint ID looks like * vpce-01234d5aff67890e1.

The VPC endpoint you use * must include the DataSync service name (for example, * com.amazonaws.us-east-2.datasync).

*/ inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); } /** *

Specifies the ID of the VPC endpoint that you want your agent to connect to. * For example, a VPC endpoint ID looks like * vpce-01234d5aff67890e1.

The VPC endpoint you use * must include the DataSync service name (for example, * com.amazonaws.us-east-2.datasync).

*/ inline CreateAgentRequest& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;} /** *

Specifies the ID of the VPC endpoint that you want your agent to connect to. * For example, a VPC endpoint ID looks like * vpce-01234d5aff67890e1.

The VPC endpoint you use * must include the DataSync service name (for example, * com.amazonaws.us-east-2.datasync).

*/ inline CreateAgentRequest& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(std::move(value)); return *this;} /** *

Specifies the ID of the VPC endpoint that you want your agent to connect to. * For example, a VPC endpoint ID looks like * vpce-01234d5aff67890e1.

The VPC endpoint you use * must include the DataSync service name (for example, * com.amazonaws.us-east-2.datasync).

*/ inline CreateAgentRequest& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;} /** *

Specifies the ARN of the subnet where you want to run your DataSync task when * using a VPC endpoint. This is the subnet where DataSync creates and manages the * network * interfaces for your transfer. You can only specify one ARN.

*/ inline const Aws::Vector& GetSubnetArns() const{ return m_subnetArns; } /** *

Specifies the ARN of the subnet where you want to run your DataSync task when * using a VPC endpoint. This is the subnet where DataSync creates and manages the * network * interfaces for your transfer. You can only specify one ARN.

*/ inline bool SubnetArnsHasBeenSet() const { return m_subnetArnsHasBeenSet; } /** *

Specifies the ARN of the subnet where you want to run your DataSync task when * using a VPC endpoint. This is the subnet where DataSync creates and manages the * network * interfaces for your transfer. You can only specify one ARN.

*/ inline void SetSubnetArns(const Aws::Vector& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = value; } /** *

Specifies the ARN of the subnet where you want to run your DataSync task when * using a VPC endpoint. This is the subnet where DataSync creates and manages the * network * interfaces for your transfer. You can only specify one ARN.

*/ inline void SetSubnetArns(Aws::Vector&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = std::move(value); } /** *

Specifies the ARN of the subnet where you want to run your DataSync task when * using a VPC endpoint. This is the subnet where DataSync creates and manages the * network * interfaces for your transfer. You can only specify one ARN.

*/ inline CreateAgentRequest& WithSubnetArns(const Aws::Vector& value) { SetSubnetArns(value); return *this;} /** *

Specifies the ARN of the subnet where you want to run your DataSync task when * using a VPC endpoint. This is the subnet where DataSync creates and manages the * network * interfaces for your transfer. You can only specify one ARN.

*/ inline CreateAgentRequest& WithSubnetArns(Aws::Vector&& value) { SetSubnetArns(std::move(value)); return *this;} /** *

Specifies the ARN of the subnet where you want to run your DataSync task when * using a VPC endpoint. This is the subnet where DataSync creates and manages the * network * interfaces for your transfer. You can only specify one ARN.

*/ inline CreateAgentRequest& AddSubnetArns(const Aws::String& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; } /** *

Specifies the ARN of the subnet where you want to run your DataSync task when * using a VPC endpoint. This is the subnet where DataSync creates and manages the * network * interfaces for your transfer. You can only specify one ARN.

*/ inline CreateAgentRequest& AddSubnetArns(Aws::String&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(std::move(value)); return *this; } /** *

Specifies the ARN of the subnet where you want to run your DataSync task when * using a VPC endpoint. This is the subnet where DataSync creates and manages the * network * interfaces for your transfer. You can only specify one ARN.

*/ inline CreateAgentRequest& AddSubnetArns(const char* value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; } /** *

Specifies the Amazon Resource Name (ARN) of the security group that protects * your task's network * interfaces when using * a virtual private cloud (VPC) endpoint. You can only specify one ARN.

*/ inline const Aws::Vector& GetSecurityGroupArns() const{ return m_securityGroupArns; } /** *

Specifies the Amazon Resource Name (ARN) of the security group that protects * your task's network * interfaces when using * a virtual private cloud (VPC) endpoint. You can only specify one ARN.

*/ inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; } /** *

Specifies the Amazon Resource Name (ARN) of the security group that protects * your task's network * interfaces when using * a virtual private cloud (VPC) endpoint. You can only specify one ARN.

*/ inline void SetSecurityGroupArns(const Aws::Vector& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = value; } /** *

Specifies the Amazon Resource Name (ARN) of the security group that protects * your task's network * interfaces when using * a virtual private cloud (VPC) endpoint. You can only specify one ARN.

*/ inline void SetSecurityGroupArns(Aws::Vector&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = std::move(value); } /** *

Specifies the Amazon Resource Name (ARN) of the security group that protects * your task's network * interfaces when using * a virtual private cloud (VPC) endpoint. You can only specify one ARN.

*/ inline CreateAgentRequest& WithSecurityGroupArns(const Aws::Vector& value) { SetSecurityGroupArns(value); return *this;} /** *

Specifies the Amazon Resource Name (ARN) of the security group that protects * your task's network * interfaces when using * a virtual private cloud (VPC) endpoint. You can only specify one ARN.

*/ inline CreateAgentRequest& WithSecurityGroupArns(Aws::Vector&& value) { SetSecurityGroupArns(std::move(value)); return *this;} /** *

Specifies the Amazon Resource Name (ARN) of the security group that protects * your task's network * interfaces when using * a virtual private cloud (VPC) endpoint. You can only specify one ARN.

*/ inline CreateAgentRequest& AddSecurityGroupArns(const Aws::String& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; } /** *

Specifies the Amazon Resource Name (ARN) of the security group that protects * your task's network * interfaces when using * a virtual private cloud (VPC) endpoint. You can only specify one ARN.

*/ inline CreateAgentRequest& AddSecurityGroupArns(Aws::String&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(std::move(value)); return *this; } /** *

Specifies the Amazon Resource Name (ARN) of the security group that protects * your task's network * interfaces when using * a virtual private cloud (VPC) endpoint. You can only specify one ARN.

*/ inline CreateAgentRequest& AddSecurityGroupArns(const char* value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; } private: Aws::String m_activationKey; bool m_activationKeyHasBeenSet = false; Aws::String m_agentName; bool m_agentNameHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_vpcEndpointId; bool m_vpcEndpointIdHasBeenSet = false; Aws::Vector m_subnetArns; bool m_subnetArnsHasBeenSet = false; Aws::Vector m_securityGroupArns; bool m_securityGroupArnsHasBeenSet = false; }; } // namespace Model } // namespace DataSync } // namespace Aws