public static final class DescribeInvocationsRequest.Builder extends Object
public DescribeInvocationsRequest.Builder sourceRegionId(String sourceRegionId)
public DescribeInvocationsRequest.Builder commandId(String commandId)
public DescribeInvocationsRequest.Builder commandName(String commandName)
public DescribeInvocationsRequest.Builder commandType(String commandType)
* RunBatScript: batch command, applicable to Windows instances. * RunPowerShellScript: PowerShell command, applicable to Windows instances. * RunShellScript: shell command, applicable to Linux instances.
public DescribeInvocationsRequest.Builder contentEncoding(String contentEncoding)
* PlainText: returns the original command content and command outputs. * Base64: returns the Base64-encoded command content and command outputs. Default value: Base64.
public DescribeInvocationsRequest.Builder includeOutput(Boolean includeOutput)
* true: The command outputs are returned. When this parameter is set to true, you must specify `InvokeId`, `InstanceId`, or both. * false: The command outputs are not returned. Default value: false
public DescribeInvocationsRequest.Builder instanceId(String instanceId)
public DescribeInvocationsRequest.Builder invokeId(String invokeId)
public DescribeInvocationsRequest.Builder invokeStatus(String invokeStatus)
* Running: * Scheduled task: Before you stop the scheduled execution of the command, the overall execution state is always Running. * One-time task: If the command is being run on instances, the overall execution state is Running. * Finished: * Scheduled task: The overall execution state can never be Finished. * One-time task: The execution is complete on all instances, or the execution is stopped on some instances and is complete on the other instances. * Success: If the execution state on at least one instance is Success and the execution state on the other instances is Stopped or Success, the overall execution state is Success. * One-time task: The execution is complete, and the exit code is 0. * Scheduled task: The last execution is complete, the exit code is 0, and the specified period ends. * Failed: * Scheduled task: The overall execution state can never be Failed. * One-time task: The execution fails on all instances. * Stopped: The task is stopped. * Stopping: The task is being stopped. * PartialFailed: The task fails on some instances. If you specify both this parameter and `InstanceId`, this parameter does not take effect.
public DescribeInvocationsRequest.Builder maxResults(Integer maxResults)
Valid values: 1 to 50. Default value: 10.
public DescribeInvocationsRequest.Builder nextToken(String nextToken)
public DescribeInvocationsRequest.Builder ownerAccount(String ownerAccount)
public DescribeInvocationsRequest.Builder ownerId(Long ownerId)
public DescribeInvocationsRequest.Builder pageNumber(Long pageNumber)
Page numbers start from 1. Default value: 1.
public DescribeInvocationsRequest.Builder pageSize(Long pageSize)
Maximum value: 50. Default value: 10.
public DescribeInvocationsRequest.Builder regionId(String regionId)
public DescribeInvocationsRequest.Builder repeatMode(String repeatMode)
* Once: The command is immediately run. * Period: The command is run on a schedule. * NextRebootOnly: The command is run the next time the instances start. * EveryReboot: The command is run every time the instances start. This parameter is empty by default, which indicates that commands run in all modes are queried.
public DescribeInvocationsRequest.Builder resourceGroupId(String resourceGroupId)
public DescribeInvocationsRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public DescribeInvocationsRequest.Builder resourceOwnerId(Long resourceOwnerId)
public DescribeInvocationsRequest.Builder tag(List<DescribeInvocationsRequest.Tag> tag)
public DescribeInvocationsRequest.Builder timed(Boolean timed)
* true: The command is run by calling the `RunCommand` or `InvokeCommand` operation with `RepeatMode` set to `Period`, `NextRebootOnly`, or `EveryReboot`. * false: The command meets one of the following requirements: * The command is run by calling the `RunCommand` or `InvokeCommand` operation with `RepeatMode` set to `Once`. * The command task is canceled, stopped, or completed. Default value: false.
public DescribeInvocationsRequest build()
Copyright © 2024. All rights reserved.