public static class InstanceAgentCommand.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public InstanceAgentCommand.Builder id(String id)
The OCID of the command.
id
- the value to setpublic InstanceAgentCommand.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the command.
compartmentId
- the value to setpublic InstanceAgentCommand.Builder displayName(String displayName)
A user-friendly name. Does not have to be unique. Avoid entering confidential information.
displayName
- the value to setpublic InstanceAgentCommand.Builder timeCreated(Date timeCreated)
The date and time the command was created, in the format defined by RFC3339.
timeCreated
- the value to setpublic InstanceAgentCommand.Builder timeUpdated(Date timeUpdated)
The date and time the command was last updated, in the format defined by RFC3339.
timeUpdated
- the value to setpublic InstanceAgentCommand.Builder isCanceled(Boolean isCanceled)
Whether a request was made to cancel the command. Canceling a command is a best-effort attempt.
isCanceled
- the value to setpublic 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.
executionTimeOutInSeconds
- the value to setpublic InstanceAgentCommand.Builder target(InstanceAgentCommandTarget target)
The target instance that the command runs on.
target
- the value to setpublic InstanceAgentCommand.Builder content(InstanceAgentCommandContent content)
The contents of the command.
content
- the value to setpublic InstanceAgentCommand build()
public InstanceAgentCommand.Builder copy(InstanceAgentCommand model)
Copyright © 2016–2024. All rights reserved.