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.Builderstate(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
copyMethods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods 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.Builderavoiding the need to create one manually viaInstanceState.builder().When the
Consumercompletes,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:
-