public static interface GetInstanceStateResponse.Builder extends LightsailResponse.Builder, SdkPojo, CopyableBuilder<GetInstanceStateResponse.Builder,GetInstanceStateResponse>
| Modifier and Type | Method and Description |
|---|---|
default GetInstanceStateResponse.Builder |
state(Consumer<InstanceState.Builder> state)
The state of the instance.
|
GetInstanceStateResponse.Builder |
state(InstanceState state)
The state of the instance.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildGetInstanceStateResponse.Builder state(InstanceState state)
The state of the instance.
state - The state of the instance.default GetInstanceStateResponse.Builder state(Consumer<InstanceState.Builder> state)
The 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 state(InstanceState).
state - a consumer that will call methods on InstanceState.Builderstate(InstanceState)Copyright © 2023. All rights reserved.