Class InstanceAgentCommandExecution.Builder
- java.lang.Object
-
- com.oracle.bmc.computeinstanceagent.model.InstanceAgentCommandExecution.Builder
-
- Enclosing class:
- InstanceAgentCommandExecution
public static class InstanceAgentCommandExecution.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
instanceAgentCommandId
public InstanceAgentCommandExecution.Builder instanceAgentCommandId(String instanceAgentCommandId)
The OCID of the command- Parameters:
instanceAgentCommandId
- the value to set- Returns:
- this builder
-
instanceId
public InstanceAgentCommandExecution.Builder instanceId(String instanceId)
The OCID of the instance- Parameters:
instanceId
- the value to set- Returns:
- this builder
-
deliveryState
public InstanceAgentCommandExecution.Builder deliveryState(InstanceAgentCommandExecution.DeliveryState deliveryState)
Specifies the command delivery state.- VISIBLE - The command is visible to instance. * PENDING - The command is pending ack from the instance. * ACKED - The command has been received and acked by the instance. * ACKED_CANCELED - The canceled command has been received and acked by the instance. * EXPIRED - The instance has not requested for commands and its delivery has expired.
- Parameters:
deliveryState
- the value to set- Returns:
- this builder
-
lifecycleState
public InstanceAgentCommandExecution.Builder lifecycleState(InstanceAgentCommandExecution.LifecycleState lifecycleState)
command execution life cycle state.- ACCEPTED - The command execution has been accepted to run. * IN_PROGRESS - The command execution is in progress. * SUCCEEDED - The command execution is successful. * FAILED - The command execution has failed. * TIMED_OUT - The command execution has timedout. * CANCELED - The command execution has canceled.
- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
timeCreated
public InstanceAgentCommandExecution.Builder timeCreated(Date timeCreated)
The command creation date- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public InstanceAgentCommandExecution.Builder timeUpdated(Date timeUpdated)
The command last updated at date.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
sequenceNumber
public InstanceAgentCommandExecution.Builder sequenceNumber(Long sequenceNumber)
The large non-consecutive number that Run Command Service assigns to each created command.- Parameters:
sequenceNumber
- the value to set- Returns:
- this builder
-
displayName
public InstanceAgentCommandExecution.Builder displayName(String displayName)
The user friendly display name of the command.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
content
public InstanceAgentCommandExecution.Builder content(InstanceAgentCommandExecutionOutputContent content)
-
build
public InstanceAgentCommandExecution build()
-
copy
public InstanceAgentCommandExecution.Builder copy(InstanceAgentCommandExecution model)
-
-