Class OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.os_config_patch_deployment.OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfig>
- Enclosing interface:
- OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfig
@Stability(Stable) public static final class OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfig.Builder extends Object implements software.amazon.jsii.Builder<OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfig>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfig.BuilderallowedSuccessCodes(List<? extends Number> allowedSuccessCodes)OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfigbuild()Builds the configured instance.OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfig.BuildergcsObject(OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfigGcsObject gcsObject)OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfig.Builderinterpreter(String interpreter)OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfig.BuilderlocalPath(String localPath)
-
-
-
Method Detail
-
allowedSuccessCodes
@Stability(Stable) public OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfig.Builder allowedSuccessCodes(List<? extends Number> allowedSuccessCodes)
Sets the value ofOsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfig.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 OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfig.Builder gcsObject(OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfigGcsObject 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 OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfig.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 OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfig.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 OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfig>- Returns:
- a new instance of
OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-