Interface GetInstanceResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetInstanceResponse.Builder,,GetInstanceResponse> LightsailResponse.Builder,SdkBuilder<GetInstanceResponse.Builder,,GetInstanceResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetInstanceResponse
@Mutable
@NotThreadSafe
public static interface GetInstanceResponse.Builder
extends LightsailResponse.Builder, SdkPojo, CopyableBuilder<GetInstanceResponse.Builder,GetInstanceResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetInstanceResponse.Builderinstance(Consumer<Instance.Builder> instance) An array of key-value pairs containing information about the specified instance.An array of key-value pairs containing information about the specified 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, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
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:
-