public static final class DescribeInvocationResultsResponseBody.InvocationResult.Builder extends Object
构造器和说明 |
---|
Builder() |
public DescribeInvocationResultsResponseBody.InvocationResult.Builder commandId(String commandId)
public DescribeInvocationResultsResponseBody.InvocationResult.Builder containerId(String containerId)
public DescribeInvocationResultsResponseBody.InvocationResult.Builder containerName(String containerName)
public DescribeInvocationResultsResponseBody.InvocationResult.Builder dropped(Integer dropped)
public DescribeInvocationResultsResponseBody.InvocationResult.Builder errorCode(String errorCode)
* If this parameter is empty, the command was run as expected. * InstanceNotExists: The specified instance did not exist or was released. * InstanceReleased: The instance was released while the command was being run. * InstanceNotRunning: The instance was not running while the command was being run. * CommandNotApplicable: The command was inapplicable to the specified instance. * AccountNotExists: The username specified to run the command did not exist. * DirectoryNotExists: The specified directory did not exist. * BadCronExpression: The specified cron expression for the execution schedule was invalid. * ClientNotRunning: Cloud Assistant Agent was not running. * ClientNotResponse: Cloud Assistant Agent did not respond. * ClientIsUpgrading: Cloud Assistant Agent was being upgraded. * ClientNeedUpgrade: Cloud Assistant Agent needed to be upgraded. * DeliveryTimeout: The request to send the command timed out. * ExecutionTimeout: The execution timed out. * ExecutionException: An exception occurred while the command was being run. * ExecutionInterrupted: The execution was interrupted. * ExitCodeNonzero: The execution was complete, but the exit code was not 0. * SecurityGroupRuleDenied: Access to Cloud Assistant was denied by security group rules.
public DescribeInvocationResultsResponseBody.InvocationResult.Builder errorInfo(String errorInfo)
* If this parameter is empty, the command was run as expected. * The security group rules denied access to the aliyun service. * The specified instance does not exist. * The specified instance was released during task execution. * The specified instance was not running during task execution. * The OS type of the instance does not support the specified command type. * The specified account does not exist. * The specified directory does not exist. * The cron expression is invalid. * The aliyun service is not running on the instance. * The aliyun service in the instance does not response. * The aliyun service in the instance is upgrading during task execution. * The aliyun service in the instance need to be upgraded to at least version to support the feature. indicates the earliest version that supports the feature. indicates the name of the feature. * The command delivery has been timeout. * The command execution has been timeout. * The command execution got an exception. * The command execution exit code is not zero. * The specified instance was released during task execution.
public DescribeInvocationResultsResponseBody.InvocationResult.Builder exitCode(Long exitCode)
* For Linux instances, the value is the exit code of the shell command. * For Windows instances, the value is the exit code of the batch or PowerShell command.
public DescribeInvocationResultsResponseBody.InvocationResult.Builder finishedTime(String finishedTime)
public DescribeInvocationResultsResponseBody.InvocationResult.Builder instanceId(String instanceId)
public DescribeInvocationResultsResponseBody.InvocationResult.Builder invocationStatus(String invocationStatus)
* Pending: The command is being verified or sent. * Invalid: The specified command type or parameter is invalid. * Aborted: The command failed to be sent to the instance. To send a command to an instance, make sure that the instance is in the Running state and the command can be sent to the instance within 1 minute. * Running: The command is being run on the instance. * 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: * One-time task: The execution was complete, but the exit code was not 0. * Scheduled task: The last execution was complete, but the exit code was not 0. The specified period was about to end. * Error: The execution cannot proceed due to an exception. * Timeout: The execution timed out. * Cancelled: The execution was canceled before it started. * Stopping: The command task is being stopped. * Terminated: The execution was terminated before completion. * Scheduled: * One-time task: The execution state can never be Scheduled. * Scheduled task: The command is waiting to be run.
public DescribeInvocationResultsResponseBody.InvocationResult.Builder invokeId(String invokeId)
public DescribeInvocationResultsResponseBody.InvocationResult.Builder invokeRecordStatus(String invokeRecordStatus)
* Running: * Scheduled task: Before you stop the scheduled execution of the command, the execution state is always Running. * One-time task: If the command is being run on instances, the execution state is Running. * Finished: * Scheduled task: The execution state can never be Finished. * One-time task: The execution was complete on all instances, or the execution was stopped on some instances and was complete on the other instances. * Failed: * Scheduled task: The execution state can never be Failed. * One-time task: The execution failed on all instances. * PartialFailed: * Scheduled task: The execution state can never be PartialFailed. * One-time task: The execution failed on some instances. * Stopped: The task was stopped. * Stopping: The task is being stopped.
public DescribeInvocationResultsResponseBody.InvocationResult.Builder launcher(String launcher)
public DescribeInvocationResultsResponseBody.InvocationResult.Builder output(String output)
* If ContentEncoding is set to PlainText in the request, the original command output is returned. * If ContentEncoding is set to Base64 in the request, the Base64-encoded command output is returned.
public DescribeInvocationResultsResponseBody.InvocationResult.Builder repeats(Integer repeats)
* If the command is set to run only once, the value is 0 or 1. * If the command is set to run on a schedule, the value is the number of times that the command has been run on the instance.
public DescribeInvocationResultsResponseBody.InvocationResult.Builder startTime(String startTime)
public DescribeInvocationResultsResponseBody.InvocationResult.Builder stopTime(String stopTime)
public DescribeInvocationResultsResponseBody.InvocationResult.Builder tags(DescribeInvocationResultsResponseBody.Tags tags)
public DescribeInvocationResultsResponseBody.InvocationResult.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 DescribeInvocationResultsResponseBody.InvocationResult.Builder username(String username)
public DescribeInvocationResultsResponseBody.InvocationResult build()
Copyright © 2024. All rights reserved.