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.Builder
instance
(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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
Methods 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.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:
-