Class OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.os_config_patch_deployment.OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfig>
- Enclosing interface:
- OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfig
@Stability(Stable) public static final class OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfig.Builder extends Object implements software.amazon.jsii.Builder<OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfig>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfig.BuilderallowedSuccessCodes(List<? extends Number> allowedSuccessCodes)OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfigbuild()Builds the configured instance.OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfig.BuildergcsObject(OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfigGcsObject gcsObject)OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfig.Builderinterpreter(String interpreter)OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfig.BuilderlocalPath(String localPath)
-
-
-
Method Detail
-
allowedSuccessCodes
@Stability(Stable) public OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfig.Builder allowedSuccessCodes(List<? extends Number> allowedSuccessCodes)
Sets the value ofOsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfig.getAllowedSuccessCodes()- Parameters:
allowedSuccessCodes- Defaults to [0]. A list of possible return values that the execution can return to indicate a success. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#allowed_success_codes OsConfigPatchDeployment#allowed_success_codes}- Returns:
this
-
gcsObject
@Stability(Stable) public OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfig.Builder gcsObject(OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfigGcsObject gcsObject)
- Parameters:
gcsObject- gcs_object block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#gcs_object OsConfigPatchDeployment#gcs_object}- Returns:
this
-
interpreter
@Stability(Stable) public OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfig.Builder interpreter(String interpreter)
- Parameters:
interpreter- The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with shebang lines. Possible values: ["SHELL", "POWERSHELL"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#interpreter OsConfigPatchDeployment#interpreter}- Returns:
this
-
localPath
@Stability(Stable) public OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfig.Builder localPath(String localPath)
- Parameters:
localPath- An absolute path to the executable on the VM. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#local_path OsConfigPatchDeployment#local_path}- Returns:
this
-
build
@Stability(Stable) public OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfig>- Returns:
- a new instance of
OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-