public class ImageFailure
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
failureCode
The code associated with the failure.
|
private java.lang.String |
failureReason
The reason for the failure.
|
private ImageIdentifier |
imageId
The image ID associated with the failure.
|
Constructor and Description |
---|
ImageFailure() |
Modifier and Type | Method and Description |
---|---|
ImageFailure |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFailureCode()
The code associated with the failure.
|
java.lang.String |
getFailureReason()
The reason for the failure.
|
ImageIdentifier |
getImageId()
The image ID associated with the failure.
|
int |
hashCode() |
void |
setFailureCode(ImageFailureCode failureCode)
The code associated with the failure.
|
void |
setFailureCode(java.lang.String failureCode)
The code associated with the failure.
|
void |
setFailureReason(java.lang.String failureReason)
The reason for the failure.
|
void |
setImageId(ImageIdentifier imageId)
The image ID associated with the failure.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ImageFailure |
withFailureCode(ImageFailureCode failureCode)
The code associated with the failure.
|
ImageFailure |
withFailureCode(java.lang.String failureCode)
The code associated with the failure.
|
ImageFailure |
withFailureReason(java.lang.String failureReason)
The reason for the failure.
|
ImageFailure |
withImageId(ImageIdentifier imageId)
The image ID associated with the failure.
|
private ImageIdentifier imageId
The image ID associated with the failure.
private java.lang.String failureCode
The code associated with the failure.
private java.lang.String failureReason
The reason for the failure.
public void setImageId(ImageIdentifier imageId)
The image ID associated with the failure.
imageId
- The image ID associated with the failure.public ImageIdentifier getImageId()
The image ID associated with the failure.
public ImageFailure withImageId(ImageIdentifier imageId)
The image ID associated with the failure.
imageId
- The image ID associated with the failure.public void setFailureCode(java.lang.String failureCode)
The code associated with the failure.
failureCode
- The code associated with the failure.ImageFailureCode
public java.lang.String getFailureCode()
The code associated with the failure.
ImageFailureCode
public ImageFailure withFailureCode(java.lang.String failureCode)
The code associated with the failure.
failureCode
- The code associated with the failure.ImageFailureCode
public void setFailureCode(ImageFailureCode failureCode)
The code associated with the failure.
failureCode
- The code associated with the failure.ImageFailureCode
public ImageFailure withFailureCode(ImageFailureCode failureCode)
The code associated with the failure.
failureCode
- The code associated with the failure.ImageFailureCode
public void setFailureReason(java.lang.String failureReason)
The reason for the failure.
failureReason
- The reason for the failure.public java.lang.String getFailureReason()
The reason for the failure.
public ImageFailure withFailureReason(java.lang.String failureReason)
The reason for the failure.
failureReason
- 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 ImageFailure clone()
clone
in class java.lang.Object