Class MlEngineModelConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.ml_engine_model.MlEngineModelConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MlEngineModelConfig>
- Enclosing interface:
- MlEngineModelConfig
@Stability(Stable) public static final class MlEngineModelConfig.Builder extends Object implements software.amazon.jsii.Builder<MlEngineModelConfig>
A builder forMlEngineModelConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MlEngineModelConfigbuild()Builds the configured instance.MlEngineModelConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()MlEngineModelConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()MlEngineModelConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()MlEngineModelConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()MlEngineModelConfig.BuilderdefaultVersion(MlEngineModelDefaultVersion defaultVersion)Sets the value ofMlEngineModelConfig.getDefaultVersion()MlEngineModelConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()MlEngineModelConfig.Builderdescription(String description)Sets the value ofMlEngineModelConfig.getDescription()MlEngineModelConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()MlEngineModelConfig.Builderid(String id)Sets the value ofMlEngineModelConfig.getId()MlEngineModelConfig.Builderlabels(Map<String,String> labels)Sets the value ofMlEngineModelConfig.getLabels()MlEngineModelConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()MlEngineModelConfig.Buildername(String name)Sets the value ofMlEngineModelConfig.getName()MlEngineModelConfig.BuilderonlinePredictionConsoleLogging(com.hashicorp.cdktf.IResolvable onlinePredictionConsoleLogging)Sets the value ofMlEngineModelConfig.getOnlinePredictionConsoleLogging()MlEngineModelConfig.BuilderonlinePredictionConsoleLogging(Boolean onlinePredictionConsoleLogging)Sets the value ofMlEngineModelConfig.getOnlinePredictionConsoleLogging()MlEngineModelConfig.BuilderonlinePredictionLogging(com.hashicorp.cdktf.IResolvable onlinePredictionLogging)Sets the value ofMlEngineModelConfig.getOnlinePredictionLogging()MlEngineModelConfig.BuilderonlinePredictionLogging(Boolean onlinePredictionLogging)Sets the value ofMlEngineModelConfig.getOnlinePredictionLogging()MlEngineModelConfig.Builderproject(String project)Sets the value ofMlEngineModelConfig.getProject()MlEngineModelConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()MlEngineModelConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()MlEngineModelConfig.Builderregions(List<String> regions)Sets the value ofMlEngineModelConfig.getRegions()MlEngineModelConfig.Buildertimeouts(MlEngineModelTimeouts timeouts)Sets the value ofMlEngineModelConfig.getTimeouts()
-
-
-
Method Detail
-
name
@Stability(Stable) public MlEngineModelConfig.Builder name(String name)
Sets the value ofMlEngineModelConfig.getName()- Parameters:
name- The name specified for the model. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/ml_engine_model#name MlEngineModel#name}- Returns:
this
-
defaultVersion
@Stability(Stable) public MlEngineModelConfig.Builder defaultVersion(MlEngineModelDefaultVersion defaultVersion)
Sets the value ofMlEngineModelConfig.getDefaultVersion()- Parameters:
defaultVersion- default_version block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/ml_engine_model#default_version MlEngineModel#default_version}- Returns:
this
-
description
@Stability(Stable) public MlEngineModelConfig.Builder description(String description)
Sets the value ofMlEngineModelConfig.getDescription()- Parameters:
description- The description specified for the model when it was created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/ml_engine_model#description MlEngineModel#description}- Returns:
this
-
id
@Stability(Stable) public MlEngineModelConfig.Builder id(String id)
Sets the value ofMlEngineModelConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/ml_engine_model#id MlEngineModel#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
-
labels
@Stability(Stable) public MlEngineModelConfig.Builder labels(Map<String,String> labels)
Sets the value ofMlEngineModelConfig.getLabels()- Parameters:
labels- One or more labels that you can add, to organize your models. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/ml_engine_model#labels MlEngineModel#labels}- Returns:
this
-
onlinePredictionConsoleLogging
@Stability(Stable) public MlEngineModelConfig.Builder onlinePredictionConsoleLogging(Boolean onlinePredictionConsoleLogging)
Sets the value ofMlEngineModelConfig.getOnlinePredictionConsoleLogging()- Parameters:
onlinePredictionConsoleLogging- If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/ml_engine_model#online_prediction_console_logging MlEngineModel#online_prediction_console_logging}- Returns:
this
-
onlinePredictionConsoleLogging
@Stability(Stable) public MlEngineModelConfig.Builder onlinePredictionConsoleLogging(com.hashicorp.cdktf.IResolvable onlinePredictionConsoleLogging)
Sets the value ofMlEngineModelConfig.getOnlinePredictionConsoleLogging()- Parameters:
onlinePredictionConsoleLogging- If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/ml_engine_model#online_prediction_console_logging MlEngineModel#online_prediction_console_logging}- Returns:
this
-
onlinePredictionLogging
@Stability(Stable) public MlEngineModelConfig.Builder onlinePredictionLogging(Boolean onlinePredictionLogging)
Sets the value ofMlEngineModelConfig.getOnlinePredictionLogging()- Parameters:
onlinePredictionLogging- If true, online prediction access logs are sent to StackDriver Logging. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/ml_engine_model#online_prediction_logging MlEngineModel#online_prediction_logging}- Returns:
this
-
onlinePredictionLogging
@Stability(Stable) public MlEngineModelConfig.Builder onlinePredictionLogging(com.hashicorp.cdktf.IResolvable onlinePredictionLogging)
Sets the value ofMlEngineModelConfig.getOnlinePredictionLogging()- Parameters:
onlinePredictionLogging- If true, online prediction access logs are sent to StackDriver Logging. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/ml_engine_model#online_prediction_logging MlEngineModel#online_prediction_logging}- Returns:
this
-
project
@Stability(Stable) public MlEngineModelConfig.Builder project(String project)
Sets the value ofMlEngineModelConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/ml_engine_model#project MlEngineModel#project}.- Returns:
this
-
regions
@Stability(Stable) public MlEngineModelConfig.Builder regions(List<String> regions)
Sets the value ofMlEngineModelConfig.getRegions()- Parameters:
regions- The list of regions where the model is going to be deployed. Currently only one region per model is supported. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/ml_engine_model#regions MlEngineModel#regions}- Returns:
this
-
timeouts
@Stability(Stable) public MlEngineModelConfig.Builder timeouts(MlEngineModelTimeouts timeouts)
Sets the value ofMlEngineModelConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/ml_engine_model#timeouts MlEngineModel#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public MlEngineModelConfig.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 MlEngineModelConfig.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 MlEngineModelConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public MlEngineModelConfig.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 MlEngineModelConfig.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 MlEngineModelConfig.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 MlEngineModelConfig.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 MlEngineModelConfig.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 MlEngineModelConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public MlEngineModelConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MlEngineModelConfig>- Returns:
- a new instance of
MlEngineModelConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-