Interface CreateClusterRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateClusterRequest.Builder,CreateClusterRequest>,PcsRequest.Builder,SdkBuilder<CreateClusterRequest.Builder,CreateClusterRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateClusterRequest
public static interface CreateClusterRequest.Builder extends PcsRequest.Builder, SdkPojo, CopyableBuilder<CreateClusterRequest.Builder,CreateClusterRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateClusterRequest.BuilderclientToken(String clientToken)A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.CreateClusterRequest.BuilderclusterName(String clusterName)A name to identify the cluster.default CreateClusterRequest.Buildernetworking(Consumer<NetworkingRequest.Builder> networking)The networking configuration used to set up the cluster's control plane.CreateClusterRequest.Buildernetworking(NetworkingRequest networking)The networking configuration used to set up the cluster's control plane.CreateClusterRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateClusterRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default CreateClusterRequest.Builderscheduler(Consumer<SchedulerRequest.Builder> scheduler)The cluster management and job scheduling software associated with the cluster.CreateClusterRequest.Builderscheduler(SchedulerRequest scheduler)The cluster management and job scheduling software associated with the cluster.CreateClusterRequest.Buildersize(String size)A value that determines the maximum number of compute nodes in the cluster and the maximum number of jobs (active and queued).CreateClusterRequest.Buildersize(Size size)A value that determines the maximum number of compute nodes in the cluster and the maximum number of jobs (active and queued).default CreateClusterRequest.BuilderslurmConfiguration(Consumer<ClusterSlurmConfigurationRequest.Builder> slurmConfiguration)Additional options related to the Slurm scheduler.CreateClusterRequest.BuilderslurmConfiguration(ClusterSlurmConfigurationRequest slurmConfiguration)Additional options related to the Slurm scheduler.CreateClusterRequest.Buildertags(Map<String,String> tags)1 or more tags added to the resource.-
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.pcs.model.PcsRequest.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
-
clusterName
CreateClusterRequest.Builder clusterName(String clusterName)
A name to identify the cluster. Example:
MyCluster- Parameters:
clusterName- A name to identify the cluster. Example:MyCluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduler
CreateClusterRequest.Builder scheduler(SchedulerRequest scheduler)
The cluster management and job scheduling software associated with the cluster.
- Parameters:
scheduler- The cluster management and job scheduling software associated with the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduler
default CreateClusterRequest.Builder scheduler(Consumer<SchedulerRequest.Builder> scheduler)
The cluster management and job scheduling software associated with the cluster.
This is a convenience method that creates an instance of theSchedulerRequest.Builderavoiding the need to create one manually viaSchedulerRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscheduler(SchedulerRequest).- Parameters:
scheduler- a consumer that will call methods onSchedulerRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
scheduler(SchedulerRequest)
-
size
CreateClusterRequest.Builder size(String size)
A value that determines the maximum number of compute nodes in the cluster and the maximum number of jobs (active and queued).
-
SMALL: 32 compute nodes and 256 jobs -
MEDIUM: 512 compute nodes and 8192 jobs -
LARGE: 2048 compute nodes and 16,384 jobs
- Parameters:
size- A value that determines the maximum number of compute nodes in the cluster and the maximum number of jobs (active and queued).-
SMALL: 32 compute nodes and 256 jobs -
MEDIUM: 512 compute nodes and 8192 jobs -
LARGE: 2048 compute nodes and 16,384 jobs
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Size,Size
-
-
size
CreateClusterRequest.Builder size(Size size)
A value that determines the maximum number of compute nodes in the cluster and the maximum number of jobs (active and queued).
-
SMALL: 32 compute nodes and 256 jobs -
MEDIUM: 512 compute nodes and 8192 jobs -
LARGE: 2048 compute nodes and 16,384 jobs
- Parameters:
size- A value that determines the maximum number of compute nodes in the cluster and the maximum number of jobs (active and queued).-
SMALL: 32 compute nodes and 256 jobs -
MEDIUM: 512 compute nodes and 8192 jobs -
LARGE: 2048 compute nodes and 16,384 jobs
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Size,Size
-
-
networking
CreateClusterRequest.Builder networking(NetworkingRequest networking)
The networking configuration used to set up the cluster's control plane.
- Parameters:
networking- The networking configuration used to set up the cluster's control plane.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networking
default CreateClusterRequest.Builder networking(Consumer<NetworkingRequest.Builder> networking)
The networking configuration used to set up the cluster's control plane.
This is a convenience method that creates an instance of theNetworkingRequest.Builderavoiding the need to create one manually viaNetworkingRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonetworking(NetworkingRequest).- Parameters:
networking- a consumer that will call methods onNetworkingRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
networking(NetworkingRequest)
-
slurmConfiguration
CreateClusterRequest.Builder slurmConfiguration(ClusterSlurmConfigurationRequest slurmConfiguration)
Additional options related to the Slurm scheduler.
- Parameters:
slurmConfiguration- Additional options related to the Slurm scheduler.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slurmConfiguration
default CreateClusterRequest.Builder slurmConfiguration(Consumer<ClusterSlurmConfigurationRequest.Builder> slurmConfiguration)
Additional options related to the Slurm scheduler.
This is a convenience method that creates an instance of theClusterSlurmConfigurationRequest.Builderavoiding the need to create one manually viaClusterSlurmConfigurationRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toslurmConfiguration(ClusterSlurmConfigurationRequest).- Parameters:
slurmConfiguration- a consumer that will call methods onClusterSlurmConfigurationRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
slurmConfiguration(ClusterSlurmConfigurationRequest)
-
clientToken
CreateClusterRequest.Builder clientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateClusterRequest.Builder tags(Map<String,String> tags)
1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
- Parameters:
tags- 1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateClusterRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateClusterRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-