public class ErrorDetails
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents information about an error in AWS CodePipeline.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
code
The system ID or error number code of the error.
|
private java.lang.String |
message
The text of the error message.
|
Constructor and Description |
---|
ErrorDetails() |
Modifier and Type | Method and Description |
---|---|
ErrorDetails |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCode()
The system ID or error number code of the error.
|
java.lang.String |
getMessage()
The text of the error message.
|
int |
hashCode() |
void |
setCode(java.lang.String code)
The system ID or error number code of the error.
|
void |
setMessage(java.lang.String message)
The text of the error message.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ErrorDetails |
withCode(java.lang.String code)
The system ID or error number code of the error.
|
ErrorDetails |
withMessage(java.lang.String message)
The text of the error message.
|
private java.lang.String code
The system ID or error number code of the error.
private java.lang.String message
The text of the error message.
public void setCode(java.lang.String code)
The system ID or error number code of the error.
code
- The system ID or error number code of the error.public java.lang.String getCode()
The system ID or error number code of the error.
public ErrorDetails withCode(java.lang.String code)
The system ID or error number code of the error.
code
- The system ID or error number code of the error.public void setMessage(java.lang.String message)
The text of the error message.
message
- The text of the error message.public java.lang.String getMessage()
The text of the error message.
public ErrorDetails withMessage(java.lang.String message)
The text of the error message.
message
- The text of the error message.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 ErrorDetails clone()
clone
in class java.lang.Object