@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RequestValidator extends Object implements Serializable, Cloneable, StructuredPojo
A set of validation rules for incoming Method requests.
In Swagger, a RequestValidator of an API is defined by the x-amazon-apigateway-request-validators.requestValidator object. It the referenced using the x-amazon-apigateway-request-validator property.
Constructor and Description |
---|
RequestValidator() |
Modifier and Type | Method and Description |
---|---|
RequestValidator |
clone() |
boolean |
equals(Object obj) |
String |
getId()
The identifier of this RequestValidator.
|
String |
getName()
The name of this RequestValidator
|
Boolean |
getValidateRequestBody()
A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
|
Boolean |
getValidateRequestParameters()
A Boolean flag to indicate whether to validate request parameters (
true ) or not (false
). |
int |
hashCode() |
Boolean |
isValidateRequestBody()
A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
|
Boolean |
isValidateRequestParameters()
A Boolean flag to indicate whether to validate request parameters (
true ) or not (false
). |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setId(String id)
The identifier of this RequestValidator.
|
void |
setName(String name)
The name of this RequestValidator
|
void |
setValidateRequestBody(Boolean validateRequestBody)
A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
|
void |
setValidateRequestParameters(Boolean validateRequestParameters)
A Boolean flag to indicate whether to validate request parameters (
true ) or not (false
). |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
RequestValidator |
withId(String id)
The identifier of this RequestValidator.
|
RequestValidator |
withName(String name)
The name of this RequestValidator
|
RequestValidator |
withValidateRequestBody(Boolean validateRequestBody)
A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
|
RequestValidator |
withValidateRequestParameters(Boolean validateRequestParameters)
A Boolean flag to indicate whether to validate request parameters (
true ) or not (false
). |
public void setId(String id)
The identifier of this RequestValidator.
id
- The identifier of this RequestValidator.public String getId()
The identifier of this RequestValidator.
public RequestValidator withId(String id)
The identifier of this RequestValidator.
id
- The identifier of this RequestValidator.public void setName(String name)
The name of this RequestValidator
name
- The name of this RequestValidatorpublic String getName()
The name of this RequestValidator
public RequestValidator withName(String name)
The name of this RequestValidator
name
- The name of this RequestValidatorpublic void setValidateRequestBody(Boolean validateRequestBody)
A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
validateRequestBody
- A Boolean flag to indicate whether to validate a request body according to the configured Model
schema.public Boolean getValidateRequestBody()
A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
public RequestValidator withValidateRequestBody(Boolean validateRequestBody)
A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
validateRequestBody
- A Boolean flag to indicate whether to validate a request body according to the configured Model
schema.public Boolean isValidateRequestBody()
A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
public void setValidateRequestParameters(Boolean validateRequestParameters)
A Boolean flag to indicate whether to validate request parameters (true
) or not (false
).
validateRequestParameters
- A Boolean flag to indicate whether to validate request parameters (true
) or not (
false
).public Boolean getValidateRequestParameters()
A Boolean flag to indicate whether to validate request parameters (true
) or not (false
).
true
) or not (
false
).public RequestValidator withValidateRequestParameters(Boolean validateRequestParameters)
A Boolean flag to indicate whether to validate request parameters (true
) or not (false
).
validateRequestParameters
- A Boolean flag to indicate whether to validate request parameters (true
) or not (
false
).public Boolean isValidateRequestParameters()
A Boolean flag to indicate whether to validate request parameters (true
) or not (false
).
true
) or not (
false
).public String toString()
toString
in class Object
Object.toString()
public RequestValidator clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.