Interface RegisterContainerInstanceRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<RegisterContainerInstanceRequest.Builder,RegisterContainerInstanceRequest>
,EcsRequest.Builder
,SdkBuilder<RegisterContainerInstanceRequest.Builder,RegisterContainerInstanceRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- RegisterContainerInstanceRequest
public static interface RegisterContainerInstanceRequest.Builder extends EcsRequest.Builder, SdkPojo, CopyableBuilder<RegisterContainerInstanceRequest.Builder,RegisterContainerInstanceRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RegisterContainerInstanceRequest.Builder
attributes(Collection<Attribute> attributes)
The container instance attributes that this container instance supports.RegisterContainerInstanceRequest.Builder
attributes(Consumer<Attribute.Builder>... attributes)
The container instance attributes that this container instance supports.RegisterContainerInstanceRequest.Builder
attributes(Attribute... attributes)
The container instance attributes that this container instance supports.RegisterContainerInstanceRequest.Builder
cluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster to register your container instance with.RegisterContainerInstanceRequest.Builder
containerInstanceArn(String containerInstanceArn)
The ARN of the container instance (if it was previously registered).RegisterContainerInstanceRequest.Builder
instanceIdentityDocument(String instanceIdentityDocument)
The instance identity document for the EC2 instance to register.RegisterContainerInstanceRequest.Builder
instanceIdentityDocumentSignature(String instanceIdentityDocumentSignature)
The instance identity document signature for the EC2 instance to register.RegisterContainerInstanceRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
RegisterContainerInstanceRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
RegisterContainerInstanceRequest.Builder
platformDevices(Collection<PlatformDevice> platformDevices)
The devices that are available on the container instance.RegisterContainerInstanceRequest.Builder
platformDevices(Consumer<PlatformDevice.Builder>... platformDevices)
The devices that are available on the container instance.RegisterContainerInstanceRequest.Builder
platformDevices(PlatformDevice... platformDevices)
The devices that are available on the container instance.RegisterContainerInstanceRequest.Builder
tags(Collection<Tag> tags)
The metadata that you apply to the container instance to help you categorize and organize them.RegisterContainerInstanceRequest.Builder
tags(Consumer<Tag.Builder>... tags)
The metadata that you apply to the container instance to help you categorize and organize them.RegisterContainerInstanceRequest.Builder
tags(Tag... tags)
The metadata that you apply to the container instance to help you categorize and organize them.RegisterContainerInstanceRequest.Builder
totalResources(Collection<Resource> totalResources)
The resources available on the instance.RegisterContainerInstanceRequest.Builder
totalResources(Consumer<Resource.Builder>... totalResources)
The resources available on the instance.RegisterContainerInstanceRequest.Builder
totalResources(Resource... totalResources)
The resources available on the instance.default RegisterContainerInstanceRequest.Builder
versionInfo(Consumer<VersionInfo.Builder> versionInfo)
The version information for the Amazon ECS container agent and Docker daemon that runs on the container instance.RegisterContainerInstanceRequest.Builder
versionInfo(VersionInfo versionInfo)
The version information for the Amazon ECS container agent and Docker daemon that runs on the container instance.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ecs.model.EcsRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
cluster
RegisterContainerInstanceRequest.Builder cluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster to register your container instance with. If you do not specify a cluster, the default cluster is assumed.
- Parameters:
cluster
- The short name or full Amazon Resource Name (ARN) of the cluster to register your container instance with. If you do not specify a cluster, the default cluster is assumed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceIdentityDocument
RegisterContainerInstanceRequest.Builder instanceIdentityDocument(String instanceIdentityDocument)
The instance identity document for the EC2 instance to register. This document can be found by running the following command from the instance:
curl http://169.254.169.254/latest/dynamic/instance-identity/document/
- Parameters:
instanceIdentityDocument
- The instance identity document for the EC2 instance to register. This document can be found by running the following command from the instance:curl http://169.254.169.254/latest/dynamic/instance-identity/document/
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceIdentityDocumentSignature
RegisterContainerInstanceRequest.Builder instanceIdentityDocumentSignature(String instanceIdentityDocumentSignature)
The instance identity document signature for the EC2 instance to register. This signature can be found by running the following command from the instance:
curl http://169.254.169.254/latest/dynamic/instance-identity/signature/
- Parameters:
instanceIdentityDocumentSignature
- The instance identity document signature for the EC2 instance to register. This signature can be found by running the following command from the instance:curl http://169.254.169.254/latest/dynamic/instance-identity/signature/
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalResources
RegisterContainerInstanceRequest.Builder totalResources(Collection<Resource> totalResources)
The resources available on the instance.
- Parameters:
totalResources
- The resources available on the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalResources
RegisterContainerInstanceRequest.Builder totalResources(Resource... totalResources)
The resources available on the instance.
- Parameters:
totalResources
- The resources available on the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalResources
RegisterContainerInstanceRequest.Builder totalResources(Consumer<Resource.Builder>... totalResources)
The resources available on the instance.
This is a convenience method that creates an instance of theResource.Builder
avoiding the need to create one manually viaResource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#totalResources(List
.) - Parameters:
totalResources
- a consumer that will call methods onResource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#totalResources(java.util.Collection
)
-
versionInfo
RegisterContainerInstanceRequest.Builder versionInfo(VersionInfo versionInfo)
The version information for the Amazon ECS container agent and Docker daemon that runs on the container instance.
- Parameters:
versionInfo
- The version information for the Amazon ECS container agent and Docker daemon that runs on the container instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versionInfo
default RegisterContainerInstanceRequest.Builder versionInfo(Consumer<VersionInfo.Builder> versionInfo)
The version information for the Amazon ECS container agent and Docker daemon that runs on the container instance.
This is a convenience method that creates an instance of theVersionInfo.Builder
avoiding the need to create one manually viaVersionInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toversionInfo(VersionInfo)
.- Parameters:
versionInfo
- a consumer that will call methods onVersionInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
versionInfo(VersionInfo)
-
containerInstanceArn
RegisterContainerInstanceRequest.Builder containerInstanceArn(String containerInstanceArn)
The ARN of the container instance (if it was previously registered).
- Parameters:
containerInstanceArn
- The ARN of the container instance (if it was previously registered).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
RegisterContainerInstanceRequest.Builder attributes(Collection<Attribute> attributes)
The container instance attributes that this container instance supports.
- Parameters:
attributes
- The container instance attributes that this container instance supports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
RegisterContainerInstanceRequest.Builder attributes(Attribute... attributes)
The container instance attributes that this container instance supports.
- Parameters:
attributes
- The container instance attributes that this container instance supports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
RegisterContainerInstanceRequest.Builder attributes(Consumer<Attribute.Builder>... attributes)
The container instance attributes that this container instance supports.
This is a convenience method that creates an instance of theAttribute.Builder
avoiding the need to create one manually viaAttribute.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#attributes(List
.) - Parameters:
attributes
- a consumer that will call methods onAttribute.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#attributes(java.util.Collection
)
-
platformDevices
RegisterContainerInstanceRequest.Builder platformDevices(Collection<PlatformDevice> platformDevices)
The devices that are available on the container instance. The only supported device type is a GPU.
- Parameters:
platformDevices
- The devices that are available on the container instance. The only supported device type is a GPU.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
platformDevices
RegisterContainerInstanceRequest.Builder platformDevices(PlatformDevice... platformDevices)
The devices that are available on the container instance. The only supported device type is a GPU.
- Parameters:
platformDevices
- The devices that are available on the container instance. The only supported device type is a GPU.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
platformDevices
RegisterContainerInstanceRequest.Builder platformDevices(Consumer<PlatformDevice.Builder>... platformDevices)
The devices that are available on the container instance. The only supported device type is a GPU.
This is a convenience method that creates an instance of thePlatformDevice.Builder
avoiding the need to create one manually viaPlatformDevice.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#platformDevices(List
.) - Parameters:
platformDevices
- a consumer that will call methods onPlatformDevice.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#platformDevices(java.util.Collection
)
-
tags
RegisterContainerInstanceRequest.Builder tags(Collection<Tag> tags)
The metadata that you apply to the container instance to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8
-
Maximum value length - 256 Unicode characters in UTF-8
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case-sensitive.
-
Do not use
aws:
,AWS:
, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
- Parameters:
tags
- The metadata that you apply to the container instance to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8
-
Maximum value length - 256 Unicode characters in UTF-8
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case-sensitive.
-
Do not use
aws:
,AWS:
, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
tags
RegisterContainerInstanceRequest.Builder tags(Tag... tags)
The metadata that you apply to the container instance to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8
-
Maximum value length - 256 Unicode characters in UTF-8
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case-sensitive.
-
Do not use
aws:
,AWS:
, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
- Parameters:
tags
- The metadata that you apply to the container instance to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8
-
Maximum value length - 256 Unicode characters in UTF-8
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case-sensitive.
-
Do not use
aws:
,AWS:
, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
tags
RegisterContainerInstanceRequest.Builder tags(Consumer<Tag.Builder>... tags)
The metadata that you apply to the container instance to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8
-
Maximum value length - 256 Unicode characters in UTF-8
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case-sensitive.
-
Do not use
aws:
,AWS:
, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
Tag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#tags(List
.) - Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection
)
-
-
overrideConfiguration
RegisterContainerInstanceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
RegisterContainerInstanceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-