@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ValidationResult extends Object implements Serializable, Cloneable, StructuredPojo
The launch profile validation result.
| Constructor and Description |
|---|
ValidationResult() |
| Modifier and Type | Method and Description |
|---|---|
ValidationResult |
clone() |
boolean |
equals(Object obj) |
String |
getState()
The current state.
|
String |
getStatusCode()
The status code.
|
String |
getStatusMessage()
The status message for the validation result.
|
String |
getType()
The type of the validation result.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setState(String state)
The current state.
|
void |
setStatusCode(String statusCode)
The status code.
|
void |
setStatusMessage(String statusMessage)
The status message for the validation result.
|
void |
setType(String type)
The type of the validation result.
|
String |
toString()
Returns a string representation of this object.
|
ValidationResult |
withState(LaunchProfileValidationState state)
The current state.
|
ValidationResult |
withState(String state)
The current state.
|
ValidationResult |
withStatusCode(LaunchProfileValidationStatusCode statusCode)
The status code.
|
ValidationResult |
withStatusCode(String statusCode)
The status code.
|
ValidationResult |
withStatusMessage(String statusMessage)
The status message for the validation result.
|
ValidationResult |
withType(LaunchProfileValidationType type)
The type of the validation result.
|
ValidationResult |
withType(String type)
The type of the validation result.
|
public void setState(String state)
The current state.
state - The current state.LaunchProfileValidationStatepublic String getState()
The current state.
LaunchProfileValidationStatepublic ValidationResult withState(String state)
The current state.
state - The current state.LaunchProfileValidationStatepublic ValidationResult withState(LaunchProfileValidationState state)
The current state.
state - The current state.LaunchProfileValidationStatepublic void setStatusCode(String statusCode)
The status code. This will contain the failure reason if the state is VALIDATION_FAILED.
statusCode - The status code. This will contain the failure reason if the state is VALIDATION_FAILED.LaunchProfileValidationStatusCodepublic String getStatusCode()
The status code. This will contain the failure reason if the state is VALIDATION_FAILED.
VALIDATION_FAILED.LaunchProfileValidationStatusCodepublic ValidationResult withStatusCode(String statusCode)
The status code. This will contain the failure reason if the state is VALIDATION_FAILED.
statusCode - The status code. This will contain the failure reason if the state is VALIDATION_FAILED.LaunchProfileValidationStatusCodepublic ValidationResult withStatusCode(LaunchProfileValidationStatusCode statusCode)
The status code. This will contain the failure reason if the state is VALIDATION_FAILED.
statusCode - The status code. This will contain the failure reason if the state is VALIDATION_FAILED.LaunchProfileValidationStatusCodepublic void setStatusMessage(String statusMessage)
The status message for the validation result.
statusMessage - The status message for the validation result.public String getStatusMessage()
The status message for the validation result.
public ValidationResult withStatusMessage(String statusMessage)
The status message for the validation result.
statusMessage - The status message for the validation result.public void setType(String type)
The type of the validation result.
type - The type of the validation result.LaunchProfileValidationTypepublic String getType()
The type of the validation result.
LaunchProfileValidationTypepublic ValidationResult withType(String type)
The type of the validation result.
type - The type of the validation result.LaunchProfileValidationTypepublic ValidationResult withType(LaunchProfileValidationType type)
The type of the validation result.
type - The type of the validation result.LaunchProfileValidationTypepublic String toString()
toString in class ObjectObject.toString()public ValidationResult clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.