Interface GetInstanceResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetInstanceResponse.Builder,,GetInstanceResponse> SdkBuilder<GetInstanceResponse.Builder,,GetInstanceResponse> SdkPojo,SdkResponse.Builder,ServiceDiscoveryResponse.Builder
- Enclosing class:
GetInstanceResponse
@Mutable
@NotThreadSafe
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.resourceOwner(String resourceOwner) The ID of the Amazon Web Services account that created the namespace that contains the service that the instance is associated with.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, sdkFieldNameToField, 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
-
resourceOwner
The ID of the Amazon Web Services account that created the namespace that contains the service that the instance is associated with. If this isn't your account ID, it's the ID of the account that shared the namespace with your account.
- Parameters:
resourceOwner- The ID of the Amazon Web Services account that created the namespace that contains the service that the instance is associated with. If this isn't your account ID, it's the ID of the account that shared the namespace with your account.- 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.
- 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:
-