Class InstanceAgentCommand.Builder
- java.lang.Object
- 
- com.oracle.bmc.computeinstanceagent.model.InstanceAgentCommand.Builder
 
- 
- Enclosing class:
- InstanceAgentCommand
 
 public static class InstanceAgentCommand.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceAgentCommandbuild()InstanceAgentCommand.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the command.InstanceAgentCommand.Buildercontent(InstanceAgentCommandContent content)The contents of the command.InstanceAgentCommand.Buildercopy(InstanceAgentCommand model)InstanceAgentCommand.BuilderdisplayName(String displayName)A user-friendly name.InstanceAgentCommand.BuilderexecutionTimeOutInSeconds(Integer executionTimeOutInSeconds)The amount of time that Oracle Cloud Agent is given to run the command on the instance before timing out.InstanceAgentCommand.Builderid(String id)The OCID of the command.InstanceAgentCommand.BuilderisCanceled(Boolean isCanceled)Whether a request was made to cancel the command.InstanceAgentCommand.Buildertarget(InstanceAgentCommandTarget target)The target instance that the command runs on.InstanceAgentCommand.BuildertimeCreated(Date timeCreated)The date and time the command was created, in the format defined by RFC3339.InstanceAgentCommand.BuildertimeUpdated(Date timeUpdated)The date and time the command was last updated, in the format defined by RFC3339.
 
- 
- 
- 
Method Detail- 
idpublic InstanceAgentCommand.Builder id(String id) The OCID of the command.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic InstanceAgentCommand.Builder compartmentId(String compartmentId) The OCID of the compartment containing the command.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic 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
 
 - 
timeCreatedpublic 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
 
 - 
timeUpdatedpublic 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
 
 - 
isCanceledpublic 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
 
 - 
executionTimeOutInSecondspublic 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
 
 - 
targetpublic InstanceAgentCommand.Builder target(InstanceAgentCommandTarget target) The target instance that the command runs on.- Parameters:
- target- the value to set
- Returns:
- this builder
 
 - 
contentpublic InstanceAgentCommand.Builder content(InstanceAgentCommandContent content) The contents of the command.- Parameters:
- content- the value to set
- Returns:
- this builder
 
 - 
buildpublic InstanceAgentCommand build() 
 - 
copypublic InstanceAgentCommand.Builder copy(InstanceAgentCommand model) 
 
- 
 
-