Interface GetInstanceResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetInstanceResponse.Builder,,GetInstanceResponse> SdkBuilder<GetInstanceResponse.Builder,,GetInstanceResponse> SdkPojo,SdkResponse.Builder,ServiceDiscoveryResponse.Builder
- Enclosing class:
GetInstanceResponse
public static interface GetInstanceResponse.Builder
extends ServiceDiscoveryResponse.Builder, SdkPojo, CopyableBuilder<GetInstanceResponse.Builder,GetInstanceResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetInstanceResponse.Builderinstance(Consumer<Instance.Builder> instance) A complex type that contains information about a specified instance.A complex type that contains information about a specified instance.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods 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, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.servicediscovery.model.ServiceDiscoveryResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
instance
A complex type that contains information about a specified instance.
- Parameters:
instance- A complex type that contains information about a specified instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instance
A complex type that contains information about a 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:
-