public static interface InstanceStatus.Builder extends SdkPojo, CopyableBuilder<InstanceStatus.Builder,InstanceStatus>
Modifier and Type | Method and Description |
---|---|
InstanceStatus.Builder |
state(InstanceState state)
The current state of the instance.
|
InstanceStatus.Builder |
state(String state)
The current state of the instance.
|
default InstanceStatus.Builder |
stateChangeReason(Consumer<InstanceStateChangeReason.Builder> stateChangeReason)
The details of the status change reason for the instance.
|
InstanceStatus.Builder |
stateChangeReason(InstanceStateChangeReason stateChangeReason)
The details of the status change reason for the instance.
|
default InstanceStatus.Builder |
timeline(Consumer<InstanceTimeline.Builder> timeline)
The timeline of the instance status over time.
|
InstanceStatus.Builder |
timeline(InstanceTimeline timeline)
The timeline of the instance status over time.
|
copy
applyMutation, build
InstanceStatus.Builder state(String state)
The current state of the instance.
state
- The current state of the instance.InstanceState
,
InstanceState
InstanceStatus.Builder state(InstanceState state)
The current state of the instance.
state
- The current state of the instance.InstanceState
,
InstanceState
InstanceStatus.Builder stateChangeReason(InstanceStateChangeReason stateChangeReason)
The details of the status change reason for the instance.
stateChangeReason
- The details of the status change reason for the instance.default InstanceStatus.Builder stateChangeReason(Consumer<InstanceStateChangeReason.Builder> stateChangeReason)
The details of the status change reason for the instance.
This is a convenience that creates an instance of theInstanceStateChangeReason.Builder
avoiding the
need to create one manually via InstanceStateChangeReason.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to stateChangeReason(InstanceStateChangeReason)
.stateChangeReason
- a consumer that will call methods on InstanceStateChangeReason.Builder
stateChangeReason(InstanceStateChangeReason)
InstanceStatus.Builder timeline(InstanceTimeline timeline)
The timeline of the instance status over time.
timeline
- The timeline of the instance status over time.default InstanceStatus.Builder timeline(Consumer<InstanceTimeline.Builder> timeline)
The timeline of the instance status over time.
This is a convenience that creates an instance of theInstanceTimeline.Builder
avoiding the need to
create one manually via InstanceTimeline.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to timeline(InstanceTimeline)
.timeline
- a consumer that will call methods on InstanceTimeline.Builder
timeline(InstanceTimeline)
Copyright © 2019. All rights reserved.