public static interface InstanceStateChange.Builder extends SdkPojo, 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.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
InstanceStateChange.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 method 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.Builder
currentState(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 method 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.Builder
previousState(InstanceState)
Copyright © 2023. All rights reserved.