Class ExecuteCommandRequest
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.ExecuteCommandRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<ExecuteCommandRequest.Builder,ExecuteCommandRequest>
@Generated("software.amazon.awssdk:codegen")
public final class ExecuteCommandRequest
extends EcsRequest
implements ToCopyableBuilder<ExecuteCommandRequest.Builder,ExecuteCommandRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final Stringcluster()The Amazon Resource Name (ARN) or short name of the cluster the task is running in.final Stringcommand()The command to run on the container.final StringThe name of the container to execute the command on.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final BooleanUse this flag to run your command in interactive mode.static Class<? extends ExecuteCommandRequest.Builder>final Stringtask()The Amazon Resource Name (ARN) or ID of the task the container is part of.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 Amazon Resource Name (ARN) or short name of the cluster the task is running in. If you do not specify a cluster, the default cluster is assumed.
- Returns:
- The Amazon Resource Name (ARN) or short name of the cluster the task is running in. If you do not specify a cluster, the default cluster is assumed.
-
container
The name of the container to execute the command on. A container name only needs to be specified for tasks containing multiple containers.
- Returns:
- The name of the container to execute the command on. A container name only needs to be specified for tasks containing multiple containers.
-
command
The command to run on the container.
- Returns:
- The command to run on the container.
-
interactive
Use this flag to run your command in interactive mode.
- Returns:
- Use this flag to run your command in interactive mode.
-
task
The Amazon Resource Name (ARN) or ID of the task the container is part of.
- Returns:
- The Amazon Resource Name (ARN) or ID of the task the container is part of.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<ExecuteCommandRequest.Builder,ExecuteCommandRequest> - 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
-