public static final class DescribeInvocationsResponseBody.Invocation.Builder extends Object
构造器和说明 |
---|
Builder() |
public DescribeInvocationsResponseBody.Invocation.Builder commandContent(String commandContent)
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 scheduled to run is sent and pending execution. 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 other instances is Stopped or Success, the overall execution state is Success. * Command that is set to run only once: The execution is complete, and the exit code is 0. * Command that is set to run on a schedule: The last execution is complete, the exit code is 0, and the specified cycle ends. * 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 command execution is complete, but the exit code is not 0. * Timeout: The execution timed out. * Error: An error occurred while the command was being run on the instance. * 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 command task is 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 command task is canceled. * Terminated: The command task is terminated. * PartialFailed: The execution is complete on some instances and fails on other instances. When the execution state is Success on some instances and is Failed or Stopped on other instances, the overall execution state is PartialFailed. > The `InvokeStatus` response parameter functions similarly to this parameter. We recommend that you ignore InvokeStatus and check the value of InvocationStatus.
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 the `InvocationStatus` response parameter for the overall execution state.
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 automatically run the next time the instance starts. * EveryReboot: The command is automatically run every time the instance starts.
public DescribeInvocationsResponseBody.Invocation.Builder tags(DescribeInvocationsResponseBody.Tags tags)
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, the Cloud Assistant client forcefully terminates the command process by canceling the PID of the command.
public DescribeInvocationsResponseBody.Invocation.Builder username(String username)
public DescribeInvocationsResponseBody.Invocation.Builder workingDir(String workingDir)
public DescribeInvocationsResponseBody.Invocation build()
Copyright © 2023. All rights reserved.