com.aliyun.sdk.service.ess20220222.models.ApplyEciScalingConfigurationRequest Maven / Gradle / Ivy
Show all versions of alibabacloud-ess20220222 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ess20220222.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link ApplyEciScalingConfigurationRequest} extends {@link RequestModel}
*
* ApplyEciScalingConfigurationRequest
*/
public class ApplyEciScalingConfigurationRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Content")
@com.aliyun.core.annotation.Validation(required = true)
private String content;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Format")
private String format;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScalingConfigurationId")
private String scalingConfigurationId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScalingGroupId")
@com.aliyun.core.annotation.Validation(required = true)
private String scalingGroupId;
private ApplyEciScalingConfigurationRequest(Builder builder) {
super(builder);
this.content = builder.content;
this.format = builder.format;
this.regionId = builder.regionId;
this.scalingConfigurationId = builder.scalingConfigurationId;
this.scalingGroupId = builder.scalingGroupId;
}
public static Builder builder() {
return new Builder();
}
public static ApplyEciScalingConfigurationRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return content
*/
public String getContent() {
return this.content;
}
/**
* @return format
*/
public String getFormat() {
return this.format;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return scalingConfigurationId
*/
public String getScalingConfigurationId() {
return this.scalingConfigurationId;
}
/**
* @return scalingGroupId
*/
public String getScalingGroupId() {
return this.scalingGroupId;
}
public static final class Builder extends Request.Builder {
private String content;
private String format;
private String regionId;
private String scalingConfigurationId;
private String scalingGroupId;
private Builder() {
super();
}
private Builder(ApplyEciScalingConfigurationRequest request) {
super(request);
this.content = request.content;
this.format = request.format;
this.regionId = request.regionId;
this.scalingConfigurationId = request.scalingConfigurationId;
this.scalingGroupId = request.scalingGroupId;
}
/**
* The content of the configuration file.
*/
public Builder content(String content) {
this.putQueryParameter("Content", content);
this.content = content;
return this;
}
/**
* Optional. Set the value to YAML.
*/
public Builder format(String format) {
this.putQueryParameter("Format", format);
this.format = format;
return this;
}
/**
* The region ID.
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* The ID of the scaling configuration.
*
*
* If you want the system to update a scaling configuration of the Elastic Container Instance type based on a YAML configuration file, you must specify `ScalingConfigurationId`. If you do not specify `ScalingConfigurationId`, the system creates a new scaling configuration based on the YAML configuration file.
*/
public Builder scalingConfigurationId(String scalingConfigurationId) {
this.putQueryParameter("ScalingConfigurationId", scalingConfigurationId);
this.scalingConfigurationId = scalingConfigurationId;
return this;
}
/**
* The ID of the scaling group.
*/
public Builder scalingGroupId(String scalingGroupId) {
this.putQueryParameter("ScalingGroupId", scalingGroupId);
this.scalingGroupId = scalingGroupId;
return this;
}
@Override
public ApplyEciScalingConfigurationRequest build() {
return new ApplyEciScalingConfigurationRequest(this);
}
}
}