@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FailedResource extends Object implements Serializable, Cloneable, StructuredPojo
A resource that failed to be added to or removed from a group.
Constructor and Description |
---|
FailedResource() |
Modifier and Type | Method and Description |
---|---|
FailedResource |
clone() |
boolean |
equals(Object obj) |
String |
getErrorCode()
The error code associated with the failure.
|
String |
getErrorMessage()
The error message text associated with the failure.
|
String |
getResourceArn()
The ARN of the resource that failed to be added or removed.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setErrorCode(String errorCode)
The error code associated with the failure.
|
void |
setErrorMessage(String errorMessage)
The error message text associated with the failure.
|
void |
setResourceArn(String resourceArn)
The ARN of the resource that failed to be added or removed.
|
String |
toString()
Returns a string representation of this object.
|
FailedResource |
withErrorCode(String errorCode)
The error code associated with the failure.
|
FailedResource |
withErrorMessage(String errorMessage)
The error message text associated with the failure.
|
FailedResource |
withResourceArn(String resourceArn)
The ARN of the resource that failed to be added or removed.
|
public void setResourceArn(String resourceArn)
The ARN of the resource that failed to be added or removed.
resourceArn
- The ARN of the resource that failed to be added or removed.public String getResourceArn()
The ARN of the resource that failed to be added or removed.
public FailedResource withResourceArn(String resourceArn)
The ARN of the resource that failed to be added or removed.
resourceArn
- The ARN of the resource that failed to be added or removed.public void setErrorMessage(String errorMessage)
The error message text associated with the failure.
errorMessage
- The error message text associated with the failure.public String getErrorMessage()
The error message text associated with the failure.
public FailedResource withErrorMessage(String errorMessage)
The error message text associated with the failure.
errorMessage
- The error message text associated with the failure.public void setErrorCode(String errorCode)
The error code associated with the failure.
errorCode
- The error code associated with the failure.public String getErrorCode()
The error code associated with the failure.
public FailedResource withErrorCode(String errorCode)
The error code associated with the failure.
errorCode
- The error code associated with the failure.public String toString()
toString
in class Object
Object.toString()
public FailedResource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.