Class StopTaskRequest

All Implemented Interfaces:
SdkPojo, ToCopyableBuilder<StopTaskRequest.Builder,StopTaskRequest>

@Generated("software.amazon.awssdk:codegen") public final class StopTaskRequest extends EcsRequest implements ToCopyableBuilder<StopTaskRequest.Builder,StopTaskRequest>
  • Method Details

    • cluster

      public final String cluster()

      The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to stop. If you do not specify a cluster, the default cluster is assumed.

      Returns:
      The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to stop. If you do not specify a cluster, the default cluster is assumed.
    • task

      public final String task()

      Thefull Amazon Resource Name (ARN) of the task.

      Returns:
      Thefull Amazon Resource Name (ARN) of the task.
    • reason

      public final String reason()

      An optional message specified when a task is stopped. For example, if you're using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message appears in subsequent DescribeTasks> API operations on this task.

      Returns:
      An optional message specified when a task is stopped. For example, if you're using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message appears in subsequent DescribeTasks > API operations on this task.
    • toBuilder

      public StopTaskRequest.Builder toBuilder()
      Specified by:
      toBuilder in interface ToCopyableBuilder<StopTaskRequest.Builder,StopTaskRequest>
      Specified by:
      toBuilder in class EcsRequest
    • builder

      public static StopTaskRequest.Builder builder()
    • serializableBuilderClass

      public static Class<? extends StopTaskRequest.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class AwsRequest
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsRequest
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
      Overrides:
      getValueForField in class SdkRequest
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo