public static interface InstanceStateChange.Builder extends CopyableBuilder<InstanceStateChange.Builder,InstanceStateChange>
| Modifier and Type | Method and Description |
|---|---|
default InstanceStateChange.Builder |
currentState(Consumer<InstanceState.Builder> currentState)
The current state of the instance.
|
InstanceStateChange.Builder |
currentState(InstanceState currentState)
The current state of the instance.
|
InstanceStateChange.Builder |
instanceId(String instanceId)
The ID of the instance.
|
default InstanceStateChange.Builder |
previousState(Consumer<InstanceState.Builder> previousState)
The previous state of the instance.
|
InstanceStateChange.Builder |
previousState(InstanceState previousState)
The previous state of the instance.
|
copyapply, buildInstanceStateChange.Builder currentState(InstanceState currentState)
The current state of the instance.
currentState - The current state of the instance.default InstanceStateChange.Builder currentState(Consumer<InstanceState.Builder> currentState)
The current state of the instance.
This is a convenience that creates an instance of theInstanceState.Builder avoiding the need to
create one manually via InstanceState.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to currentState(InstanceState).currentState - a consumer that will call methods on InstanceState.BuildercurrentState(InstanceState)InstanceStateChange.Builder instanceId(String instanceId)
The ID of the instance.
instanceId - The ID of the instance.InstanceStateChange.Builder previousState(InstanceState previousState)
The previous state of the instance.
previousState - The previous state of the instance.default InstanceStateChange.Builder previousState(Consumer<InstanceState.Builder> previousState)
The previous state of the instance.
This is a convenience that creates an instance of theInstanceState.Builder avoiding the need to
create one manually via InstanceState.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to previousState(InstanceState).previousState - a consumer that will call methods on InstanceState.BuilderpreviousState(InstanceState)Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.