@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ValidationError extends Object implements Serializable, Cloneable
The error code and error message that is returned for a parameter or parameter combination that is not valid when a new launch template or new version of a launch template is created.
Constructor and Description |
---|
ValidationError() |
Modifier and Type | Method and Description |
---|---|
ValidationError |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The error code that indicates why the parameter or parameter combination is not valid.
|
String |
getMessage()
The error message that describes why the parameter or parameter combination is not valid.
|
int |
hashCode() |
void |
setCode(String code)
The error code that indicates why the parameter or parameter combination is not valid.
|
void |
setMessage(String message)
The error message that describes why the parameter or parameter combination is not valid.
|
String |
toString()
Returns a string representation of this object.
|
ValidationError |
withCode(String code)
The error code that indicates why the parameter or parameter combination is not valid.
|
ValidationError |
withMessage(String message)
The error message that describes why the parameter or parameter combination is not valid.
|
public void setCode(String code)
The error code that indicates why the parameter or parameter combination is not valid. For more information about error codes, see Error codes.
code
- The error code that indicates why the parameter or parameter combination is not valid. For more
information about error codes, see Error codes.public String getCode()
The error code that indicates why the parameter or parameter combination is not valid. For more information about error codes, see Error codes.
public ValidationError withCode(String code)
The error code that indicates why the parameter or parameter combination is not valid. For more information about error codes, see Error codes.
code
- The error code that indicates why the parameter or parameter combination is not valid. For more
information about error codes, see Error codes.public void setMessage(String message)
The error message that describes why the parameter or parameter combination is not valid. For more information about error messages, see Error codes.
message
- The error message that describes why the parameter or parameter combination is not valid. For more
information about error messages, see Error codes.public String getMessage()
The error message that describes why the parameter or parameter combination is not valid. For more information about error messages, see Error codes.
public ValidationError withMessage(String message)
The error message that describes why the parameter or parameter combination is not valid. For more information about error messages, see Error codes.
message
- The error message that describes why the parameter or parameter combination is not valid. For more
information about error messages, see Error codes.public String toString()
toString
in class Object
Object.toString()
public ValidationError clone()