public static final class ModifyScheduledTaskRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyScheduledTaskRequest |
build() |
ModifyScheduledTaskRequest.Builder |
description(String description)
The description of the scheduled task.
|
ModifyScheduledTaskRequest.Builder |
desiredCapacity(Integer desiredCapacity)
The expected number of instances in the scaling group if you specify the ScalingGroupId parameter.
|
ModifyScheduledTaskRequest.Builder |
launchExpirationTime(Integer launchExpirationTime)
The time period during which the failed scheduled task is retried.
|
ModifyScheduledTaskRequest.Builder |
launchTime(String launchTime)
The point in time at which the scheduled task is triggered.
|
ModifyScheduledTaskRequest.Builder |
maxValue(Integer maxValue)
The maximum number of instances in the scaling group if you specify the ScalingGroupId parameter.
|
ModifyScheduledTaskRequest.Builder |
minValue(Integer minValue)
The minimum number of instances in the scaling group if you specify the ScalingGroupId parameter.
|
ModifyScheduledTaskRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
ModifyScheduledTaskRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
ModifyScheduledTaskRequest.Builder |
recurrenceEndTime(String recurrenceEndTime)
The end time of the scheduled task.
|
ModifyScheduledTaskRequest.Builder |
recurrenceType(String recurrenceType)
The interval at which the scheduled task is repeated.
|
ModifyScheduledTaskRequest.Builder |
recurrenceValue(String recurrenceValue)
The number of recurrences of the scheduled task.
|
ModifyScheduledTaskRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
ModifyScheduledTaskRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
ModifyScheduledTaskRequest.Builder |
scalingGroupId(String scalingGroupId)
The ID of the scaling group whose number of instances must be modified when the scheduled task is triggered.
|
ModifyScheduledTaskRequest.Builder |
scheduledAction(String scheduledAction)
The scaling rule that you want to execute when the scheduled task is triggered.
|
ModifyScheduledTaskRequest.Builder |
scheduledTaskId(String scheduledTaskId)
The ID of the scheduled task.
|
ModifyScheduledTaskRequest.Builder |
scheduledTaskName(String scheduledTaskName)
The name of the scheduled task.
|
ModifyScheduledTaskRequest.Builder |
taskEnabled(Boolean taskEnabled)
Specifies whether to enable the scheduled task.
|
public ModifyScheduledTaskRequest.Builder description(String description)
public ModifyScheduledTaskRequest.Builder desiredCapacity(Integer desiredCapacity)
> You must specify the `DesiredCapacity` parameter when you create a scaling group.
public ModifyScheduledTaskRequest.Builder launchExpirationTime(Integer launchExpirationTime)
Default value: 600.
public ModifyScheduledTaskRequest.Builder launchTime(String launchTime)
* If you specify the `RecurrenceType` parameter, the task is repeatedly executed at the time point that is specified by the LaunchTime parameter. * If you do not specify the `RecurrenceType` parameter, the task is executed only once at the point in time that is specified by the LaunchTime parameter.
public ModifyScheduledTaskRequest.Builder maxValue(Integer maxValue)
public ModifyScheduledTaskRequest.Builder minValue(Integer minValue)
public ModifyScheduledTaskRequest.Builder ownerAccount(String ownerAccount)
public ModifyScheduledTaskRequest.Builder ownerId(Long ownerId)
public ModifyScheduledTaskRequest.Builder recurrenceEndTime(String recurrenceEndTime)
public ModifyScheduledTaskRequest.Builder recurrenceType(String recurrenceType)
* Daily: The scheduled task is executed once every specified number of days. * Weekly: The scheduled task is executed on each specified day of the week. * Monthly: The scheduled task is executed on each specified day of the month. * Cron: The scheduled task is executed based on the specified cron expression. After you modify the scheduled task, the values that you specify for the `RecurrenceType` and `RecurrenceValue` parameters must be valid at the same time.
public ModifyScheduledTaskRequest.Builder recurrenceValue(String recurrenceValue)
* If you set the `RecurrenceType` parameter to `Daily`, you can specify only one value for this parameter. Valid values: 1 to 31. * If you set the `RecurrenceType` parameter to `Weekly`, you can specify multiple values for this parameter. Separate the values with commas (,). The values that correspond to Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday are 0, 1, 2, 3, 4, 5, and 6.`` * If you set the `RecurrenceType` parameter to `Monthly`, you can specify two values in the `A-B` format for this parameter. Valid values of A and B: 1 to 31. B must be greater than or equal to A. * If you set the `RecurrenceType` parameter to `Cron`, you can specify a cron expression. A cron expression is written in UTC time and consists of the following fields: minute, hour, day, month, and week. The expression can contain the letters L and W and the following wildcard characters: commas (,), question marks (?), hyphens (-), asterisks (\*), number signs (#), and forward slashes (/). After you modify the scheduled task, the values that you specify for the `RecurrenceType` and `RecurrenceValue` parameters must be valid at the same time.
public ModifyScheduledTaskRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyScheduledTaskRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ModifyScheduledTaskRequest.Builder scalingGroupId(String scalingGroupId)
> You cannot specify the `ScheduledAction` and `ScalingGroupId` parameters at the same time.
public ModifyScheduledTaskRequest.Builder scheduledAction(String scheduledAction)
> You can specify only one of `ScheduledAction` and `ScalingGroupId`.
public ModifyScheduledTaskRequest.Builder scheduledTaskId(String scheduledTaskId)
public ModifyScheduledTaskRequest.Builder scheduledTaskName(String scheduledTaskName)
public ModifyScheduledTaskRequest.Builder taskEnabled(Boolean taskEnabled)
* true * false Default value: true.
public ModifyScheduledTaskRequest build()
Copyright © 2024. All rights reserved.