Interface Cluster.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Cluster.Builder,Cluster>,SdkBuilder<Cluster.Builder,Cluster>,SdkPojo
- Enclosing class:
- Cluster
public static interface Cluster.Builder extends SdkPojo, CopyableBuilder<Cluster.Builder,Cluster>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Cluster.Builderarn(String arn)The unique Amazon Resource Name (ARN) of the cluster.Cluster.BuildercreatedAt(Instant createdAt)The date and time the resource was created.Cluster.Builderendpoints(Collection<Endpoint> endpoints)The list of endpoints available for interaction with the scheduler.Cluster.Builderendpoints(Consumer<Endpoint.Builder>... endpoints)The list of endpoints available for interaction with the scheduler.Cluster.Builderendpoints(Endpoint... endpoints)The list of endpoints available for interaction with the scheduler.Cluster.BuildererrorInfo(Collection<ErrorInfo> errorInfo)The list of errors that occurred during cluster provisioning.Cluster.BuildererrorInfo(Consumer<ErrorInfo.Builder>... errorInfo)The list of errors that occurred during cluster provisioning.Cluster.BuildererrorInfo(ErrorInfo... errorInfo)The list of errors that occurred during cluster provisioning.Cluster.Builderid(String id)The generated unique ID of the cluster.Cluster.BuildermodifiedAt(Instant modifiedAt)The date and time the resource was modified.Cluster.Buildername(String name)The name that identifies the cluster.default Cluster.Buildernetworking(Consumer<Networking.Builder> networking)Sets the value of the Networking property for this object.Cluster.Buildernetworking(Networking networking)Sets the value of the Networking property for this object.default Cluster.Builderscheduler(Consumer<Scheduler.Builder> scheduler)Sets the value of the Scheduler property for this object.Cluster.Builderscheduler(Scheduler scheduler)Sets the value of the Scheduler property for this object.Cluster.Buildersize(String size)The size of the cluster.Cluster.Buildersize(Size size)The size of the cluster.default Cluster.BuilderslurmConfiguration(Consumer<ClusterSlurmConfiguration.Builder> slurmConfiguration)Additional options related to the Slurm scheduler.Cluster.BuilderslurmConfiguration(ClusterSlurmConfiguration slurmConfiguration)Additional options related to the Slurm scheduler.Cluster.Builderstatus(String status)The provisioning status of the cluster.Cluster.Builderstatus(ClusterStatus status)The provisioning status of the cluster.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
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
-
name
Cluster.Builder name(String name)
The name that identifies the cluster.
- Parameters:
name- The name that identifies the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
Cluster.Builder id(String id)
The generated unique ID of the cluster.
- Parameters:
id- The generated unique ID of the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
Cluster.Builder arn(String arn)
The unique Amazon Resource Name (ARN) of the cluster.
- Parameters:
arn- The unique Amazon Resource Name (ARN) of the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Cluster.Builder status(String status)
The provisioning status of the cluster.
The provisioning status doesn't indicate the overall health of the cluster.
- Parameters:
status- The provisioning status of the cluster.The provisioning status doesn't indicate the overall health of the cluster.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ClusterStatus,ClusterStatus
-
status
Cluster.Builder status(ClusterStatus status)
The provisioning status of the cluster.
The provisioning status doesn't indicate the overall health of the cluster.
- Parameters:
status- The provisioning status of the cluster.The provisioning status doesn't indicate the overall health of the cluster.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ClusterStatus,ClusterStatus
-
createdAt
Cluster.Builder createdAt(Instant createdAt)
The date and time the resource was created.
- Parameters:
createdAt- The date and time the resource was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modifiedAt
Cluster.Builder modifiedAt(Instant modifiedAt)
The date and time the resource was modified.
- Parameters:
modifiedAt- The date and time the resource was modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduler
Cluster.Builder scheduler(Scheduler scheduler)
Sets the value of the Scheduler property for this object.- Parameters:
scheduler- The new value for the Scheduler property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduler
default Cluster.Builder scheduler(Consumer<Scheduler.Builder> scheduler)
Sets the value of the Scheduler property for this object. This is a convenience method that creates an instance of theScheduler.Builderavoiding the need to create one manually viaScheduler.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscheduler(Scheduler).- Parameters:
scheduler- a consumer that will call methods onScheduler.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
scheduler(Scheduler)
-
size
Cluster.Builder size(String size)
The size of the cluster.
-
SMALL: 32 compute nodes and 256 jobs -
MEDIUM: 512 compute nodes and 8192 jobs -
LARGE: 2048 compute nodes and 16,384 jobs
-
-
size
Cluster.Builder size(Size size)
The size of the cluster.
-
SMALL: 32 compute nodes and 256 jobs -
MEDIUM: 512 compute nodes and 8192 jobs -
LARGE: 2048 compute nodes and 16,384 jobs
-
-
slurmConfiguration
Cluster.Builder slurmConfiguration(ClusterSlurmConfiguration 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 Cluster.Builder slurmConfiguration(Consumer<ClusterSlurmConfiguration.Builder> slurmConfiguration)
Additional options related to the Slurm scheduler.
This is a convenience method that creates an instance of theClusterSlurmConfiguration.Builderavoiding the need to create one manually viaClusterSlurmConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toslurmConfiguration(ClusterSlurmConfiguration).- Parameters:
slurmConfiguration- a consumer that will call methods onClusterSlurmConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
slurmConfiguration(ClusterSlurmConfiguration)
-
networking
Cluster.Builder networking(Networking networking)
Sets the value of the Networking property for this object.- Parameters:
networking- The new value for the Networking property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networking
default Cluster.Builder networking(Consumer<Networking.Builder> networking)
Sets the value of the Networking property for this object. This is a convenience method that creates an instance of theNetworking.Builderavoiding the need to create one manually viaNetworking.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonetworking(Networking).- Parameters:
networking- a consumer that will call methods onNetworking.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
networking(Networking)
-
endpoints
Cluster.Builder endpoints(Collection<Endpoint> endpoints)
The list of endpoints available for interaction with the scheduler.
- Parameters:
endpoints- The list of endpoints available for interaction with the scheduler.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endpoints
Cluster.Builder endpoints(Endpoint... endpoints)
The list of endpoints available for interaction with the scheduler.
- Parameters:
endpoints- The list of endpoints available for interaction with the scheduler.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endpoints
Cluster.Builder endpoints(Consumer<Endpoint.Builder>... endpoints)
The list of endpoints available for interaction with the scheduler.
This is a convenience method that creates an instance of theEndpoint.Builderavoiding the need to create one manually viaEndpoint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#endpoints(List.) - Parameters:
endpoints- a consumer that will call methods onEndpoint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#endpoints(java.util.Collection)
-
errorInfo
Cluster.Builder errorInfo(Collection<ErrorInfo> errorInfo)
The list of errors that occurred during cluster provisioning.
- Parameters:
errorInfo- The list of errors that occurred during cluster provisioning.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorInfo
Cluster.Builder errorInfo(ErrorInfo... errorInfo)
The list of errors that occurred during cluster provisioning.
- Parameters:
errorInfo- The list of errors that occurred during cluster provisioning.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorInfo
Cluster.Builder errorInfo(Consumer<ErrorInfo.Builder>... errorInfo)
The list of errors that occurred during cluster provisioning.
This is a convenience method that creates an instance of theErrorInfo.Builderavoiding the need to create one manually viaErrorInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#errorInfo(List.) - Parameters:
errorInfo- a consumer that will call methods onErrorInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#errorInfo(java.util.Collection)
-
-