public static interface GetServiceResponse.Builder extends ServiceDiscoveryResponse.Builder, CopyableBuilder<GetServiceResponse.Builder,GetServiceResponse>
Modifier and Type | Method and Description |
---|---|
default GetServiceResponse.Builder |
service(Consumer<Service.Builder> service)
A complex type that contains information about the service.
|
GetServiceResponse.Builder |
service(Service service)
A complex type that contains information about the service.
|
build
copy
apply, build
GetServiceResponse.Builder service(Service service)
A complex type that contains information about the service.
service
- A complex type that contains information about the service.default GetServiceResponse.Builder service(Consumer<Service.Builder> service)
A complex type that contains information about the service.
This is a convenience that creates an instance of theService.Builder
avoiding the need to create one
manually via Service.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to service(Service)
.service
- a consumer that will call methods on Service.Builder
service(Service)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.