@Generated(value="software.amazon.awssdk:codegen") public final class Route extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Route.Builder,Route>
Represents a route.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Route.Builder |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
apiGatewayManaged()
Specifies whether a route is managed by API Gateway.
|
Boolean |
apiKeyRequired()
Specifies whether an API key is required for this route.
|
List<String> |
authorizationScopes()
A list of authorization scopes configured on a 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.
|
static Route.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAuthorizationScopes()
Returns true if the AuthorizationScopes property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasRequestModels()
Returns true if the RequestModels property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasRequestParameters()
Returns true if the RequestParameters property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
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 |
routeId()
The route ID.
|
String |
routeKey()
The route key for the route.
|
String |
routeResponseSelectionExpression()
The route response selection expression for the route.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Route.Builder> |
serializableBuilderClass() |
String |
target()
The target for the route.
|
Route.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic Boolean apiGatewayManaged()
Specifies whether a route is managed by API Gateway. If you created an API using quick create, the $default route is managed by API Gateway. You can't modify the $default route key.
public Boolean apiKeyRequired()
Specifies whether an API key is required for this route. Supported only for WebSocket APIs.
public boolean hasAuthorizationScopes()
public List<String> authorizationScopes()
A list of authorization scopes configured on a route. The scopes are used with a JWT authorizer to authorize the method invocation. The authorization works by matching the route scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any route scope matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the route scope is configured, the client must provide an access token instead of an identity token for authorization purposes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAuthorizationScopes() to see if a value was sent in this field.
public AuthorizationType authorizationType()
The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, 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. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, 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. The authorizer identifier is generated by API Gateway when you created the authorizer.
public String modelSelectionExpression()
The model selection expression for the route. Supported only for WebSocket APIs.
public String operationName()
The operation name for the route.
public boolean hasRequestModels()
public Map<String,String> requestModels()
The request models for the route. Supported only for WebSocket APIs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRequestModels() to see if a value was sent in this field.
public boolean hasRequestParameters()
public Map<String,ParameterConstraints> requestParameters()
The request parameters for the route. Supported only for WebSocket APIs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRequestParameters() to see if a value was sent in this field.
public String routeId()
The route ID.
public String routeKey()
The route key for the route.
public String routeResponseSelectionExpression()
The route response selection expression for the route. Supported only for WebSocket APIs.
public String target()
The target for the route.
public Route.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Route.Builder,Route>public static Route.Builder builder()
public static Class<? extends Route.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.