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 Details

    • service

      The full description of your service following the create call.

      A service will return either a capacityProviderStrategy or launchType parameter, but not both, depending where one was specified when it was created.

      If a service is using the ECS deployment controller, the deploymentController and taskSets parameters will not be returned.

      if the service uses the CODE_DEPLOY deployment controller, the deploymentController, taskSets and deployments parameters will be returned, however the deployments 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 or launchType parameter, but not both, depending where one was specified when it was created.

      If a service is using the ECS deployment controller, the deploymentController and taskSets parameters will not be returned.

      if the service uses the CODE_DEPLOY deployment controller, the deploymentController, taskSets and deployments parameters will be returned, however the deployments parameter will be an empty list.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • service

      The full description of your service following the create call.

      A service will return either a capacityProviderStrategy or launchType parameter, but not both, depending where one was specified when it was created.

      If a service is using the ECS deployment controller, the deploymentController and taskSets parameters will not be returned.

      if the service uses the CODE_DEPLOY deployment controller, the deploymentController, taskSets and deployments parameters will be returned, however the deployments parameter will be an empty list.

      This is a convenience method that creates an instance of the Service.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).

      Parameters:
      service - a consumer that will call methods on Service.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: