Class AddRoutesOptions.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.AddRoutesOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AddRoutesOptions>
- Enclosing interface:
AddRoutesOptions
@Stability(Experimental)
public static final class AddRoutesOptions.Builder
extends Object
implements software.amazon.jsii.Builder<AddRoutesOptions>
A builder for
AddRoutesOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthorizationScopes
(List<String> authorizationScopes) Sets the value ofAddRoutesOptions.getAuthorizationScopes()
authorizer
(IHttpRouteAuthorizer authorizer) Sets the value ofAddRoutesOptions.getAuthorizer()
build()
Builds the configured instance.integration
(HttpRouteIntegration integration) Sets the value ofBatchHttpRouteOptions.getIntegration()
methods
(List<? extends HttpMethod> methods) Sets the value ofAddRoutesOptions.getMethods()
Sets the value ofAddRoutesOptions.getPath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
path
Sets the value ofAddRoutesOptions.getPath()
- Parameters:
path
- The path at which all of these routes are configured. This parameter is required.- Returns:
this
-
authorizationScopes
@Stability(Experimental) public AddRoutesOptions.Builder authorizationScopes(List<String> authorizationScopes) Sets the value ofAddRoutesOptions.getAuthorizationScopes()
- Parameters:
authorizationScopes
- The list of OIDC scopes to include in the authorization. These scopes will override the default authorization scopes on the gateway. Set to [] to remove default scopes- Returns:
this
-
authorizer
@Stability(Experimental) public AddRoutesOptions.Builder authorizer(IHttpRouteAuthorizer authorizer) Sets the value ofAddRoutesOptions.getAuthorizer()
- Parameters:
authorizer
- Authorizer to be associated to these routes. Use NoneAuthorizer to remove the default authorizer for the api- Returns:
this
-
methods
@Stability(Experimental) public AddRoutesOptions.Builder methods(List<? extends HttpMethod> methods) Sets the value ofAddRoutesOptions.getMethods()
- Parameters:
methods
- The HTTP methods to be configured.- Returns:
this
-
integration
@Stability(Experimental) public AddRoutesOptions.Builder integration(HttpRouteIntegration integration) Sets the value ofBatchHttpRouteOptions.getIntegration()
- Parameters:
integration
- The integration to be configured on this route. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AddRoutesOptions>
- Returns:
- a new instance of
AddRoutesOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-