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

com.aliyun.sdk.service.ess20220222.models.ApplyEciScalingConfigurationRequest Maven / Gradle / Ivy

The newest version!
// 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.

*

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

*/ public Builder content(String content) { this.putQueryParameter("Content", content); this.content = content; return this; } /** *

Optional. Set the value to YAML.

* * example: *

YAML

*/ public Builder format(String format) { this.putQueryParameter("Format", format); this.format = format; return this; } /** *

The region ID.

* * example: *

cn-qingdao

*/ 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.

* * example: *

asc-bp1i65jd06v04vdh****

*/ public Builder scalingConfigurationId(String scalingConfigurationId) { this.putQueryParameter("ScalingConfigurationId", scalingConfigurationId); this.scalingConfigurationId = scalingConfigurationId; return this; } /** *

The ID of the scaling group.

*

This parameter is required.

* * example: *

asg-bp1igpak5ft1flyp****

*/ public Builder scalingGroupId(String scalingGroupId) { this.putQueryParameter("ScalingGroupId", scalingGroupId); this.scalingGroupId = scalingGroupId; return this; } @Override public ApplyEciScalingConfigurationRequest build() { return new ApplyEciScalingConfigurationRequest(this); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy