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 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 when the command started to be 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 executed. * ExecutionInterrupted: The command task 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 DescribeInvocationsResponseBody.InvokeInstance.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 DescribeInvocationsResponseBody.InvokeInstance.Builder exitCode(Long exitCode)
* For Linux instances, the value is the exit code of the shell process. * For Windows instances, the value 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 `InvocationStatus` in the response to obtain the execution status.
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 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 is 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 DescribeInvocationsResponseBody.InvokeInstance.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 DescribeInvocationsResponseBody.InvokeInstance.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 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 © 2024. All rights reserved.