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