public static interface ClusterStatus.Builder extends SdkPojo, CopyableBuilder<ClusterStatus.Builder,ClusterStatus>
Modifier and Type | Method and Description |
---|---|
ClusterStatus.Builder |
state(ClusterState state)
The current state of the cluster.
|
ClusterStatus.Builder |
state(String state)
The current state of the cluster.
|
ClusterStatus.Builder |
stateChangeReason(ClusterStateChangeReason stateChangeReason)
The reason for the cluster status change.
|
default ClusterStatus.Builder |
stateChangeReason(Consumer<ClusterStateChangeReason.Builder> stateChangeReason)
The reason for the cluster status change.
|
ClusterStatus.Builder |
timeline(ClusterTimeline timeline)
A timeline that represents the status of a cluster over the lifetime of the cluster.
|
default ClusterStatus.Builder |
timeline(Consumer<ClusterTimeline.Builder> timeline)
A timeline that represents the status of a cluster over the lifetime of the cluster.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
ClusterStatus.Builder state(String state)
The current state of the cluster.
state
- The current state of the cluster.ClusterState
,
ClusterState
ClusterStatus.Builder state(ClusterState state)
The current state of the cluster.
state
- The current state of the cluster.ClusterState
,
ClusterState
ClusterStatus.Builder stateChangeReason(ClusterStateChangeReason stateChangeReason)
The reason for the cluster status change.
stateChangeReason
- The reason for the cluster status change.default ClusterStatus.Builder stateChangeReason(Consumer<ClusterStateChangeReason.Builder> stateChangeReason)
The reason for the cluster status change.
This is a convenience that creates an instance of theClusterStateChangeReason.Builder
avoiding the
need to create one manually via ClusterStateChangeReason.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to stateChangeReason(ClusterStateChangeReason)
.stateChangeReason
- a consumer that will call methods on ClusterStateChangeReason.Builder
stateChangeReason(ClusterStateChangeReason)
ClusterStatus.Builder timeline(ClusterTimeline timeline)
A timeline that represents the status of a cluster over the lifetime of the cluster.
timeline
- A timeline that represents the status of a cluster over the lifetime of the cluster.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 that creates an instance of theClusterTimeline.Builder
avoiding the need to
create one manually via ClusterTimeline.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to timeline(ClusterTimeline)
.timeline
- a consumer that will call methods on ClusterTimeline.Builder
timeline(ClusterTimeline)
Copyright © 2021. All rights reserved.