Package com.amazonaws.services.ec2.model
Class UnsuccessfulItemError
- java.lang.Object
-
- com.amazonaws.services.ec2.model.UnsuccessfulItemError
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class UnsuccessfulItemError extends Object implements Serializable, Cloneable
Information about the error that occurred. For more information about errors, see Error Codes.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnsuccessfulItemError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnsuccessfulItemError
clone()
boolean
equals(Object obj)
String
getCode()
The error code.String
getMessage()
The error message accompanying the error code.int
hashCode()
void
setCode(String code)
The error code.void
setMessage(String message)
The error message accompanying the error code.String
toString()
Returns a string representation of this object; useful for testing and debugging.UnsuccessfulItemError
withCode(String code)
The error code.UnsuccessfulItemError
withMessage(String message)
The error message accompanying the error code.
-
-
-
Method Detail
-
setCode
public void setCode(String code)
The error code.
- Parameters:
code
- The error code.
-
getCode
public String getCode()
The error code.
- Returns:
- The error code.
-
withCode
public UnsuccessfulItemError withCode(String code)
The error code.
- Parameters:
code
- The error code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMessage
public void setMessage(String message)
The error message accompanying the error code.
- Parameters:
message
- The error message accompanying the error code.
-
getMessage
public String getMessage()
The error message accompanying the error code.
- Returns:
- The error message accompanying the error code.
-
withMessage
public UnsuccessfulItemError withMessage(String message)
The error message accompanying the error code.
- Parameters:
message
- The error message accompanying the error code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public UnsuccessfulItemError clone()
-
-