Package com.amazonaws.services.ecs.model
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Failure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Failureclone()booleanequals(Object obj)StringgetArn()The Amazon Resource Name (ARN) of the failed resource.StringgetReason()The reason for the failure.inthashCode()voidsetArn(String arn)The Amazon Resource Name (ARN) of the failed resource.voidsetReason(String reason)The reason for the failure.StringtoString()Returns a string representation of this object; useful for testing and debugging.FailurewithArn(String arn)The Amazon Resource Name (ARN) of the failed resource.FailurewithReason(String reason)The reason for the failure.
-
-
-
Method Detail
-
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-