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 is run normally. * InstanceNotExists: The instance does not exist or has been 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 is not applicable to the specified instance. * AccountNotExists: The specified account does not exist. * DirectoryNotExists: The specified directory does not exist. * BadCronExpression: The cron expression used to specify a schedule is invalid. * ClientNotRunning: The Cloud Assistant client is not running. * ClientNotResponse: The Cloud Assistant client does not respond. * ClientIsUpgrading: The Cloud Assistant client is being upgraded. * ClientNeedUpgrade: The Cloud Assistant client needs 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 is complete, but the exit code is not 0.
public DescribeInvocationResultsResponseBody.InvocationResult.Builder errorInfo(String errorInfo)
* If this parameter is empty, the command is run normally. * the specified instance does not exists * the instance has released when create task * the instance is not running when create task * the command is not applicable * the specified account does not exists * the specified directory does not exists * the cron job 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 now * the aliyun service in the instance need upgrade * the command delivery has been timeout * the command execution has been timeout * the command execution got an exception * the command execution has been interrupted * the command execution exit code is not zero
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 send a command to an instance, make sure that the instance is in the Running state and the command is sent to the instance within 1 minute. * Running: The command is being run on the instance. * 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 succeeds, the exit code is 0, and the specified cycle ends. * Failed: * Command that is set to run only once: The execution is complete, but the exit code is not 0. * Command that is set to run on a schedule: The last execution is complete, the exit code is not 0, and the specified cycle is about to end. * Error: The execution cannot proceed due to an exception. * Timeout: The execution times out. * Cancelled: The execution is canceled, and the command is not run. * Stopping: The running command is being stopped. * Terminated: The command is terminated while it is being run. * Scheduled: * Command that is set to run only once: The command is not applicable. * Command that is set to run on a schedule: The command is waiting to be run.
public DescribeInvocationResultsResponseBody.InvocationResult.Builder invokeId(String invokeId)
public DescribeInvocationResultsResponseBody.InvocationResult.Builder invokeRecordStatus(String invokeRecordStatus)
public DescribeInvocationResultsResponseBody.InvocationResult.Builder output(String output)
public DescribeInvocationResultsResponseBody.InvocationResult.Builder repeats(Integer repeats)
* If the command is set to run only once on the instance, the value is 0 or 1. * If the command is set to run on a schedule on the instance, the value is the number of times that the command is run.
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 username(String username)
public DescribeInvocationResultsResponseBody.InvocationResult build()
Copyright © 2023. All rights reserved.