Class ExecuteCommandResponse

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

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

    • clusterArn

      public final String clusterArn()

      The Amazon Resource Name (ARN) of the cluster.

      Returns:
      The Amazon Resource Name (ARN) of the cluster.
    • containerArn

      public final String containerArn()

      The Amazon Resource Name (ARN) of the container.

      Returns:
      The Amazon Resource Name (ARN) of the container.
    • containerName

      public final String containerName()

      The name of the container.

      Returns:
      The name of the container.
    • interactive

      public final Boolean interactive()

      Determines whether the execute command session is running in interactive mode. Amazon ECS only supports initiating interactive sessions, so you must specify true for this value.

      Returns:
      Determines whether the execute command session is running in interactive mode. Amazon ECS only supports initiating interactive sessions, so you must specify true for this value.
    • session

      public final Session session()

      The details of the SSM session that was created for this instance of execute-command.

      Returns:
      The details of the SSM session that was created for this instance of execute-command.
    • taskArn

      public final String taskArn()

      The Amazon Resource Name (ARN) of the task.

      Returns:
      The Amazon Resource Name (ARN) of the task.
    • toBuilder

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

      public static ExecuteCommandResponse.Builder builder()
    • serializableBuilderClass

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

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

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsResponse
    • 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 SdkResponse
    • 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