Class Apigatewayv2RouteConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.apigatewayv2_route.Apigatewayv2RouteConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<Apigatewayv2RouteConfig>
- Enclosing interface:
- Apigatewayv2RouteConfig
@Stability(Stable) public static final class Apigatewayv2RouteConfig.Builder extends Object implements software.amazon.jsii.Builder<Apigatewayv2RouteConfig>
A builder forApigatewayv2RouteConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
apiId
@Stability(Stable) public Apigatewayv2RouteConfig.Builder apiId(String apiId)
Sets the value ofApigatewayv2RouteConfig.getApiId()- Parameters:
apiId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/apigatewayv2_route#api_id Apigatewayv2Route#api_id}. This parameter is required.- Returns:
this
-
routeKey
@Stability(Stable) public Apigatewayv2RouteConfig.Builder routeKey(String routeKey)
Sets the value ofApigatewayv2RouteConfig.getRouteKey()- Parameters:
routeKey- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/apigatewayv2_route#route_key Apigatewayv2Route#route_key}. This parameter is required.- Returns:
this
-
apiKeyRequired
@Stability(Stable) public Apigatewayv2RouteConfig.Builder apiKeyRequired(Boolean apiKeyRequired)
Sets the value ofApigatewayv2RouteConfig.getApiKeyRequired()- Parameters:
apiKeyRequired- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/apigatewayv2_route#api_key_required Apigatewayv2Route#api_key_required}.- Returns:
this
-
apiKeyRequired
@Stability(Stable) public Apigatewayv2RouteConfig.Builder apiKeyRequired(com.hashicorp.cdktf.IResolvable apiKeyRequired)
Sets the value ofApigatewayv2RouteConfig.getApiKeyRequired()- Parameters:
apiKeyRequired- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/apigatewayv2_route#api_key_required Apigatewayv2Route#api_key_required}.- Returns:
this
-
authorizationScopes
@Stability(Stable) public Apigatewayv2RouteConfig.Builder authorizationScopes(List<String> authorizationScopes)
Sets the value ofApigatewayv2RouteConfig.getAuthorizationScopes()- Parameters:
authorizationScopes- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/apigatewayv2_route#authorization_scopes Apigatewayv2Route#authorization_scopes}.- Returns:
this
-
authorizationType
@Stability(Stable) public Apigatewayv2RouteConfig.Builder authorizationType(String authorizationType)
Sets the value ofApigatewayv2RouteConfig.getAuthorizationType()- Parameters:
authorizationType- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/apigatewayv2_route#authorization_type Apigatewayv2Route#authorization_type}.- Returns:
this
-
authorizerId
@Stability(Stable) public Apigatewayv2RouteConfig.Builder authorizerId(String authorizerId)
Sets the value ofApigatewayv2RouteConfig.getAuthorizerId()- Parameters:
authorizerId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/apigatewayv2_route#authorizer_id Apigatewayv2Route#authorizer_id}.- Returns:
this
-
id
@Stability(Stable) public Apigatewayv2RouteConfig.Builder id(String id)
Sets the value ofApigatewayv2RouteConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/apigatewayv2_route#id Apigatewayv2Route#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
modelSelectionExpression
@Stability(Stable) public Apigatewayv2RouteConfig.Builder modelSelectionExpression(String modelSelectionExpression)
Sets the value ofApigatewayv2RouteConfig.getModelSelectionExpression()- Parameters:
modelSelectionExpression- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/apigatewayv2_route#model_selection_expression Apigatewayv2Route#model_selection_expression}.- Returns:
this
-
operationName
@Stability(Stable) public Apigatewayv2RouteConfig.Builder operationName(String operationName)
Sets the value ofApigatewayv2RouteConfig.getOperationName()- Parameters:
operationName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/apigatewayv2_route#operation_name Apigatewayv2Route#operation_name}.- Returns:
this
-
requestModels
@Stability(Stable) public Apigatewayv2RouteConfig.Builder requestModels(Map<String,String> requestModels)
Sets the value ofApigatewayv2RouteConfig.getRequestModels()- Parameters:
requestModels- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/apigatewayv2_route#request_models Apigatewayv2Route#request_models}.- Returns:
this
-
requestParameter
@Stability(Stable) public Apigatewayv2RouteConfig.Builder requestParameter(com.hashicorp.cdktf.IResolvable requestParameter)
Sets the value ofApigatewayv2RouteConfig.getRequestParameter()- Parameters:
requestParameter- request_parameter block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/apigatewayv2_route#request_parameter Apigatewayv2Route#request_parameter}- Returns:
this
-
requestParameter
@Stability(Stable) public Apigatewayv2RouteConfig.Builder requestParameter(List<? extends Apigatewayv2RouteRequestParameter> requestParameter)
Sets the value ofApigatewayv2RouteConfig.getRequestParameter()- Parameters:
requestParameter- request_parameter block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/apigatewayv2_route#request_parameter Apigatewayv2Route#request_parameter}- Returns:
this
-
routeResponseSelectionExpression
@Stability(Stable) public Apigatewayv2RouteConfig.Builder routeResponseSelectionExpression(String routeResponseSelectionExpression)
Sets the value ofApigatewayv2RouteConfig.getRouteResponseSelectionExpression()- Parameters:
routeResponseSelectionExpression- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/apigatewayv2_route#route_response_selection_expression Apigatewayv2Route#route_response_selection_expression}.- Returns:
this
-
target
@Stability(Stable) public Apigatewayv2RouteConfig.Builder target(String target)
Sets the value ofApigatewayv2RouteConfig.getTarget()- Parameters:
target- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/apigatewayv2_route#target Apigatewayv2Route#target}.- Returns:
this
-
connection
@Stability(Experimental) public Apigatewayv2RouteConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public Apigatewayv2RouteConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public Apigatewayv2RouteConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public Apigatewayv2RouteConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public Apigatewayv2RouteConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public Apigatewayv2RouteConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public Apigatewayv2RouteConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public Apigatewayv2RouteConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public Apigatewayv2RouteConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public Apigatewayv2RouteConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Apigatewayv2RouteConfig>- Returns:
- a new instance of
Apigatewayv2RouteConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-