Class ValidationMessage
- java.lang.Object
-
- com.amazonaws.services.elasticbeanstalk.model.ValidationMessage
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ValidationMessage extends Object implements Serializable, Cloneable
An error or warning for a desired configuration option value.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValidationMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationMessage
clone()
boolean
equals(Object obj)
String
getMessage()
A message describing the error or warning.String
getNamespace()
String
getOptionName()
String
getSeverity()
An indication of the severity of this message:int
hashCode()
void
setMessage(String message)
A message describing the error or warning.void
setNamespace(String namespace)
void
setOptionName(String optionName)
void
setSeverity(ValidationSeverity severity)
An indication of the severity of this message:void
setSeverity(String severity)
An indication of the severity of this message:String
toString()
Returns a string representation of this object; useful for testing and debugging.ValidationMessage
withMessage(String message)
A message describing the error or warning.ValidationMessage
withNamespace(String namespace)
ValidationMessage
withOptionName(String optionName)
ValidationMessage
withSeverity(ValidationSeverity severity)
An indication of the severity of this message:ValidationMessage
withSeverity(String severity)
An indication of the severity of this message:
-
-
-
Method Detail
-
setMessage
public void setMessage(String message)
A message describing the error or warning.
- Parameters:
message
- A message describing the error or warning.
-
getMessage
public String getMessage()
A message describing the error or warning.
- Returns:
- A message describing the error or warning.
-
withMessage
public ValidationMessage withMessage(String message)
A message describing the error or warning.
- Parameters:
message
- A message describing the error or warning.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSeverity
public void setSeverity(String severity)
An indication of the severity of this message:
-
error
: This message indicates that this is not a valid setting for an option. -
warning
: This message is providing information you should take into account.
- Parameters:
severity
- An indication of the severity of this message:-
error
: This message indicates that this is not a valid setting for an option. -
warning
: This message is providing information you should take into account.
-
- See Also:
ValidationSeverity
-
-
getSeverity
public String getSeverity()
An indication of the severity of this message:
-
error
: This message indicates that this is not a valid setting for an option. -
warning
: This message is providing information you should take into account.
- Returns:
- An indication of the severity of this message:
-
error
: This message indicates that this is not a valid setting for an option. -
warning
: This message is providing information you should take into account.
-
- See Also:
ValidationSeverity
-
-
withSeverity
public ValidationMessage withSeverity(String severity)
An indication of the severity of this message:
-
error
: This message indicates that this is not a valid setting for an option. -
warning
: This message is providing information you should take into account.
- Parameters:
severity
- An indication of the severity of this message:-
error
: This message indicates that this is not a valid setting for an option. -
warning
: This message is providing information you should take into account.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ValidationSeverity
-
-
setSeverity
public void setSeverity(ValidationSeverity severity)
An indication of the severity of this message:
-
error
: This message indicates that this is not a valid setting for an option. -
warning
: This message is providing information you should take into account.
- Parameters:
severity
- An indication of the severity of this message:-
error
: This message indicates that this is not a valid setting for an option. -
warning
: This message is providing information you should take into account.
-
- See Also:
ValidationSeverity
-
-
withSeverity
public ValidationMessage withSeverity(ValidationSeverity severity)
An indication of the severity of this message:
-
error
: This message indicates that this is not a valid setting for an option. -
warning
: This message is providing information you should take into account.
- Parameters:
severity
- An indication of the severity of this message:-
error
: This message indicates that this is not a valid setting for an option. -
warning
: This message is providing information you should take into account.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ValidationSeverity
-
-
setNamespace
public void setNamespace(String namespace)
- Parameters:
namespace
-
-
getNamespace
public String getNamespace()
- Returns:
-
withNamespace
public ValidationMessage withNamespace(String namespace)
- Parameters:
namespace
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setOptionName
public void setOptionName(String optionName)
- Parameters:
optionName
-
-
getOptionName
public String getOptionName()
- Returns:
-
withOptionName
public ValidationMessage withOptionName(String optionName)
- Parameters:
optionName
-- 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 ValidationMessage clone()
-
-