Interface CreateServiceResponse.Builder
- All Superinterfaces:
 AwsResponse.Builder,Buildable,CopyableBuilder<CreateServiceResponse.Builder,,CreateServiceResponse> SdkBuilder<CreateServiceResponse.Builder,,CreateServiceResponse> SdkPojo,SdkResponse.Builder,ServiceDiscoveryResponse.Builder
- Enclosing class:
 CreateServiceResponse
public static interface CreateServiceResponse.Builder
extends ServiceDiscoveryResponse.Builder, SdkPojo, CopyableBuilder<CreateServiceResponse.Builder,CreateServiceResponse> 
- 
Method Summary
Modifier and TypeMethodDescriptiondefault CreateServiceResponse.Builderservice(Consumer<Service.Builder> service) A complex type that contains information about the new service.A complex type that contains information about the new 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 new service.
- Parameters:
 service- A complex type that contains information about the new 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 new 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:
 
 
 -