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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetInstanceStateResponse.Builderstate(Consumer<InstanceState.Builder> state)The state of the instance.GetInstanceStateResponse.Builderstate(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 Detail
-
state
GetInstanceStateResponse.Builder state(InstanceState 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
default GetInstanceStateResponse.Builder state(Consumer<InstanceState.Builder> 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:
state(InstanceState)
-
-