@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssociateResourceError extends Object implements Serializable, Cloneable, StructuredPojo
A representation of a resource association error.
| Constructor and Description |
|---|
AssociateResourceError() |
| Modifier and Type | Method and Description |
|---|---|
AssociateResourceError |
clone() |
boolean |
equals(Object obj) |
String |
getMessage()
The reason why the resource association failed.
|
String |
getReason()
A static error code that's used to classify the type of failure.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setMessage(String message)
The reason why the resource association failed.
|
void |
setReason(String reason)
A static error code that's used to classify the type of failure.
|
String |
toString()
Returns a string representation of this object.
|
AssociateResourceError |
withMessage(String message)
The reason why the resource association failed.
|
AssociateResourceError |
withReason(AssociateResourceErrorReason reason)
A static error code that's used to classify the type of failure.
|
AssociateResourceError |
withReason(String reason)
A static error code that's used to classify the type of failure.
|
public void setMessage(String message)
The reason why the resource association failed.
message - The reason why the resource association failed.public String getMessage()
The reason why the resource association failed.
public AssociateResourceError withMessage(String message)
The reason why the resource association failed.
message - The reason why the resource association failed.public void setReason(String reason)
A static error code that's used to classify the type of failure.
reason - A static error code that's used to classify the type of failure.AssociateResourceErrorReasonpublic String getReason()
A static error code that's used to classify the type of failure.
AssociateResourceErrorReasonpublic AssociateResourceError withReason(String reason)
A static error code that's used to classify the type of failure.
reason - A static error code that's used to classify the type of failure.AssociateResourceErrorReasonpublic AssociateResourceError withReason(AssociateResourceErrorReason reason)
A static error code that's used to classify the type of failure.
reason - A static error code that's used to classify the type of failure.AssociateResourceErrorReasonpublic String toString()
toString in class ObjectObject.toString()public AssociateResourceError clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.