public static interface InstanceStatus.Builder extends 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.
|
copyapply, buildInstanceStatus.Builder state(String state)
The current state of the instance.
state - The current state of the instance.InstanceState,
InstanceStateInstanceStatus.Builder state(InstanceState state)
The current state of the instance.
state - The current state of the instance.InstanceState,
InstanceStateInstanceStatus.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.BuilderstateChangeReason(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.Buildertimeline(InstanceTimeline)Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.