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
Modifier and TypeMethodDescriptiondefault GetInstanceResponse.Builder
instance
(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
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
-
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.Builder
avoiding the need to create one manually viaInstance.builder()
.When the
Consumer
completes,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:
-