public class Failure
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A failed resource.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
arn
The Amazon Resource Name (ARN) of the failed resource.
|
private java.lang.String |
reason
The reason for the failure.
|
Constructor and Description |
---|
Failure() |
Modifier and Type | Method and Description |
---|---|
Failure |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The Amazon Resource Name (ARN) of the failed resource.
|
java.lang.String |
getReason()
The reason for the failure.
|
int |
hashCode() |
void |
setArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the failed resource.
|
void |
setReason(java.lang.String reason)
The reason for the failure.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Failure |
withArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the failed resource.
|
Failure |
withReason(java.lang.String reason)
The reason for the failure.
|
private java.lang.String arn
The Amazon Resource Name (ARN) of the failed resource.
private java.lang.String reason
The reason for the failure.
public void setArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the failed resource.
arn
- The Amazon Resource Name (ARN) of the failed resource.public java.lang.String getArn()
The Amazon Resource Name (ARN) of the failed resource.
public Failure withArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the failed resource.
arn
- The Amazon Resource Name (ARN) of the failed resource.public void setReason(java.lang.String reason)
The reason for the failure.
reason
- The reason for the failure.public java.lang.String getReason()
The reason for the failure.
public Failure withReason(java.lang.String reason)
The reason for the failure.
reason
- The reason for the failure.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Failure clone()
clone
in class java.lang.Object