/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.datasync.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* CreateAgentRequest *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateAgentRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** Specifies your DataSync agent's activation key. If you don't have an activation key, see Activate your agent. *
*/ private String activationKey; /** ** Specifies a name for your agent. You can see this name in the DataSync console. *
*/ private String agentName; /** ** 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. *
*/ private java.util.List
* 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
).
*
* 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. *
*/ private java.util.List* 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. *
*/ private java.util.List* Specifies your DataSync agent's activation key. If you don't have an activation key, see Activate your agent. *
* * @param activationKey * Specifies your DataSync agent's activation key. If you don't have an activation key, see Activate your agent. */ public void setActivationKey(String activationKey) { this.activationKey = activationKey; } /** ** Specifies your DataSync agent's activation key. If you don't have an activation key, see Activate your agent. *
* * @return Specifies your DataSync agent's activation key. If you don't have an activation key, see Activate your agent. */ public String getActivationKey() { return this.activationKey; } /** ** Specifies your DataSync agent's activation key. If you don't have an activation key, see Activate your agent. *
* * @param activationKey * Specifies your DataSync agent's activation key. If you don't have an activation key, see Activate your agent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAgentRequest withActivationKey(String activationKey) { setActivationKey(activationKey); return this; } /** ** Specifies a name for your agent. You can see this name in the DataSync console. *
* * @param agentName * Specifies a name for your agent. You can see this name in the DataSync console. */ public void setAgentName(String agentName) { this.agentName = agentName; } /** ** Specifies a name for your agent. You can see this name in the DataSync console. *
* * @return Specifies a name for your agent. You can see this name in the DataSync console. */ public String getAgentName() { return this.agentName; } /** ** Specifies a name for your agent. You can see this name in the DataSync console. *
* * @param agentName * Specifies a name for your agent. You can see this name in the DataSync console. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAgentRequest withAgentName(String agentName) { setAgentName(agentName); 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. *
* * @return 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. */ public java.util.List* 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. *
* * @param 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. */ public void setTags(java.util.Collection* 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAgentRequest withTags(TagListEntry... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAgentRequest withTags(java.util.Collection
* 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
).
*
vpce-01234d5aff67890e1
.
* The VPC endpoint you use must include the DataSync service name (for example,
* com.amazonaws.us-east-2.datasync
).
*
* 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
).
*
vpce-01234d5aff67890e1
.
* The VPC endpoint you use must include the DataSync service name (for example,
* com.amazonaws.us-east-2.datasync
).
*
* 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
).
*
vpce-01234d5aff67890e1
.
* The VPC endpoint you use must include the DataSync service name (for example,
* com.amazonaws.us-east-2.datasync
).
*
* 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. *
* * @return 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. */ public java.util.List* 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. *
* * @param 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. */ public void setSubnetArns(java.util.Collection* 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubnetArns(java.util.Collection)} or {@link #withSubnetArns(java.util.Collection)} if you want to * override the existing values. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAgentRequest withSubnetArns(String... subnetArns) { if (this.subnetArns == null) { setSubnetArns(new java.util.ArrayList* 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAgentRequest withSubnetArns(java.util.Collection* 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. *
* * @return 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. */ public java.util.List* 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. *
* * @param 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. */ public void setSecurityGroupArns(java.util.Collection* 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSecurityGroupArns(java.util.Collection)} or {@link #withSecurityGroupArns(java.util.Collection)} if * you want to override the existing values. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAgentRequest withSecurityGroupArns(String... securityGroupArns) { if (this.securityGroupArns == null) { setSecurityGroupArns(new java.util.ArrayList* 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAgentRequest withSecurityGroupArns(java.util.Collection