com.aliyun.ess20220222.models.ApplyEciScalingConfigurationRequest Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ess20220222.models;
import com.aliyun.tea.*;
public class ApplyEciScalingConfigurationRequest extends TeaModel {
/**
* The content of the configuration file.
* This parameter is required.
*
* example:
* apiVersion: apps/v1
* kind: Deployment
* metadata:
* name: nginx-deployment
* labels:
* app: nginx
* spec:
* replicas: 3
* selector:
* matchLabels:
* app: nginx
* template:
* metadata:
* labels:
* app: nginx
* annotations:
* k8s.aliyun.com/eip-bandwidth: 10
* k8s.aliyun.com/eci-with-eip: true
* spec:
* containers:
* - name: nginx
* image: nginx:1.14.2
* ports:
* - containerPort: 80
*/
@NameInMap("Content")
public String content;
/**
* Optional. Set the value to YAML.
*
* example:
* YAML
*/
@NameInMap("Format")
public String format;
/**
* The region ID.
*
* example:
* cn-qingdao
*/
@NameInMap("RegionId")
public String regionId;
/**
* 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.
*
* example:
* asc-bp1i65jd06v04vdh****
*/
@NameInMap("ScalingConfigurationId")
public String scalingConfigurationId;
/**
* The ID of the scaling group.
* This parameter is required.
*
* example:
* asg-bp1igpak5ft1flyp****
*/
@NameInMap("ScalingGroupId")
public String scalingGroupId;
public static ApplyEciScalingConfigurationRequest build(java.util.Map map) throws Exception {
ApplyEciScalingConfigurationRequest self = new ApplyEciScalingConfigurationRequest();
return TeaModel.build(map, self);
}
public ApplyEciScalingConfigurationRequest setContent(String content) {
this.content = content;
return this;
}
public String getContent() {
return this.content;
}
public ApplyEciScalingConfigurationRequest setFormat(String format) {
this.format = format;
return this;
}
public String getFormat() {
return this.format;
}
public ApplyEciScalingConfigurationRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public ApplyEciScalingConfigurationRequest setScalingConfigurationId(String scalingConfigurationId) {
this.scalingConfigurationId = scalingConfigurationId;
return this;
}
public String getScalingConfigurationId() {
return this.scalingConfigurationId;
}
public ApplyEciScalingConfigurationRequest setScalingGroupId(String scalingGroupId) {
this.scalingGroupId = scalingGroupId;
return this;
}
public String getScalingGroupId() {
return this.scalingGroupId;
}
}