Interface StartCapacityTaskResponse.Builder

    • Method Detail

      • capacityTaskId

        StartCapacityTaskResponse.Builder capacityTaskId​(String capacityTaskId)

        ID of the capacity task that you want to start.

        Parameters:
        capacityTaskId - ID of the capacity task that you want to start.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • outpostId

        StartCapacityTaskResponse.Builder outpostId​(String outpostId)

        ID of the Outpost associated with the capacity task.

        Parameters:
        outpostId - ID of the Outpost associated with the capacity task.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • orderId

        StartCapacityTaskResponse.Builder orderId​(String orderId)

        ID of the Amazon Web Services Outposts order of the host associated with the capacity task.

        Parameters:
        orderId - ID of the Amazon Web Services Outposts order of the host associated with the capacity task.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • requestedInstancePools

        StartCapacityTaskResponse.Builder requestedInstancePools​(Collection<InstanceTypeCapacity> requestedInstancePools)

        List of the instance pools requested in the specified capacity task.

        Parameters:
        requestedInstancePools - List of the instance pools requested in the specified capacity task.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • requestedInstancePools

        StartCapacityTaskResponse.Builder requestedInstancePools​(InstanceTypeCapacity... requestedInstancePools)

        List of the instance pools requested in the specified capacity task.

        Parameters:
        requestedInstancePools - List of the instance pools requested in the specified capacity task.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dryRun

        StartCapacityTaskResponse.Builder dryRun​(Boolean dryRun)

        Results of the dry run showing if the specified capacity task is above or below the available instance capacity.

        Parameters:
        dryRun - Results of the dry run showing if the specified capacity task is above or below the available instance capacity.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • failed

        StartCapacityTaskResponse.Builder failed​(CapacityTaskFailure failed)

        Reason that the specified capacity task failed.

        Parameters:
        failed - Reason that the specified capacity task failed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • creationDate

        StartCapacityTaskResponse.Builder creationDate​(Instant creationDate)

        Date that the specified capacity task was created.

        Parameters:
        creationDate - Date that the specified capacity task was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • completionDate

        StartCapacityTaskResponse.Builder completionDate​(Instant completionDate)

        Date that the specified capacity task ran successfully.

        Parameters:
        completionDate - Date that the specified capacity task ran successfully.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lastModifiedDate

        StartCapacityTaskResponse.Builder lastModifiedDate​(Instant lastModifiedDate)

        Date that the specified capacity task was last modified.

        Parameters:
        lastModifiedDate - Date that the specified capacity task was last modified.
        Returns:
        Returns a reference to this object so that method calls can be chained together.