@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 LAMBDA
ValidatorType
public String getType()
AppConfig supports validators of type JSON_SCHEMA
and LAMBDA
JSON_SCHEMA
and LAMBDA
ValidatorType
public Validator withType(String type)
AppConfig supports validators of type JSON_SCHEMA
and LAMBDA
type
- AppConfig supports validators of type JSON_SCHEMA
and LAMBDA
ValidatorType
public Validator withType(ValidatorType type)
AppConfig supports validators of type JSON_SCHEMA
and LAMBDA
type
- AppConfig supports validators of type JSON_SCHEMA
and LAMBDA
ValidatorType
public 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 Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.