@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 that you want to deploy functions as intended. To validate your application configuration data, you provide a schema or an Amazon Web Services 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 the Amazon Resource Name (ARN) of an Lambda function.
|
String |
getType()
AppConfig supports validators of type
JSON_SCHEMA and LAMBDA |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setContent(String content)
Either the JSON Schema content or the Amazon Resource Name (ARN) of an Lambda function.
|
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 the Amazon Resource Name (ARN) of an Lambda function.
|
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 the Amazon Resource Name (ARN) of an Lambda function.
content - Either the JSON Schema content or the Amazon Resource Name (ARN) of an Lambda function.public String getContent()
Either the JSON Schema content or the Amazon Resource Name (ARN) of an Lambda function.
public Validator withContent(String content)
Either the JSON Schema content or the Amazon Resource Name (ARN) of an Lambda function.
content - Either the JSON Schema content or the Amazon Resource Name (ARN) of an Lambda function.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.