Class InstanceAgentCommand.Builder
- java.lang.Object
-
- com.oracle.bmc.computeinstanceagent.model.InstanceAgentCommand.Builder
-
- Enclosing class:
- InstanceAgentCommand
public static class InstanceAgentCommand.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceAgentCommand
build()
InstanceAgentCommand.Builder
compartmentId(String compartmentId)
The OCID of the compartment containing the command.InstanceAgentCommand.Builder
content(InstanceAgentCommandContent content)
The contents of the command.InstanceAgentCommand.Builder
copy(InstanceAgentCommand model)
InstanceAgentCommand.Builder
displayName(String displayName)
A user-friendly name.InstanceAgentCommand.Builder
executionTimeOutInSeconds(Integer executionTimeOutInSeconds)
The amount of time that Oracle Cloud Agent is given to run the command on the instance before timing out.InstanceAgentCommand.Builder
id(String id)
The OCID of the command.InstanceAgentCommand.Builder
isCanceled(Boolean isCanceled)
Whether a request was made to cancel the command.InstanceAgentCommand.Builder
target(InstanceAgentCommandTarget target)
The target instance that the command runs on.InstanceAgentCommand.Builder
timeCreated(Date timeCreated)
The date and time the command was created, in the format defined by RFC3339.InstanceAgentCommand.Builder
timeUpdated(Date timeUpdated)
The date and time the command was last updated, in the format defined by RFC3339.
-
-
-
Method Detail
-
id
public InstanceAgentCommand.Builder id(String id)
The OCID of the command.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public InstanceAgentCommand.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the command.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
displayName
public InstanceAgentCommand.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique. Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
timeCreated
public InstanceAgentCommand.Builder timeCreated(Date timeCreated)
The date and time the command was created, in the format defined by RFC3339.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public InstanceAgentCommand.Builder timeUpdated(Date timeUpdated)
The date and time the command was last updated, in the format defined by RFC3339.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
isCanceled
public InstanceAgentCommand.Builder isCanceled(Boolean isCanceled)
Whether a request was made to cancel the command.Canceling a command is a best-effort attempt.
- Parameters:
isCanceled
- the value to set- Returns:
- this builder
-
executionTimeOutInSeconds
public InstanceAgentCommand.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
-
target
public InstanceAgentCommand.Builder target(InstanceAgentCommandTarget target)
The target instance that the command runs on.- Parameters:
target
- the value to set- Returns:
- this builder
-
content
public InstanceAgentCommand.Builder content(InstanceAgentCommandContent content)
The contents of the command.- Parameters:
content
- the value to set- Returns:
- this builder
-
build
public InstanceAgentCommand build()
-
copy
public InstanceAgentCommand.Builder copy(InstanceAgentCommand model)
-
-