@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseError extends Object implements Serializable, Cloneable
Describes the error that's returned when you cannot delete a launch template version.
Constructor and Description |
---|
ResponseError() |
Modifier and Type | Method and Description |
---|---|
ResponseError |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The error code.
|
String |
getMessage()
The error message, if applicable.
|
int |
hashCode() |
void |
setCode(String code)
The error code.
|
void |
setMessage(String message)
The error message, if applicable.
|
String |
toString()
Returns a string representation of this object.
|
ResponseError |
withCode(LaunchTemplateErrorCode code)
The error code.
|
ResponseError |
withCode(String code)
The error code.
|
ResponseError |
withMessage(String message)
The error message, if applicable.
|
public void setCode(String code)
The error code.
code
- The error code.LaunchTemplateErrorCode
public String getCode()
The error code.
LaunchTemplateErrorCode
public ResponseError withCode(String code)
The error code.
code
- The error code.LaunchTemplateErrorCode
public ResponseError withCode(LaunchTemplateErrorCode code)
The error code.
code
- The error code.LaunchTemplateErrorCode
public void setMessage(String message)
The error message, if applicable.
message
- The error message, if applicable.public String getMessage()
The error message, if applicable.
public ResponseError withMessage(String message)
The error message, if applicable.
message
- The error message, if applicable.public String toString()
toString
in class Object
Object.toString()
public ResponseError clone()