Class Failure

java.lang.Object
com.amazonaws.services.ecs.model.Failure
All Implemented Interfaces:
Serializable, Cloneable

public class Failure extends Object implements Serializable, Cloneable

A failed resource.

See Also:
  • Constructor Details

    • Failure

      public Failure()
  • Method Details

    • setArn

      public void setArn(String arn)

      The Amazon Resource Name (ARN) of the failed resource.

      Parameters:
      arn - The Amazon Resource Name (ARN) of the failed resource.
    • getArn

      public String getArn()

      The Amazon Resource Name (ARN) of the failed resource.

      Returns:
      The Amazon Resource Name (ARN) of the failed resource.
    • withArn

      public Failure withArn(String arn)

      The Amazon Resource Name (ARN) of the failed resource.

      Parameters:
      arn - The Amazon Resource Name (ARN) of the failed resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setReason

      public void setReason(String reason)

      The reason for the failure.

      Parameters:
      reason - The reason for the failure.
    • getReason

      public String getReason()

      The reason for the failure.

      Returns:
      The reason for the failure.
    • withReason

      public Failure withReason(String reason)

      The reason for the failure.

      Parameters:
      reason - The reason for the failure.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Failure clone()
      Overrides:
      clone in class Object