Interface CreateServiceResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateServiceResponse.Builder,CreateServiceResponse>
,EcsResponse.Builder
,SdkBuilder<CreateServiceResponse.Builder,CreateServiceResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- CreateServiceResponse
public static interface CreateServiceResponse.Builder extends EcsResponse.Builder, SdkPojo, CopyableBuilder<CreateServiceResponse.Builder,CreateServiceResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreateServiceResponse.Builder
service(Consumer<Service.Builder> service)
The full description of your service following the create call.CreateServiceResponse.Builder
service(Service service)
The full description of your service following the create call.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ecs.model.EcsResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
service
CreateServiceResponse.Builder service(Service service)
The full description of your service following the create call.
A service will return either a
capacityProviderStrategy
orlaunchType
parameter, but not both, depending where one was specified when it was created.If a service is using the
ECS
deployment controller, thedeploymentController
andtaskSets
parameters will not be returned.if the service uses the
CODE_DEPLOY
deployment controller, thedeploymentController
,taskSets
anddeployments
parameters will be returned, however thedeployments
parameter will be an empty list.- Parameters:
service
- The full description of your service following the create call.A service will return either a
capacityProviderStrategy
orlaunchType
parameter, but not both, depending where one was specified when it was created.If a service is using the
ECS
deployment controller, thedeploymentController
andtaskSets
parameters will not be returned.if the service uses the
CODE_DEPLOY
deployment controller, thedeploymentController
,taskSets
anddeployments
parameters will be returned, however thedeployments
parameter will be an empty list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
service
default CreateServiceResponse.Builder service(Consumer<Service.Builder> service)
The full description of your service following the create call.
A service will return either a
capacityProviderStrategy
orlaunchType
parameter, but not both, depending where one was specified when it was created.If a service is using the
ECS
deployment controller, thedeploymentController
andtaskSets
parameters will not be returned.if the service uses the
This is a convenience method that creates an instance of theCODE_DEPLOY
deployment controller, thedeploymentController
,taskSets
anddeployments
parameters will be returned, however thedeployments
parameter will be an empty list.Service.Builder
avoiding the need to create one manually viaService.builder()
.When the
Consumer
completes,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:
service(Service)
-
-