com.tencentcloudapi.as.v20180419.models.CreateScheduledActionRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* Copyright (c) 2017-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.
*/
package com.tencentcloudapi.as.v20180419.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreateScheduledActionRequest extends AbstractModel {
/**
* Auto scaling group ID
*/
@SerializedName("AutoScalingGroupId")
@Expose
private String AutoScalingGroupId;
/**
* Scheduled task name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 60 bytes and must be unique in an auto scaling group.
*/
@SerializedName("ScheduledActionName")
@Expose
private String ScheduledActionName;
/**
* The maximum number of instances set for the auto scaling group when the scheduled task is triggered.
*/
@SerializedName("MaxSize")
@Expose
private Long MaxSize;
/**
* The minimum number of instances set for the auto scaling group when the scheduled task is triggered.
*/
@SerializedName("MinSize")
@Expose
private Long MinSize;
/**
* The desired number of instances set for the auto scaling group when the scheduled task is triggered.
*/
@SerializedName("DesiredCapacity")
@Expose
private Long DesiredCapacity;
/**
* Initial triggered time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard.
*/
@SerializedName("StartTime")
@Expose
private String StartTime;
/**
* End time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard.
This parameter and `Recurrence` need to be specified at the same time. After the end time, the scheduled task will no longer take effect.
*/
@SerializedName("EndTime")
@Expose
private String EndTime;
/**
* Repeating mode of the scheduled task, which is in standard cron format.
This parameter and `EndTime` need to be specified at the same time.
*/
@SerializedName("Recurrence")
@Expose
private String Recurrence;
/**
* Get Auto scaling group ID
* @return AutoScalingGroupId Auto scaling group ID
*/
public String getAutoScalingGroupId() {
return this.AutoScalingGroupId;
}
/**
* Set Auto scaling group ID
* @param AutoScalingGroupId Auto scaling group ID
*/
public void setAutoScalingGroupId(String AutoScalingGroupId) {
this.AutoScalingGroupId = AutoScalingGroupId;
}
/**
* Get Scheduled task name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 60 bytes and must be unique in an auto scaling group.
* @return ScheduledActionName Scheduled task name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 60 bytes and must be unique in an auto scaling group.
*/
public String getScheduledActionName() {
return this.ScheduledActionName;
}
/**
* Set Scheduled task name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 60 bytes and must be unique in an auto scaling group.
* @param ScheduledActionName Scheduled task name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 60 bytes and must be unique in an auto scaling group.
*/
public void setScheduledActionName(String ScheduledActionName) {
this.ScheduledActionName = ScheduledActionName;
}
/**
* Get The maximum number of instances set for the auto scaling group when the scheduled task is triggered.
* @return MaxSize The maximum number of instances set for the auto scaling group when the scheduled task is triggered.
*/
public Long getMaxSize() {
return this.MaxSize;
}
/**
* Set The maximum number of instances set for the auto scaling group when the scheduled task is triggered.
* @param MaxSize The maximum number of instances set for the auto scaling group when the scheduled task is triggered.
*/
public void setMaxSize(Long MaxSize) {
this.MaxSize = MaxSize;
}
/**
* Get The minimum number of instances set for the auto scaling group when the scheduled task is triggered.
* @return MinSize The minimum number of instances set for the auto scaling group when the scheduled task is triggered.
*/
public Long getMinSize() {
return this.MinSize;
}
/**
* Set The minimum number of instances set for the auto scaling group when the scheduled task is triggered.
* @param MinSize The minimum number of instances set for the auto scaling group when the scheduled task is triggered.
*/
public void setMinSize(Long MinSize) {
this.MinSize = MinSize;
}
/**
* Get The desired number of instances set for the auto scaling group when the scheduled task is triggered.
* @return DesiredCapacity The desired number of instances set for the auto scaling group when the scheduled task is triggered.
*/
public Long getDesiredCapacity() {
return this.DesiredCapacity;
}
/**
* Set The desired number of instances set for the auto scaling group when the scheduled task is triggered.
* @param DesiredCapacity The desired number of instances set for the auto scaling group when the scheduled task is triggered.
*/
public void setDesiredCapacity(Long DesiredCapacity) {
this.DesiredCapacity = DesiredCapacity;
}
/**
* Get Initial triggered time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard.
* @return StartTime Initial triggered time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard.
*/
public String getStartTime() {
return this.StartTime;
}
/**
* Set Initial triggered time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard.
* @param StartTime Initial triggered time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard.
*/
public void setStartTime(String StartTime) {
this.StartTime = StartTime;
}
/**
* Get End time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard.
This parameter and `Recurrence` need to be specified at the same time. After the end time, the scheduled task will no longer take effect.
* @return EndTime End time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard.
This parameter and `Recurrence` need to be specified at the same time. After the end time, the scheduled task will no longer take effect.
*/
public String getEndTime() {
return this.EndTime;
}
/**
* Set End time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard.
This parameter and `Recurrence` need to be specified at the same time. After the end time, the scheduled task will no longer take effect.
* @param EndTime End time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard.
This parameter and `Recurrence` need to be specified at the same time. After the end time, the scheduled task will no longer take effect.
*/
public void setEndTime(String EndTime) {
this.EndTime = EndTime;
}
/**
* Get Repeating mode of the scheduled task, which is in standard cron format.
This parameter and `EndTime` need to be specified at the same time.
* @return Recurrence Repeating mode of the scheduled task, which is in standard cron format.
This parameter and `EndTime` need to be specified at the same time.
*/
public String getRecurrence() {
return this.Recurrence;
}
/**
* Set Repeating mode of the scheduled task, which is in standard cron format.
This parameter and `EndTime` need to be specified at the same time.
* @param Recurrence Repeating mode of the scheduled task, which is in standard cron format.
This parameter and `EndTime` need to be specified at the same time.
*/
public void setRecurrence(String Recurrence) {
this.Recurrence = Recurrence;
}
public CreateScheduledActionRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public CreateScheduledActionRequest(CreateScheduledActionRequest source) {
if (source.AutoScalingGroupId != null) {
this.AutoScalingGroupId = new String(source.AutoScalingGroupId);
}
if (source.ScheduledActionName != null) {
this.ScheduledActionName = new String(source.ScheduledActionName);
}
if (source.MaxSize != null) {
this.MaxSize = new Long(source.MaxSize);
}
if (source.MinSize != null) {
this.MinSize = new Long(source.MinSize);
}
if (source.DesiredCapacity != null) {
this.DesiredCapacity = new Long(source.DesiredCapacity);
}
if (source.StartTime != null) {
this.StartTime = new String(source.StartTime);
}
if (source.EndTime != null) {
this.EndTime = new String(source.EndTime);
}
if (source.Recurrence != null) {
this.Recurrence = new String(source.Recurrence);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap 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);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy