Interface ClusterStatus.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ClusterStatus.Builder,
,ClusterStatus> SdkBuilder<ClusterStatus.Builder,
,ClusterStatus> SdkPojo
- Enclosing class:
ClusterStatus
-
Method Summary
Modifier and TypeMethodDescriptionerrorDetails
(Collection<ErrorDetail> errorDetails) A list of tuples that provides information about the errors that caused a cluster to terminate.errorDetails
(Consumer<ErrorDetail.Builder>... errorDetails) A list of tuples that provides information about the errors that caused a cluster to terminate.errorDetails
(ErrorDetail... errorDetails) A list of tuples that provides information about the errors that caused a cluster to terminate.The current state of the cluster.state
(ClusterState state) The current state of the cluster.default ClusterStatus.Builder
stateChangeReason
(Consumer<ClusterStateChangeReason.Builder> stateChangeReason) The reason for the cluster status change.stateChangeReason
(ClusterStateChangeReason stateChangeReason) The reason for the cluster status change.default ClusterStatus.Builder
timeline
(Consumer<ClusterTimeline.Builder> timeline) A timeline that represents the status of a cluster over the lifetime of the cluster.timeline
(ClusterTimeline timeline) A timeline that represents the status of a cluster over the lifetime 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 Details
-
state
The current state of the cluster.
- Parameters:
state
- The current state of the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The current state of the cluster.
- Parameters:
state
- The current state of the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stateChangeReason
The reason for the cluster status change.
- Parameters:
stateChangeReason
- The reason for the cluster status change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateChangeReason
default ClusterStatus.Builder stateChangeReason(Consumer<ClusterStateChangeReason.Builder> stateChangeReason) The reason for the cluster status change.
This is a convenience method that creates an instance of theClusterStateChangeReason.Builder
avoiding the need to create one manually viaClusterStateChangeReason.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostateChangeReason(ClusterStateChangeReason)
.- Parameters:
stateChangeReason
- a consumer that will call methods onClusterStateChangeReason.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timeline
A timeline that represents the status of a cluster over the lifetime of the cluster.
- Parameters:
timeline
- A timeline that represents the status of a cluster over the lifetime of the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeline
A timeline that represents the status of a cluster over the lifetime of the cluster.
This is a convenience method that creates an instance of theClusterTimeline.Builder
avoiding the need to create one manually viaClusterTimeline.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimeline(ClusterTimeline)
.- Parameters:
timeline
- a consumer that will call methods onClusterTimeline.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errorDetails
A list of tuples that provides information about the errors that caused a cluster to terminate. This structure can contain up to 10 different
ErrorDetail
tuples.- Parameters:
errorDetails
- A list of tuples that provides information about the errors that caused a cluster to terminate. This structure can contain up to 10 differentErrorDetail
tuples.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorDetails
A list of tuples that provides information about the errors that caused a cluster to terminate. This structure can contain up to 10 different
ErrorDetail
tuples.- Parameters:
errorDetails
- A list of tuples that provides information about the errors that caused a cluster to terminate. This structure can contain up to 10 differentErrorDetail
tuples.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorDetails
A list of tuples that provides information about the errors that caused a cluster to terminate. This structure can contain up to 10 different
This is a convenience method that creates an instance of theErrorDetail
tuples.ErrorDetail.Builder
avoiding the need to create one manually viaErrorDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerrorDetails(List<ErrorDetail>)
.- Parameters:
errorDetails
- a consumer that will call methods onErrorDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-