Class AppEngineFlexibleAppVersionConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.app_engine_flexible_app_version.AppEngineFlexibleAppVersionConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AppEngineFlexibleAppVersionConfig>
- Enclosing interface:
- AppEngineFlexibleAppVersionConfig
@Stability(Stable) public static final class AppEngineFlexibleAppVersionConfig.Builder extends Object implements software.amazon.jsii.Builder<AppEngineFlexibleAppVersionConfig>
A builder forAppEngineFlexibleAppVersionConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
livenessCheck
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder livenessCheck(AppEngineFlexibleAppVersionLivenessCheck livenessCheck)
Sets the value ofAppEngineFlexibleAppVersionConfig.getLivenessCheck()- Parameters:
livenessCheck- liveness_check block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#liveness_check AppEngineFlexibleAppVersion#liveness_check}- Returns:
this
-
readinessCheck
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder readinessCheck(AppEngineFlexibleAppVersionReadinessCheck readinessCheck)
Sets the value ofAppEngineFlexibleAppVersionConfig.getReadinessCheck()- Parameters:
readinessCheck- readiness_check block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#readiness_check AppEngineFlexibleAppVersion#readiness_check}- Returns:
this
-
runtime
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder runtime(String runtime)
Sets the value ofAppEngineFlexibleAppVersionConfig.getRuntime()- Parameters:
runtime- Desired runtime. Example python27. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#runtime AppEngineFlexibleAppVersion#runtime}- Returns:
this
-
service
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder service(String service)
Sets the value ofAppEngineFlexibleAppVersionConfig.getService()- Parameters:
service- AppEngine service resource. Can contain numbers, letters, and hyphens. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#service AppEngineFlexibleAppVersion#service}- Returns:
this
-
apiConfig
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder apiConfig(AppEngineFlexibleAppVersionApiConfig apiConfig)
Sets the value ofAppEngineFlexibleAppVersionConfig.getApiConfig()- Parameters:
apiConfig- api_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#api_config AppEngineFlexibleAppVersion#api_config}- Returns:
this
-
automaticScaling
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder automaticScaling(AppEngineFlexibleAppVersionAutomaticScaling automaticScaling)
Sets the value ofAppEngineFlexibleAppVersionConfig.getAutomaticScaling()- Parameters:
automaticScaling- automatic_scaling block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#automatic_scaling AppEngineFlexibleAppVersion#automatic_scaling}- Returns:
this
-
betaSettings
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder betaSettings(Map<String,String> betaSettings)
Sets the value ofAppEngineFlexibleAppVersionConfig.getBetaSettings()- Parameters:
betaSettings- Metadata settings that are supplied to this version to enable beta runtime features. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#beta_settings AppEngineFlexibleAppVersion#beta_settings}- Returns:
this
-
defaultExpiration
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder defaultExpiration(String defaultExpiration)
Sets the value ofAppEngineFlexibleAppVersionConfig.getDefaultExpiration()- Parameters:
defaultExpiration- Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler does not specify its own expiration time. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#default_expiration AppEngineFlexibleAppVersion#default_expiration}- Returns:
this
-
deleteServiceOnDestroy
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder deleteServiceOnDestroy(Boolean deleteServiceOnDestroy)
Sets the value ofAppEngineFlexibleAppVersionConfig.getDeleteServiceOnDestroy()- Parameters:
deleteServiceOnDestroy- If set to 'true', the service will be deleted if it is the last version. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#delete_service_on_destroy AppEngineFlexibleAppVersion#delete_service_on_destroy}- Returns:
this
-
deleteServiceOnDestroy
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder deleteServiceOnDestroy(com.hashicorp.cdktf.IResolvable deleteServiceOnDestroy)
Sets the value ofAppEngineFlexibleAppVersionConfig.getDeleteServiceOnDestroy()- Parameters:
deleteServiceOnDestroy- If set to 'true', the service will be deleted if it is the last version. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#delete_service_on_destroy AppEngineFlexibleAppVersion#delete_service_on_destroy}- Returns:
this
-
deployment
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder deployment(AppEngineFlexibleAppVersionDeployment deployment)
Sets the value ofAppEngineFlexibleAppVersionConfig.getDeployment()- Parameters:
deployment- deployment block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#deployment AppEngineFlexibleAppVersion#deployment}- Returns:
this
-
endpointsApiService
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder endpointsApiService(AppEngineFlexibleAppVersionEndpointsApiService endpointsApiService)
Sets the value ofAppEngineFlexibleAppVersionConfig.getEndpointsApiService()- Parameters:
endpointsApiService- endpoints_api_service block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#endpoints_api_service AppEngineFlexibleAppVersion#endpoints_api_service}- Returns:
this
-
entrypoint
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder entrypoint(AppEngineFlexibleAppVersionEntrypoint entrypoint)
Sets the value ofAppEngineFlexibleAppVersionConfig.getEntrypoint()- Parameters:
entrypoint- entrypoint block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#entrypoint AppEngineFlexibleAppVersion#entrypoint}- Returns:
this
-
envVariables
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder envVariables(Map<String,String> envVariables)
Sets the value ofAppEngineFlexibleAppVersionConfig.getEnvVariables()- Parameters:
envVariables- Environment variables available to the application. As these are not returned in the API request, Terraform will not detect any changes made outside of the Terraform config. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#env_variables AppEngineFlexibleAppVersion#env_variables}- Returns:
this
-
flexibleRuntimeSettings
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder flexibleRuntimeSettings(AppEngineFlexibleAppVersionFlexibleRuntimeSettings flexibleRuntimeSettings)
Sets the value ofAppEngineFlexibleAppVersionConfig.getFlexibleRuntimeSettings()- Parameters:
flexibleRuntimeSettings- flexible_runtime_settings block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#flexible_runtime_settings AppEngineFlexibleAppVersion#flexible_runtime_settings}- Returns:
this
-
handlers
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder handlers(com.hashicorp.cdktf.IResolvable handlers)
Sets the value ofAppEngineFlexibleAppVersionConfig.getHandlers()- Parameters:
handlers- handlers block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#handlers AppEngineFlexibleAppVersion#handlers}- Returns:
this
-
handlers
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder handlers(List<? extends AppEngineFlexibleAppVersionHandlers> handlers)
Sets the value ofAppEngineFlexibleAppVersionConfig.getHandlers()- Parameters:
handlers- handlers block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#handlers AppEngineFlexibleAppVersion#handlers}- Returns:
this
-
id
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder id(String id)
Sets the value ofAppEngineFlexibleAppVersionConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#id AppEngineFlexibleAppVersion#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
-
inboundServices
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder inboundServices(List<String> inboundServices)
Sets the value ofAppEngineFlexibleAppVersionConfig.getInboundServices()- Parameters:
inboundServices- A list of the types of messages that this application is able to receive. Possible values: ["INBOUND_SERVICE_MAIL", "INBOUND_SERVICE_MAIL_BOUNCE", "INBOUND_SERVICE_XMPP_ERROR", "INBOUND_SERVICE_XMPP_MESSAGE", "INBOUND_SERVICE_XMPP_SUBSCRIBE", "INBOUND_SERVICE_XMPP_PRESENCE", "INBOUND_SERVICE_CHANNEL_PRESENCE", "INBOUND_SERVICE_WARMUP"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#inbound_services AppEngineFlexibleAppVersion#inbound_services}- Returns:
this
-
instanceClass
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder instanceClass(String instanceClass)
Sets the value ofAppEngineFlexibleAppVersionConfig.getInstanceClass()- Parameters:
instanceClass- Instance class that is used to run this version. Valid values are AutomaticScaling: F1, F2, F4, F4_1G ManualScaling: B1, B2, B4, B8, B4_1G Defaults to F1 for AutomaticScaling and B1 for ManualScaling. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#instance_class AppEngineFlexibleAppVersion#instance_class}- Returns:
this
-
manualScaling
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder manualScaling(AppEngineFlexibleAppVersionManualScaling manualScaling)
Sets the value ofAppEngineFlexibleAppVersionConfig.getManualScaling()- Parameters:
manualScaling- manual_scaling block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#manual_scaling AppEngineFlexibleAppVersion#manual_scaling}- Returns:
this
-
network
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder network(AppEngineFlexibleAppVersionNetwork network)
Sets the value ofAppEngineFlexibleAppVersionConfig.getNetwork()- Parameters:
network- network block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#network AppEngineFlexibleAppVersion#network}- Returns:
this
-
nobuildFilesRegex
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder nobuildFilesRegex(String nobuildFilesRegex)
Sets the value ofAppEngineFlexibleAppVersionConfig.getNobuildFilesRegex()- Parameters:
nobuildFilesRegex- Files that match this pattern will not be built into this version. Only applicable for Go runtimes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#nobuild_files_regex AppEngineFlexibleAppVersion#nobuild_files_regex}- Returns:
this
-
noopOnDestroy
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder noopOnDestroy(Boolean noopOnDestroy)
Sets the value ofAppEngineFlexibleAppVersionConfig.getNoopOnDestroy()- Parameters:
noopOnDestroy- If set to 'true', the application version will not be deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#noop_on_destroy AppEngineFlexibleAppVersion#noop_on_destroy}- Returns:
this
-
noopOnDestroy
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder noopOnDestroy(com.hashicorp.cdktf.IResolvable noopOnDestroy)
Sets the value ofAppEngineFlexibleAppVersionConfig.getNoopOnDestroy()- Parameters:
noopOnDestroy- If set to 'true', the application version will not be deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#noop_on_destroy AppEngineFlexibleAppVersion#noop_on_destroy}- Returns:
this
-
project
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder project(String project)
Sets the value ofAppEngineFlexibleAppVersionConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#project AppEngineFlexibleAppVersion#project}.- Returns:
this
-
resources
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder resources(AppEngineFlexibleAppVersionResources resources)
Sets the value ofAppEngineFlexibleAppVersionConfig.getResources()- Parameters:
resources- resources block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#resources AppEngineFlexibleAppVersion#resources}- Returns:
this
-
runtimeApiVersion
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder runtimeApiVersion(String runtimeApiVersion)
Sets the value ofAppEngineFlexibleAppVersionConfig.getRuntimeApiVersion()- Parameters:
runtimeApiVersion- The version of the API in the given runtime environment. Please see the app.yaml reference for valid values at 'https://cloud.google.com/appengine/docs/standard//config/appref'\ Substitute ' ' with 'python', 'java', 'php', 'ruby', 'go' or 'nodejs'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#runtime_api_version AppEngineFlexibleAppVersion#runtime_api_version} - Returns:
this
-
runtimeChannel
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder runtimeChannel(String runtimeChannel)
Sets the value ofAppEngineFlexibleAppVersionConfig.getRuntimeChannel()- Parameters:
runtimeChannel- The channel of the runtime to use. Only available for some runtimes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#runtime_channel AppEngineFlexibleAppVersion#runtime_channel}- Returns:
this
-
runtimeMainExecutablePath
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder runtimeMainExecutablePath(String runtimeMainExecutablePath)
Sets the value ofAppEngineFlexibleAppVersionConfig.getRuntimeMainExecutablePath()- Parameters:
runtimeMainExecutablePath- The path or name of the app's main executable. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#runtime_main_executable_path AppEngineFlexibleAppVersion#runtime_main_executable_path}- Returns:
this
-
serviceAccount
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder serviceAccount(String serviceAccount)
Sets the value ofAppEngineFlexibleAppVersionConfig.getServiceAccount()- Parameters:
serviceAccount- The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#service_account AppEngineFlexibleAppVersion#service_account}- Returns:
this
-
servingStatus
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder servingStatus(String servingStatus)
Sets the value ofAppEngineFlexibleAppVersionConfig.getServingStatus()- Parameters:
servingStatus- Current serving status of this version. Only the versions with a SERVING status create instances and can be billed. Default value: "SERVING" Possible values: ["SERVING", "STOPPED"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#serving_status AppEngineFlexibleAppVersion#serving_status}- Returns:
this
-
timeouts
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder timeouts(AppEngineFlexibleAppVersionTimeouts timeouts)
Sets the value ofAppEngineFlexibleAppVersionConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#timeouts AppEngineFlexibleAppVersion#timeouts}- Returns:
this
-
versionId
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder versionId(String versionId)
Sets the value ofAppEngineFlexibleAppVersionConfig.getVersionId()- Parameters:
versionId- Relative name of the version within the service. For example, 'v1'. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names,"default", "latest", and any name with the prefix "ah-". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#version_id AppEngineFlexibleAppVersion#version_id}- Returns:
this
-
vpcAccessConnector
@Stability(Stable) public AppEngineFlexibleAppVersionConfig.Builder vpcAccessConnector(AppEngineFlexibleAppVersionVpcAccessConnector vpcAccessConnector)
Sets the value ofAppEngineFlexibleAppVersionConfig.getVpcAccessConnector()- Parameters:
vpcAccessConnector- vpc_access_connector block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/app_engine_flexible_app_version#vpc_access_connector AppEngineFlexibleAppVersion#vpc_access_connector}- Returns:
this
-
connection
@Stability(Experimental) public AppEngineFlexibleAppVersionConfig.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 AppEngineFlexibleAppVersionConfig.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 AppEngineFlexibleAppVersionConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public AppEngineFlexibleAppVersionConfig.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 AppEngineFlexibleAppVersionConfig.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 AppEngineFlexibleAppVersionConfig.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 AppEngineFlexibleAppVersionConfig.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 AppEngineFlexibleAppVersionConfig.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 AppEngineFlexibleAppVersionConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public AppEngineFlexibleAppVersionConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AppEngineFlexibleAppVersionConfig>- Returns:
- a new instance of
AppEngineFlexibleAppVersionConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-