Class CreateInstanceAgentCommandDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.computeinstanceagent.model.CreateInstanceAgentCommandDetails.Builder
-
- Enclosing class:
- CreateInstanceAgentCommandDetails
public static class CreateInstanceAgentCommandDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateInstanceAgentCommandDetailsbuild()CreateInstanceAgentCommandDetails.BuildercompartmentId(String compartmentId)The OCID of the compartment to create the command in.CreateInstanceAgentCommandDetails.Buildercontent(InstanceAgentCommandContent content)The contents of the command.CreateInstanceAgentCommandDetails.Buildercopy(CreateInstanceAgentCommandDetails model)CreateInstanceAgentCommandDetails.BuilderdisplayName(String displayName)A user-friendly name for the command.CreateInstanceAgentCommandDetails.BuilderexecutionTimeOutInSeconds(Integer executionTimeOutInSeconds)The amount of time that Oracle Cloud Agent is given to run the command on the instance before timing out.CreateInstanceAgentCommandDetails.Buildertarget(InstanceAgentCommandTarget target)The target instance to run the command on.
-
-
-
Method Detail
-
compartmentId
public CreateInstanceAgentCommandDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment to create the command in.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
executionTimeOutInSeconds
public CreateInstanceAgentCommandDetails.Builder executionTimeOutInSeconds(Integer executionTimeOutInSeconds)
The amount of time that Oracle Cloud Agent is given to run the command on the instance before timing out.The timer starts when Oracle Cloud Agent starts the command. Zero means no timeout.
- Parameters:
executionTimeOutInSeconds- the value to set- Returns:
- this builder
-
displayName
public CreateInstanceAgentCommandDetails.Builder displayName(String displayName)
A user-friendly name for the command.It does not have to be unique. Avoid entering confidential information.
Example: Database Backup Script
- Parameters:
displayName- the value to set- Returns:
- this builder
-
target
public CreateInstanceAgentCommandDetails.Builder target(InstanceAgentCommandTarget target)
The target instance to run the command on.- Parameters:
target- the value to set- Returns:
- this builder
-
content
public CreateInstanceAgentCommandDetails.Builder content(InstanceAgentCommandContent content)
The contents of the command.- Parameters:
content- the value to set- Returns:
- this builder
-
build
public CreateInstanceAgentCommandDetails build()
-
copy
public CreateInstanceAgentCommandDetails.Builder copy(CreateInstanceAgentCommandDetails model)
-
-