Class RunLocalScriptUserDefinedCustomPrecheckStep.Builder
- java.lang.Object
-
- com.oracle.bmc.disasterrecovery.model.RunLocalScriptUserDefinedCustomPrecheckStep.Builder
-
- Enclosing class:
- RunLocalScriptUserDefinedCustomPrecheckStep
public static class RunLocalScriptUserDefinedCustomPrecheckStep.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RunLocalScriptUserDefinedCustomPrecheckStep
build()
RunLocalScriptUserDefinedCustomPrecheckStep.Builder
copy(RunLocalScriptUserDefinedCustomPrecheckStep model)
RunLocalScriptUserDefinedCustomPrecheckStep.Builder
runAsUser(String runAsUser)
The userid on the instance to be used for executing the script or command.RunLocalScriptUserDefinedCustomPrecheckStep.Builder
runOnInstanceId(String runOnInstanceId)
The OCID of the instance on which this script or command should be executed.RunLocalScriptUserDefinedCustomPrecheckStep.Builder
runOnInstanceRegion(String runOnInstanceRegion)
The region in which the instance is present.RunLocalScriptUserDefinedCustomPrecheckStep.Builder
scriptCommand(String scriptCommand)
The script name and arguments.
-
-
-
Method Detail
-
runOnInstanceId
public RunLocalScriptUserDefinedCustomPrecheckStep.Builder runOnInstanceId(String runOnInstanceId)
The OCID of the instance on which this script or command should be executed.*For moving instances:** *runOnInstanceId* must be the OCID of the instance in the region where the instance is currently present.
*For non-moving instances:** *runOnInstanceId* must be the OCID of the non-moving instance.
Example: ocid1.instance.oc1..uniqueID
- Parameters:
runOnInstanceId
- the value to set- Returns:
- this builder
-
runOnInstanceRegion
public RunLocalScriptUserDefinedCustomPrecheckStep.Builder runOnInstanceRegion(String runOnInstanceRegion)
The region in which the instance is present.Example: us-ashburn-1
- Parameters:
runOnInstanceRegion
- the value to set- Returns:
- this builder
-
scriptCommand
public RunLocalScriptUserDefinedCustomPrecheckStep.Builder scriptCommand(String scriptCommand)
The script name and arguments.Example: /usr/bin/python3 /home/opc/scripts/my_app_script.py arg1 arg2 arg3
- Parameters:
scriptCommand
- the value to set- Returns:
- this builder
-
runAsUser
public RunLocalScriptUserDefinedCustomPrecheckStep.Builder runAsUser(String runAsUser)
The userid on the instance to be used for executing the script or command.Example: opc
- Parameters:
runAsUser
- the value to set- Returns:
- this builder
-
build
public RunLocalScriptUserDefinedCustomPrecheckStep build()
-
copy
public RunLocalScriptUserDefinedCustomPrecheckStep.Builder copy(RunLocalScriptUserDefinedCustomPrecheckStep model)
-
-