@Generated(value="software.amazon.awssdk:codegen") public final class CreateRouteRequest extends ApiGatewayV2Request implements ToCopyableBuilder<CreateRouteRequest.Builder,CreateRouteRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateRouteRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
apiId()
The API identifier.
|
Boolean |
apiKeyRequired()
Specifies whether an API key is required for the route.
|
List<String> |
authorizationScopes()
The authorization scopes supported by this route.
|
AuthorizationType |
authorizationType()
The authorization type for the route.
|
String |
authorizationTypeAsString()
The authorization type for the route.
|
String |
authorizerId()
The identifier of the Authorizer resource to be associated with this route, if the authorizationType is CUSTOM .
|
static CreateRouteRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
modelSelectionExpression()
The model selection expression for the route.
|
String |
operationName()
The operation name for the route.
|
Map<String,String> |
requestModels()
The request models for the route.
|
Map<String,ParameterConstraints> |
requestParameters()
The request parameters for the route.
|
String |
routeKey()
The route key for the route.
|
String |
routeResponseSelectionExpression()
The route response selection expression for the route.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateRouteRequest.Builder> |
serializableBuilderClass() |
String |
target()
The target for the route.
|
CreateRouteRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String apiId()
The API identifier.
public Boolean apiKeyRequired()
Specifies whether an API key is required for the route.
public List<String> authorizationScopes()
The authorization scopes supported by this route.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public AuthorizationType authorizationType()
The authorization type for the route. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.
If the service returns an enum value that is not available in the current SDK version, authorizationType
will return AuthorizationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from authorizationTypeAsString().
AuthorizationTypepublic String authorizationTypeAsString()
The authorization type for the route. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.
If the service returns an enum value that is not available in the current SDK version, authorizationType
will return AuthorizationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from authorizationTypeAsString().
AuthorizationTypepublic String authorizerId()
The identifier of the Authorizer resource to be associated with this route, if the authorizationType is CUSTOM . The authorizer identifier is generated by API Gateway when you created the authorizer.
public String modelSelectionExpression()
The model selection expression for the route.
public String operationName()
The operation name for the route.
public Map<String,String> requestModels()
The request models for the route.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Map<String,ParameterConstraints> requestParameters()
The request parameters for the route.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String routeKey()
The route key for the route.
public String routeResponseSelectionExpression()
The route response selection expression for the route.
public String target()
The target for the route.
public CreateRouteRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateRouteRequest.Builder,CreateRouteRequest>toBuilder in class ApiGatewayV2Requestpublic static CreateRouteRequest.Builder builder()
public static Class<? extends CreateRouteRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2019. All rights reserved.