@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImageFailure extends Object implements Serializable, Cloneable, StructuredPojo
An object representing an Amazon ECR image failure.
Constructor and Description |
---|
ImageFailure() |
Modifier and Type | Method and Description |
---|---|
ImageFailure |
clone() |
boolean |
equals(Object obj) |
String |
getFailureCode()
The code associated with the failure.
|
String |
getFailureReason()
The reason for the failure.
|
ImageIdentifier |
getImageId()
The image ID associated with the failure.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFailureCode(ImageFailureCode failureCode)
The code associated with the failure.
|
void |
setFailureCode(String failureCode)
The code associated with the failure.
|
void |
setFailureReason(String failureReason)
The reason for the failure.
|
void |
setImageId(ImageIdentifier imageId)
The image ID associated with the failure.
|
String |
toString()
Returns a string representation of this object.
|
ImageFailure |
withFailureCode(ImageFailureCode failureCode)
The code associated with the failure.
|
ImageFailure |
withFailureCode(String failureCode)
The code associated with the failure.
|
ImageFailure |
withFailureReason(String failureReason)
The reason for the failure.
|
ImageFailure |
withImageId(ImageIdentifier imageId)
The image ID associated with 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(String failureCode)
The code associated with the failure.
failureCode
- The code associated with the failure.ImageFailureCode
public String getFailureCode()
The code associated with the failure.
ImageFailureCode
public ImageFailure withFailureCode(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(String failureReason)
The reason for the failure.
failureReason
- The reason for the failure.public String getFailureReason()
The reason for the failure.
public ImageFailure withFailureReason(String failureReason)
The reason for the failure.
failureReason
- The reason for the failure.public String toString()
toString
in class Object
Object.toString()
public ImageFailure clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.