Interface ClusterStatus.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ClusterStatus.Builder,ClusterStatus>,SdkBuilder<ClusterStatus.Builder,ClusterStatus>,SdkPojo
- Enclosing class:
- ClusterStatus
public static interface ClusterStatus.Builder extends SdkPojo, CopyableBuilder<ClusterStatus.Builder,ClusterStatus>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ClusterStatus.BuildererrorDetails(Collection<ErrorDetail> errorDetails)A list of tuples that provides information about the errors that caused a cluster to terminate.ClusterStatus.BuildererrorDetails(Consumer<ErrorDetail.Builder>... errorDetails)A list of tuples that provides information about the errors that caused a cluster to terminate.ClusterStatus.BuildererrorDetails(ErrorDetail... errorDetails)A list of tuples that provides information about the errors that caused a cluster to terminate.ClusterStatus.Builderstate(String state)The current state of the cluster.ClusterStatus.Builderstate(ClusterState state)The current state of the cluster.default ClusterStatus.BuilderstateChangeReason(Consumer<ClusterStateChangeReason.Builder> stateChangeReason)The reason for the cluster status change.ClusterStatus.BuilderstateChangeReason(ClusterStateChangeReason stateChangeReason)The reason for the cluster status change.default ClusterStatus.Buildertimeline(Consumer<ClusterTimeline.Builder> timeline)A timeline that represents the status of a cluster over the lifetime of the cluster.ClusterStatus.Buildertimeline(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
state
ClusterStatus.Builder state(String 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:
ClusterState,ClusterState
-
state
ClusterStatus.Builder state(ClusterState 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:
ClusterState,ClusterState
-
stateChangeReason
ClusterStatus.Builder stateChangeReason(ClusterStateChangeReason 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.Builderavoiding the need to create one manually viaClusterStateChangeReason.builder().When the
Consumercompletes,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:
stateChangeReason(ClusterStateChangeReason)
-
timeline
ClusterStatus.Builder timeline(ClusterTimeline 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
default ClusterStatus.Builder timeline(Consumer<ClusterTimeline.Builder> 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.Builderavoiding the need to create one manually viaClusterTimeline.builder().When the
Consumercompletes,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:
timeline(ClusterTimeline)
-
errorDetails
ClusterStatus.Builder errorDetails(Collection<ErrorDetail> 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
ErrorDetailtuples.- 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 differentErrorDetailtuples.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorDetails
ClusterStatus.Builder errorDetails(ErrorDetail... 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
ErrorDetailtuples.- 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 differentErrorDetailtuples.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorDetails
ClusterStatus.Builder errorDetails(Consumer<ErrorDetail.Builder>... 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 theErrorDetailtuples.ErrorDetail.Builderavoiding the need to create one manually viaErrorDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#errorDetails(List.) - 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:
#errorDetails(java.util.Collection)
-
-