All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.eas20210701.models.CreateServiceCronScalerRequest Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.eas20210701.models;

import com.aliyun.tea.*;

public class CreateServiceCronScalerRequest extends TeaModel {
    /**
     * 

The points in time that are excluded when you schedule a CronHPA job. The points in time must be specified by using a cron expression.

*/ @NameInMap("ExcludeDates") public java.util.List excludeDates; /** *

The description of the CronHPA job.

*

This parameter is required.

*/ @NameInMap("ScaleJobs") public java.util.List scaleJobs; public static CreateServiceCronScalerRequest build(java.util.Map map) throws Exception { CreateServiceCronScalerRequest self = new CreateServiceCronScalerRequest(); return TeaModel.build(map, self); } public CreateServiceCronScalerRequest setExcludeDates(java.util.List excludeDates) { this.excludeDates = excludeDates; return this; } public java.util.List getExcludeDates() { return this.excludeDates; } public CreateServiceCronScalerRequest setScaleJobs(java.util.List scaleJobs) { this.scaleJobs = scaleJobs; return this; } public java.util.List getScaleJobs() { return this.scaleJobs; } public static class CreateServiceCronScalerRequestScaleJobs extends TeaModel { /** *

The name of the CronHPA job.

* * example: *

scale-job-1

*/ @NameInMap("Name") public String name; /** *

The cron expression that is used to configure the execution time of the CronHPA job. For more information about how to configure cron expressions, see Description of special characters in this topic.

*

This parameter is required.

* * example: *

0 18 * * * *

*/ @NameInMap("Schedule") public String schedule; /** *

The number of instances that you want to configure for the CronHPA job.

*

This parameter is required.

* * example: *

1

*/ @NameInMap("TargetSize") public Integer targetSize; public static CreateServiceCronScalerRequestScaleJobs build(java.util.Map map) throws Exception { CreateServiceCronScalerRequestScaleJobs self = new CreateServiceCronScalerRequestScaleJobs(); return TeaModel.build(map, self); } public CreateServiceCronScalerRequestScaleJobs setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public CreateServiceCronScalerRequestScaleJobs setSchedule(String schedule) { this.schedule = schedule; return this; } public String getSchedule() { return this.schedule; } public CreateServiceCronScalerRequestScaleJobs setTargetSize(Integer targetSize) { this.targetSize = targetSize; return this; } public Integer getTargetSize() { return this.targetSize; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy