Interface CreateAgentRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateAgentRequest.Builder,,CreateAgentRequest> DataSyncRequest.Builder,SdkBuilder<CreateAgentRequest.Builder,,CreateAgentRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateAgentRequest
-
Method Summary
Modifier and TypeMethodDescriptionactivationKey(String activationKey) Specifies your DataSync agent's activation key.Specifies a name for your agent.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.securityGroupArns(String... securityGroupArns) Specifies the Amazon Resource Name (ARN) of the security group that allows traffic between your agent and VPC service endpoint.securityGroupArns(Collection<String> securityGroupArns) Specifies the Amazon Resource Name (ARN) of the security group that allows traffic between your agent and VPC service endpoint.subnetArns(String... subnetArns) Specifies the ARN of the subnet where DataSync creates the network interfaces that handle data transfer traffic for your tasks.subnetArns(Collection<String> subnetArns) Specifies the ARN of the subnet where DataSync creates the network interfaces that handle data transfer traffic for your tasks.tags(Collection<TagListEntry> tags) Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources.tags(Consumer<TagListEntry.Builder>... tags) Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources.tags(TagListEntry... tags) Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources.vpcEndpointId(String vpcEndpointId) Specifies the ID of the VPC service endpoint that you're using.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.datasync.model.DataSyncRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
activationKey
Specifies your DataSync agent's activation key. If you don't have an activation key, see Activating your agent.
- Parameters:
activationKey- Specifies your DataSync agent's activation key. If you don't have an activation key, see Activating your agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentName
Specifies a name for your agent. We recommend specifying a name that you can remember.
- Parameters:
agentName- Specifies a name for your agent. We recommend specifying a name that you can remember.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
This is a convenience method that creates an instance of theTagListEntry.Builderavoiding the need to create one manually viaTagListEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<TagListEntry>).- Parameters:
tags- a consumer that will call methods onTagListEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vpcEndpointId
Specifies the ID of the VPC service endpoint that you're using. For example, a VPC endpoint ID looks like
vpce-01234d5aff67890e1.The VPC service endpoint you use must include the DataSync service name (for example,
com.amazonaws.us-east-2.datasync).The endpoint ID is informational. DataSync doesn't verify it or use it to connect to your agent. For more information, see Using a single VPC service endpoint across multiple subnets.
- Parameters:
vpcEndpointId- Specifies the ID of the VPC service endpoint that you're using. For example, a VPC endpoint ID looks likevpce-01234d5aff67890e1.The VPC service endpoint you use must include the DataSync service name (for example,
com.amazonaws.us-east-2.datasync).The endpoint ID is informational. DataSync doesn't verify it or use it to connect to your agent. For more information, see Using a single VPC service endpoint across multiple subnets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetArns
Specifies the ARN of the subnet where DataSync creates the network interfaces that handle data transfer traffic for your tasks. You can only specify one ARN.
The subnet doesn't have to be the subnet that contains your VPC service endpoint. The subnet can be one that another Amazon Web Services account shared with you through RAM, in which case the ARN must specify the account that owns the subnet. For more information, see Using a single VPC service endpoint across multiple subnets.
- Parameters:
subnetArns- Specifies the ARN of the subnet where DataSync creates the network interfaces that handle data transfer traffic for your tasks. You can only specify one ARN.The subnet doesn't have to be the subnet that contains your VPC service endpoint. The subnet can be one that another Amazon Web Services account shared with you through RAM, in which case the ARN must specify the account that owns the subnet. For more information, see Using a single VPC service endpoint across multiple subnets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetArns
Specifies the ARN of the subnet where DataSync creates the network interfaces that handle data transfer traffic for your tasks. You can only specify one ARN.
The subnet doesn't have to be the subnet that contains your VPC service endpoint. The subnet can be one that another Amazon Web Services account shared with you through RAM, in which case the ARN must specify the account that owns the subnet. For more information, see Using a single VPC service endpoint across multiple subnets.
- Parameters:
subnetArns- Specifies the ARN of the subnet where DataSync creates the network interfaces that handle data transfer traffic for your tasks. You can only specify one ARN.The subnet doesn't have to be the subnet that contains your VPC service endpoint. The subnet can be one that another Amazon Web Services account shared with you through RAM, in which case the ARN must specify the account that owns the subnet. For more information, see Using a single VPC service endpoint across multiple subnets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupArns
Specifies the Amazon Resource Name (ARN) of the security group that allows traffic between your agent and VPC service endpoint. You can only specify one ARN.
The ARN must specify your own account, even when the security group was shared with you from the account that owns the VPC. The security group must belong to the same VPC as the subnet that you specify in
SubnetArns.- Parameters:
securityGroupArns- Specifies the Amazon Resource Name (ARN) of the security group that allows traffic between your agent and VPC service endpoint. You can only specify one ARN.The ARN must specify your own account, even when the security group was shared with you from the account that owns the VPC. The security group must belong to the same VPC as the subnet that you specify in
SubnetArns.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupArns
Specifies the Amazon Resource Name (ARN) of the security group that allows traffic between your agent and VPC service endpoint. You can only specify one ARN.
The ARN must specify your own account, even when the security group was shared with you from the account that owns the VPC. The security group must belong to the same VPC as the subnet that you specify in
SubnetArns.- Parameters:
securityGroupArns- Specifies the Amazon Resource Name (ARN) of the security group that allows traffic between your agent and VPC service endpoint. You can only specify one ARN.The ARN must specify your own account, even when the security group was shared with you from the account that owns the VPC. The security group must belong to the same VPC as the subnet that you specify in
SubnetArns.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateAgentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateAgentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-