@Generated(value="software.amazon.awssdk:codegen") public final class UpdateRouteRequest extends ApiGatewayV2Request implements ToCopyableBuilder<UpdateRouteRequest.Builder,UpdateRouteRequest>
Updates a Route.
| Modifier and Type | Class and Description |
|---|---|
static interface |
UpdateRouteRequest.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.
|
static UpdateRouteRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAuthorizationScopes()
For responses, this returns true if the service returned a value for the AuthorizationScopes property.
|
int |
hashCode() |
boolean |
hasRequestModels()
For responses, this returns true if the service returned a value for the RequestModels property.
|
boolean |
hasRequestParameters()
For responses, this returns true if the service returned a value for the RequestParameters property.
|
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 UpdateRouteRequest.Builder> |
serializableBuilderClass() |
String |
target()
The target for the route.
|
UpdateRouteRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String apiId()
The API identifier.
public final Boolean apiKeyRequired()
Specifies whether an API key is required for the route. Supported only for WebSocket APIs.
public final boolean hasAuthorizationScopes()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> authorizationScopes()
The authorization scopes supported by this route.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAuthorizationScopes() method.
public final 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 final 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 final 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 final String modelSelectionExpression()
The model selection expression for the route. Supported only for WebSocket APIs.
public final String operationName()
The operation name for the route.
public final boolean hasRequestModels()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final 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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRequestModels() method.
public final boolean hasRequestParameters()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final 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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRequestParameters() method.
public final String routeId()
The route ID.
public final String routeKey()
The route key for the route.
public final String routeResponseSelectionExpression()
The route response selection expression for the route. Supported only for WebSocket APIs.
public final String target()
The target for the route.
public UpdateRouteRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UpdateRouteRequest.Builder,UpdateRouteRequest>toBuilder in class ApiGatewayV2Requestpublic static UpdateRouteRequest.Builder builder()
public static Class<? extends UpdateRouteRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2022. All rights reserved.