public static final class DescribeInvocationsResponseBody.Invocation.Builder extends Object
构造器和说明 |
---|
Builder() |
public DescribeInvocationsResponseBody.Invocation.Builder commandContent(String commandContent)
* If ContentEncoding is set to PlainText in the request, the original command content is returned. * If ContentEncoding is set to Base64 in the request, the Base64-encoded command content is returned.
public DescribeInvocationsResponseBody.Invocation.Builder commandDescription(String commandDescription)
public DescribeInvocationsResponseBody.Invocation.Builder commandId(String commandId)
public DescribeInvocationsResponseBody.Invocation.Builder commandName(String commandName)
public DescribeInvocationsResponseBody.Invocation.Builder commandType(String commandType)
public DescribeInvocationsResponseBody.Invocation.Builder containerId(String containerId)
public DescribeInvocationsResponseBody.Invocation.Builder containerName(String containerName)
public DescribeInvocationsResponseBody.Invocation.Builder creationTime(String creationTime)
public DescribeInvocationsResponseBody.Invocation.Builder frequency(String frequency)
public DescribeInvocationsResponseBody.Invocation.Builder invocationStatus(String invocationStatus)
* Pending: The command is being verified or sent. When the execution state on at least one instance is Pending, the overall execution state is Pending. * Scheduled: The command that is set to run on a schedule was sent and waiting to be run. When the execution state on at least one instance is Scheduled, the overall execution state is Scheduled. * Running: The command is being run on the instances. When the execution state on at least one instance is Running, the overall execution state is Running. * Success: When the execution state on at least one instance is Success and the execution state on the other instances is Stopped or Success, the overall execution state is Success. * One-time task: The execution was complete, and the exit code was 0. * Scheduled task: The last execution was complete, the exit code was 0, and the specified period ended. * Failed: When the execution state on all instances is Stopped or Failed, the overall execution state is Failed. When the execution state on an instance is one of the following values, Failed is returned as the overall execution state: * Invalid: The command is invalid. * Aborted: The command failed to be sent. * Failed: The execution was complete, but the exit code was not 0. * Timeout: The execution timed out. * Error: An error occurred while the command was being run. * Stopping: The command task is being stopped. When the execution state on at least one instance is Stopping, the overall execution state is Stopping. * Stopped: The task was stopped. When the execution state on all instances is Stopped, the overall execution state is Stopped. When the execution state on an instance is one of the following values, Stopped is returned as the overall execution state: * Cancelled: The task was canceled. * Terminated: The task was terminated. * PartialFailed: The execution was complete on some instances and failed on other instances. When the execution state is Success on some instances and is Failed or Stopped on the other instances, the overall execution state is PartialFailed. > `InvokeStatus` in the response functions similarly to this parameter. We recommend that you check the value of this parameter.
public DescribeInvocationsResponseBody.Invocation.Builder invokeId(String invokeId)
public DescribeInvocationsResponseBody.Invocation.Builder invokeInstances(DescribeInvocationsResponseBody.InvokeInstances invokeInstances)
public DescribeInvocationsResponseBody.Invocation.Builder invokeStatus(String invokeStatus)
> We recommend that you ignore this parameter and check the value of `InvocationStatus` in the response to obtain the execution status.
public DescribeInvocationsResponseBody.Invocation.Builder launcher(String launcher)
public DescribeInvocationsResponseBody.Invocation.Builder parameters(String parameters)
public DescribeInvocationsResponseBody.Invocation.Builder repeatMode(String repeatMode)
* Once: The command is immediately run. * Period: The command is run on a schedule. * NextRebootOnly: The command is run the next time the instances start. * EveryReboot: The command is run every time the instances start.
public DescribeInvocationsResponseBody.Invocation.Builder tags(DescribeInvocationsResponseBody.Tags tags)
public DescribeInvocationsResponseBody.Invocation.Builder terminationMode(String terminationMode)
* Process: The process of the command is stopped. * ProcessTree: The process tree of the command is stopped. In this case, the process of the command and all subprocesses are stopped.
public DescribeInvocationsResponseBody.Invocation.Builder timed(Boolean timed)
public DescribeInvocationsResponseBody.Invocation.Builder timeout(Long timeout)
When a command cannot be run, the command execution times out. When a command execution times out, Cloud Assistant Agent forcefully terminates the command process by canceling the process ID (PID) of the command.
public DescribeInvocationsResponseBody.Invocation.Builder username(String username)
public DescribeInvocationsResponseBody.Invocation.Builder workingDir(String workingDir)
public DescribeInvocationsResponseBody.Invocation build()
Copyright © 2024. All rights reserved.