Interface ServiceJobPreemptedAttempt.Builder

  • Method Details

    • serviceResourceId

      ServiceJobPreemptedAttempt.Builder serviceResourceId(ServiceResourceId serviceResourceId)

      The service resource identifier associated with the service job attempt.

      Parameters:
      serviceResourceId - The service resource identifier associated with the service job attempt.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serviceResourceId

      default ServiceJobPreemptedAttempt.Builder serviceResourceId(Consumer<ServiceResourceId.Builder> serviceResourceId)

      The service resource identifier associated with the service job attempt.

      This is a convenience method that creates an instance of the ServiceResourceId.Builder avoiding the need to create one manually via ServiceResourceId.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to serviceResourceId(ServiceResourceId).

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

      The Unix timestamp (in milliseconds) for when the service job attempt was started.

      Parameters:
      startedAt - The Unix timestamp (in milliseconds) for when the service job attempt was started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • stoppedAt

      The Unix timestamp (in milliseconds) for when the service job attempt stopped running.

      Parameters:
      stoppedAt - The Unix timestamp (in milliseconds) for when the service job attempt stopped running.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statusReason

      ServiceJobPreemptedAttempt.Builder statusReason(String statusReason)

      A string that provides additional details for the current status of the service job attempt.

      Parameters:
      statusReason - A string that provides additional details for the current status of the service job attempt.
      Returns:
      Returns a reference to this object so that method calls can be chained together.