Package com.amazonaws.services.ec2.model
Class BundleTaskError
- java.lang.Object
-
- com.amazonaws.services.ec2.model.BundleTaskError
-
- All Implemented Interfaces:
Serializable,Cloneable
public class BundleTaskError extends Object implements Serializable, Cloneable
Describes an error for BundleInstance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BundleTaskError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BundleTaskErrorclone()booleanequals(Object obj)StringgetCode()The error code.StringgetMessage()The error message.inthashCode()voidsetCode(String code)The error code.voidsetMessage(String message)The error message.StringtoString()Returns a string representation of this object; useful for testing and debugging.BundleTaskErrorwithCode(String code)The error code.BundleTaskErrorwithMessage(String message)The error message.
-
-
-
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 BundleTaskError 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.
- Parameters:
message- The error message.
-
getMessage
public String getMessage()
The error message.
- Returns:
- The error message.
-
withMessage
public BundleTaskError withMessage(String message)
The error message.
- Parameters:
message- The error message.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public BundleTaskError clone()
-
-