Interface GetInstanceStateResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetInstanceStateResponse.Builder,
,GetInstanceStateResponse> LightsailResponse.Builder
,SdkBuilder<GetInstanceStateResponse.Builder,
,GetInstanceStateResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetInstanceStateResponse
public static interface GetInstanceStateResponse.Builder
extends LightsailResponse.Builder, SdkPojo, CopyableBuilder<GetInstanceStateResponse.Builder,GetInstanceStateResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetInstanceStateResponse.Builder
state
(Consumer<InstanceState.Builder> state) The state of the instance.state
(InstanceState state) The state of the instance.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
state
The state of the instance.
- Parameters:
state
- The state of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaInstanceState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostate(InstanceState)
.- Parameters:
state
- a consumer that will call methods onInstanceState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-