Interface GetServiceResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetServiceResponse.Builder,,GetServiceResponse> SdkBuilder<GetServiceResponse.Builder,,GetServiceResponse> SdkPojo,SdkResponse.Builder,ServiceDiscoveryResponse.Builder
- Enclosing class:
GetServiceResponse
@Mutable
@NotThreadSafe
public static interface GetServiceResponse.Builder
extends ServiceDiscoveryResponse.Builder, SdkPojo, CopyableBuilder<GetServiceResponse.Builder,GetServiceResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetServiceResponse.Builderservice(Consumer<Service.Builder> service) A complex type that contains information about the service.A complex type that contains information about the service.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
-
service
A complex type that contains information about the service.
- Parameters:
service- A complex type that contains information about the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
service
A complex type that contains information about the service.
This is a convenience method that creates an instance of theService.Builderavoiding the need to create one manually viaService.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toservice(Service).- Parameters:
service- a consumer that will call methods onService.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-