Interface GetInstanceResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetInstanceResponse.Builder,GetInstanceResponse>,LightsailResponse.Builder,SdkBuilder<GetInstanceResponse.Builder,GetInstanceResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetInstanceResponse
public static interface GetInstanceResponse.Builder extends LightsailResponse.Builder, SdkPojo, CopyableBuilder<GetInstanceResponse.Builder,GetInstanceResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetInstanceResponse.Builderinstance(Consumer<Instance.Builder> instance)An array of key-value pairs containing information about the specified instance.GetInstanceResponse.Builderinstance(Instance instance)An array of key-value pairs containing information about the specified 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
-
instance
GetInstanceResponse.Builder instance(Instance instance)
An array of key-value pairs containing information about the specified instance.
- Parameters:
instance- An array of key-value pairs containing information about the specified instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instance
default GetInstanceResponse.Builder instance(Consumer<Instance.Builder> instance)
An array of key-value pairs containing information about the specified instance.
This is a convenience method that creates an instance of theInstance.Builderavoiding the need to create one manually viaInstance.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstance(Instance).- Parameters:
instance- a consumer that will call methods onInstance.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
instance(Instance)
-
-