public static final class DescribeInvocationsResponseBody.InvokeInstance.Builder extends Object
构造器和说明 |
---|
Builder() |
public DescribeInvocationsResponseBody.InvokeInstance.Builder creationTime(String creationTime)
public DescribeInvocationsResponseBody.InvokeInstance.Builder dropped(Integer dropped)
public DescribeInvocationsResponseBody.InvokeInstance.Builder errorCode(String errorCode)
* If this parameter is empty, the execution is normal. * InstanceNotExists: The instance does not exist or was released. * InstanceReleased: The instance was released while the command was being run. * InstanceNotRunning: The instance was not in the Running state while the command started to be 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 occurs while the command is being run. * ExecutionInterrupted: The execution was interrupted. * ExitCodeNonzero: The execution is complete, but the exit code is not 0.
public DescribeInvocationsResponseBody.InvokeInstance.Builder errorInfo(String errorInfo)
* If this parameter is empty, the execution is normal. * 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 is upgrading now * 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 DescribeInvocationsResponseBody.InvokeInstance.Builder exitCode(Long exitCode)
* For Linux instances, the exit code is the exit code of the shell process. * For Windows instances, the exit code is the exit code of the batch or PowerShell process.
public DescribeInvocationsResponseBody.InvokeInstance.Builder finishTime(String finishTime)
public DescribeInvocationsResponseBody.InvokeInstance.Builder instanceId(String instanceId)
public DescribeInvocationsResponseBody.InvokeInstance.Builder instanceInvokeStatus(String instanceInvokeStatus)
> We recommend that you ignore this parameter and check the value of the `InvocationStatus` response parameter for the overall execution state.
public DescribeInvocationsResponseBody.InvokeInstance.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 that the command is sent 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 previous execution is complete, 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 previous 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 started. * Stopping: The command task is being stopped. * Terminated: The command task is terminated while it is being run. * Scheduled: * Command that is set to run only once: The overall execution state can never be Scheduled. * Command that is set to run on a schedule: The command is pending execution.
public DescribeInvocationsResponseBody.InvokeInstance.Builder output(String output)
public DescribeInvocationsResponseBody.InvokeInstance.Builder repeats(Integer repeats)
* If the execution is a one-time execution, the value is 0 or 1. * If the execution is a scheduled execution, the value is the number of times that the command is run.
public DescribeInvocationsResponseBody.InvokeInstance.Builder startTime(String startTime)
public DescribeInvocationsResponseBody.InvokeInstance.Builder stopTime(String stopTime)
public DescribeInvocationsResponseBody.InvokeInstance.Builder timed(Boolean timed)
public DescribeInvocationsResponseBody.InvokeInstance.Builder updateTime(String updateTime)
public DescribeInvocationsResponseBody.InvokeInstance build()
Copyright © 2023. All rights reserved.