@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class JobError extends Object implements Serializable, Cloneable, StructuredPojo
Contains the details about the policy generation error.
Constructor and Description |
---|
JobError() |
Modifier and Type | Method and Description |
---|---|
JobError |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The job error code.
|
String |
getMessage()
Specific information about the error.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCode(String code)
The job error code.
|
void |
setMessage(String message)
Specific information about the error.
|
String |
toString()
Returns a string representation of this object.
|
JobError |
withCode(JobErrorCode code)
The job error code.
|
JobError |
withCode(String code)
The job error code.
|
JobError |
withMessage(String message)
Specific information about the error.
|
public void setCode(String code)
The job error code.
code
- The job error code.JobErrorCode
public String getCode()
The job error code.
JobErrorCode
public JobError withCode(String code)
The job error code.
code
- The job error code.JobErrorCode
public JobError withCode(JobErrorCode code)
The job error code.
code
- The job error code.JobErrorCode
public void setMessage(String message)
Specific information about the error. For example, which service quota was exceeded or which resource was not found.
message
- Specific information about the error. For example, which service quota was exceeded or which resource was
not found.public String getMessage()
Specific information about the error. For example, which service quota was exceeded or which resource was not found.
public JobError withMessage(String message)
Specific information about the error. For example, which service quota was exceeded or which resource was not found.
message
- Specific information about the error. For example, which service quota was exceeded or which resource was
not found.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.