Interface CreateRouteRequest.Builder
- All Superinterfaces:
- ApiGatewayV2Request.Builder,- AwsRequest.Builder,- Buildable,- CopyableBuilder<CreateRouteRequest.Builder,,- CreateRouteRequest> - SdkBuilder<CreateRouteRequest.Builder,,- CreateRouteRequest> - SdkPojo,- SdkRequest.Builder
- Enclosing class:
- CreateRouteRequest
- 
Method SummaryModifier and TypeMethodDescriptionThe API identifier.apiKeyRequired(Boolean apiKeyRequired) Specifies whether an API key is required for the route.authorizationScopes(String... authorizationScopes) The authorization scopes supported by this route.authorizationScopes(Collection<String> authorizationScopes) The authorization scopes supported by this route.authorizationType(String authorizationType) The authorization type for the route.authorizationType(AuthorizationType authorizationType) The authorization type for the route.authorizerId(String authorizerId) The identifier of the Authorizer resource to be associated with this route.modelSelectionExpression(String modelSelectionExpression) The model selection expression for the route.operationName(String operationName) The operation name for the route.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.requestModels(Map<String, String> requestModels) The request models for the route.requestParameters(Map<String, ParameterConstraints> requestParameters) The request parameters for the route.The route key for the route.routeResponseSelectionExpression(String routeResponseSelectionExpression) The route response selection expression for the route.The target for the route.Methods inherited from interface software.amazon.awssdk.services.apigatewayv2.model.ApiGatewayV2Request.BuilderbuildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.BuilderoverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
apiIdThe API identifier. - Parameters:
- apiId- The API identifier.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
apiKeyRequiredSpecifies whether an API key is required for the route. Supported only for WebSocket APIs. - Parameters:
- apiKeyRequired- Specifies whether an API key is required for the route. Supported only for WebSocket APIs.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
authorizationScopesThe authorization scopes supported by this route. - Parameters:
- authorizationScopes- The authorization scopes supported by this route.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
authorizationScopesThe authorization scopes supported by this route. - Parameters:
- authorizationScopes- The authorization scopes supported by this route.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
authorizationTypeThe 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. - Parameters:
- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
authorizationTypeThe 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. - Parameters:
- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
authorizerIdThe identifier of the Authorizer resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer. - Parameters:
- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
modelSelectionExpressionThe model selection expression for the route. Supported only for WebSocket APIs. - Parameters:
- modelSelectionExpression- The model selection expression for the route. Supported only for WebSocket APIs.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
operationNameThe operation name for the route. - Parameters:
- operationName- The operation name for the route.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
requestModelsThe request models for the route. Supported only for WebSocket APIs. - Parameters:
- requestModels- The request models for the route. Supported only for WebSocket APIs.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
requestParametersThe request parameters for the route. Supported only for WebSocket APIs. - Parameters:
- requestParameters- The request parameters for the route. Supported only for WebSocket APIs.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
routeKeyThe route key for the route. - Parameters:
- routeKey- The route key for the route.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
routeResponseSelectionExpressionCreateRouteRequest.Builder routeResponseSelectionExpression(String routeResponseSelectionExpression) The route response selection expression for the route. Supported only for WebSocket APIs. - Parameters:
- routeResponseSelectionExpression- The route response selection expression for the route. Supported only for WebSocket APIs.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
targetThe target for the route. - Parameters:
- target- The target for the route.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
overrideConfigurationCreateRouteRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- overrideConfiguration- The override configuration.
- Returns:
- This object for method chaining.
 
- 
overrideConfigurationCreateRouteRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- builderConsumer- A- Consumerto which an empty- AwsRequestOverrideConfiguration.Builderwill be given.
- Returns:
- This object for method chaining.
 
 
-