@Generated(value="software.amazon.awssdk:codegen") public final class RequestValidator extends Object implements StructuredPojo, ToCopyableBuilder<RequestValidator.Builder,RequestValidator>
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.
Modifier and Type | Class and Description |
---|---|
static interface |
RequestValidator.Builder |
Modifier and Type | Method and Description |
---|---|
static RequestValidator.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The identifier of this RequestValidator.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name()
The name of this RequestValidator
|
static Class<? extends RequestValidator.Builder> |
serializableBuilderClass() |
RequestValidator.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Boolean |
validateRequestBody()
A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
|
Boolean |
validateRequestParameters()
A Boolean flag to indicate whether to validate request parameters (
true ) or not (false
). |
copy
public String id()
The identifier of this RequestValidator.
public String name()
The name of this RequestValidator
public Boolean validateRequestBody()
A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
public Boolean validateRequestParameters()
A Boolean flag to indicate whether to validate request parameters (true
) or not (false
).
true
) or not (
false
).public RequestValidator.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<RequestValidator.Builder,RequestValidator>
public static RequestValidator.Builder builder()
public static Class<? extends RequestValidator.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.