@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Validator extends Object implements Serializable, Cloneable, StructuredPojo
A validator provides a syntactic or semantic check to ensure the configuration you want to deploy functions as intended. To validate your application configuration data, you provide a schema or a Lambda function that runs against the configuration. The configuration deployment or update can only proceed when the configuration data is valid.
| Constructor and Description |
|---|
Validator() |
| Modifier and Type | Method and Description |
|---|---|
Validator |
clone() |
boolean |
equals(Object obj) |
String |
getContent()
Either the JSON Schema content or an AWS Lambda function name.
|
String |
getType()
AppConfig supports validators of type
JSON_SCHEMA and LAMBDA |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setContent(String content)
Either the JSON Schema content or an AWS Lambda function name.
|
void |
setType(String type)
AppConfig supports validators of type
JSON_SCHEMA and LAMBDA |
String |
toString()
Returns a string representation of this object.
|
Validator |
withContent(String content)
Either the JSON Schema content or an AWS Lambda function name.
|
Validator |
withType(String type)
AppConfig supports validators of type
JSON_SCHEMA and LAMBDA |
Validator |
withType(ValidatorType type)
AppConfig supports validators of type
JSON_SCHEMA and LAMBDA |
public void setType(String type)
AppConfig supports validators of type JSON_SCHEMA and LAMBDA
type - AppConfig supports validators of type JSON_SCHEMA and LAMBDAValidatorTypepublic String getType()
AppConfig supports validators of type JSON_SCHEMA and LAMBDA
JSON_SCHEMA and LAMBDAValidatorTypepublic Validator withType(String type)
AppConfig supports validators of type JSON_SCHEMA and LAMBDA
type - AppConfig supports validators of type JSON_SCHEMA and LAMBDAValidatorTypepublic Validator withType(ValidatorType type)
AppConfig supports validators of type JSON_SCHEMA and LAMBDA
type - AppConfig supports validators of type JSON_SCHEMA and LAMBDAValidatorTypepublic void setContent(String content)
Either the JSON Schema content or an AWS Lambda function name.
content - Either the JSON Schema content or an AWS Lambda function name.public String getContent()
Either the JSON Schema content or an AWS Lambda function name.
public Validator withContent(String content)
Either the JSON Schema content or an AWS Lambda function name.
content - Either the JSON Schema content or an AWS Lambda function name.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2020. All rights reserved.