Interface RegisterContainerInstanceRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<RegisterContainerInstanceRequest.Builder,,RegisterContainerInstanceRequest> EcsRequest.Builder,SdkBuilder<RegisterContainerInstanceRequest.Builder,,RegisterContainerInstanceRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
RegisterContainerInstanceRequest
-
Method Summary
Modifier and TypeMethodDescriptionattributes(Collection<Attribute> attributes) The container instance attributes that this container instance supports.attributes(Consumer<Attribute.Builder>... attributes) The container instance attributes that this container instance supports.attributes(Attribute... attributes) The container instance attributes that this container instance supports.The short name or full Amazon Resource Name (ARN) of the cluster to register your container instance with.containerInstanceArn(String containerInstanceArn) The ARN of the container instance (if it was previously registered).instanceIdentityDocument(String instanceIdentityDocument) The instance identity document for the EC2 instance to register.instanceIdentityDocumentSignature(String instanceIdentityDocumentSignature) The instance identity document signature for the EC2 instance to register.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.platformDevices(Collection<PlatformDevice> platformDevices) The devices that are available on the container instance.platformDevices(Consumer<PlatformDevice.Builder>... platformDevices) The devices that are available on the container instance.platformDevices(PlatformDevice... platformDevices) The devices that are available on the container instance.tags(Collection<Tag> tags) The metadata that you apply to the container instance to help you categorize and organize them.tags(Consumer<Tag.Builder>... tags) The metadata that you apply to the container instance to help you categorize and organize them.The metadata that you apply to the container instance to help you categorize and organize them.totalResources(Collection<Resource> totalResources) The resources available on the instance.totalResources(Consumer<Resource.Builder>... totalResources) The resources available on the instance.totalResources(Resource... totalResources) The resources available on the instance.versionInfo(Consumer<VersionInfo.Builder> versionInfo) The version information for the Amazon ECS container agent and Docker daemon that runs on the container instance.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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ecs.model.EcsRequest.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
-
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
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
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
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.Builderavoiding the need to create one manually viaResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tototalResources(List<Resource>).- 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:
-
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.Builderavoiding the need to create one manually viaVersionInfo.builder().When the
Consumercompletes,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:
-
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
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
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
The container instance attributes that this container instance supports.
This is a convenience method that creates an instance of theAttribute.Builderavoiding the need to create one manually viaAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toattributes(List<Attribute>).- 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:
-
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
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.Builderavoiding the need to create one manually viaPlatformDevice.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toplatformDevices(List<PlatformDevice>).- 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:
-
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
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
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.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- 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:
-
-
overrideConfiguration
RegisterContainerInstanceRequest.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
RegisterContainerInstanceRequest.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.
-