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

com.aliyun.ess20220222.models.ExecuteScalingRuleRequest Maven / Gradle / Ivy

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

import com.aliyun.tea.*;

public class ExecuteScalingRuleRequest extends TeaModel {
    /**
     * 

The threshold specified when the step scaling rule is executed. Valid values: -9.999999E18 to 9.999999E18.

* * example: *

1.0

*/ @NameInMap("BreachThreshold") public Float breachThreshold; /** *

The client token that is used to ensure the idempotence of the request.

*

You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see Ensure idempotence.

* * example: *

123e4567-e89b-12d3-a456-426655440000

*/ @NameInMap("ClientToken") public String clientToken; /** *

The metric value specified when the step scaling rule is executed. Valid values: -9.999999E18 to 9.999999E18.

* * example: *

1.0

*/ @NameInMap("MetricValue") public Float metricValue; @NameInMap("OwnerAccount") public String ownerAccount; @NameInMap("OwnerId") public Long ownerId; /** *

The region ID of the scaling group.

* * example: *

cn-qingdao

*/ @NameInMap("RegionId") public String regionId; @NameInMap("ResourceOwnerAccount") public String resourceOwnerAccount; @NameInMap("ResourceOwnerId") public Long resourceOwnerId; /** *

The unique identifier of the scaling rule.

*
*

You can call this operation to execute simple scaling rules and step scaling rules. If you want to call this operation to execute a step scaling rule, you must specify BreachThreshold and MetricValue.

*
*

This parameter is required.

* * example: *

ari:acs:ess:cn-hangzhou:140692647406****:scalingrule/asr-bp1dvirgwkoowxk7****

*/ @NameInMap("ScalingRuleAri") public String scalingRuleAri; public static ExecuteScalingRuleRequest build(java.util.Map map) throws Exception { ExecuteScalingRuleRequest self = new ExecuteScalingRuleRequest(); return TeaModel.build(map, self); } public ExecuteScalingRuleRequest setBreachThreshold(Float breachThreshold) { this.breachThreshold = breachThreshold; return this; } public Float getBreachThreshold() { return this.breachThreshold; } public ExecuteScalingRuleRequest setClientToken(String clientToken) { this.clientToken = clientToken; return this; } public String getClientToken() { return this.clientToken; } public ExecuteScalingRuleRequest setMetricValue(Float metricValue) { this.metricValue = metricValue; return this; } public Float getMetricValue() { return this.metricValue; } public ExecuteScalingRuleRequest setOwnerAccount(String ownerAccount) { this.ownerAccount = ownerAccount; return this; } public String getOwnerAccount() { return this.ownerAccount; } public ExecuteScalingRuleRequest setOwnerId(Long ownerId) { this.ownerId = ownerId; return this; } public Long getOwnerId() { return this.ownerId; } public ExecuteScalingRuleRequest setRegionId(String regionId) { this.regionId = regionId; return this; } public String getRegionId() { return this.regionId; } public ExecuteScalingRuleRequest setResourceOwnerAccount(String resourceOwnerAccount) { this.resourceOwnerAccount = resourceOwnerAccount; return this; } public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } public ExecuteScalingRuleRequest setResourceOwnerId(Long resourceOwnerId) { this.resourceOwnerId = resourceOwnerId; return this; } public Long getResourceOwnerId() { return this.resourceOwnerId; } public ExecuteScalingRuleRequest setScalingRuleAri(String scalingRuleAri) { this.scalingRuleAri = scalingRuleAri; return this; } public String getScalingRuleAri() { return this.scalingRuleAri; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy