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 Failure
clone()
boolean
equals(Object obj)
String
getArn()
The Amazon Resource Name (ARN) of the failed resource.String
getReason()
The reason for the failure.int
hashCode()
void
setArn(String arn)
The Amazon Resource Name (ARN) of the failed resource.void
setReason(String reason)
The reason for the failure.String
toString()
Returns a string representation of this object; useful for testing and debugging.Failure
withArn(String arn)
The Amazon Resource Name (ARN) of the failed resource.Failure
withReason(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-