Class StopTaskRequest
java.lang.Object
software.amazon.awssdk.core.SdkRequest
software.amazon.awssdk.awscore.AwsRequest
software.amazon.awssdk.services.ecs.model.EcsRequest
software.amazon.awssdk.services.ecs.model.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>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic StopTaskRequest.Builderbuilder()final Stringcluster()The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to stop.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringreason()An optional message specified when a task is stopped.static Class<? extends StopTaskRequest.Builder>final Stringtask()Thefull Amazon Resource Name (ARN) of the task.final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
Thefull Amazon Resource Name (ARN) of the task.
- Returns:
- Thefull Amazon Resource Name (ARN) of the task.
-
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
- Specified by:
toBuilderin interfaceToCopyableBuilder<StopTaskRequest.Builder,StopTaskRequest> - Specified by:
toBuilderin classEcsRequest
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-