/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.As.V20180419.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateScheduledActionRequest : AbstractModel
{
///
/// 伸缩组ID
///
[JsonProperty("AutoScalingGroupId")]
public string AutoScalingGroupId{ get; set; }
///
/// 定时任务名称。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点,最大长度不能超60个字节。同一伸缩组下必须唯一。
///
[JsonProperty("ScheduledActionName")]
public string ScheduledActionName{ get; set; }
///
/// 当定时任务触发时,设置的伸缩组最大实例数。
///
[JsonProperty("MaxSize")]
public ulong? MaxSize{ get; set; }
///
/// 当定时任务触发时,设置的伸缩组最小实例数。
///
[JsonProperty("MinSize")]
public ulong? MinSize{ get; set; }
///
/// 当定时任务触发时,设置的伸缩组期望实例数。
///
[JsonProperty("DesiredCapacity")]
public ulong? DesiredCapacity{ get; set; }
///
/// 定时任务的首次触发时间,取值为`北京时间`(UTC+8),按照`ISO8601`标准,格式:`YYYY-MM-DDThh:mm:ss+08:00`。
///
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
///
/// 定时任务的结束时间,取值为`北京时间`(UTC+8),按照`ISO8601`标准,格式:`YYYY-MM-DDThh:mm:ss+08:00`。
此参数与`Recurrence`需要同时指定,到达结束时间之后,定时任务将不再生效。
///
[JsonProperty("EndTime")]
public string EndTime{ get; set; }
///
/// 定时任务的重复方式。为标准 Cron 格式
此参数与`EndTime`需要同时指定。
///
[JsonProperty("Recurrence")]
public string Recurrence{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "AutoScalingGroupId", this.AutoScalingGroupId);
this.SetParamSimple(map, prefix + "ScheduledActionName", this.ScheduledActionName);
this.SetParamSimple(map, prefix + "MaxSize", this.MaxSize);
this.SetParamSimple(map, prefix + "MinSize", this.MinSize);
this.SetParamSimple(map, prefix + "DesiredCapacity", this.DesiredCapacity);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamSimple(map, prefix + "Recurrence", this.Recurrence);
}
}
}