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

com.aliyun.sdk.service.edas20170801.models.GetScalingRulesRequest Maven / Gradle / Ivy

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

import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link GetScalingRulesRequest} extends {@link RequestModel}
 *
 * 

GetScalingRulesRequest

*/ public class GetScalingRulesRequest extends Request { @Query @NameInMap("AppId") @Validation(required = true) private String appId; @Query @NameInMap("GroupId") @Validation(required = true) private String groupId; @Query @NameInMap("Mode") private String mode; private GetScalingRulesRequest(Builder builder) { super(builder); this.appId = builder.appId; this.groupId = builder.groupId; this.mode = builder.mode; } public static Builder builder() { return new Builder(); } public static GetScalingRulesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return appId */ public String getAppId() { return this.appId; } /** * @return groupId */ public String getGroupId() { return this.groupId; } /** * @return mode */ public String getMode() { return this.mode; } public static final class Builder extends Request.Builder { private String appId; private String groupId; private String mode; private Builder() { super(); } private Builder(GetScalingRulesRequest request) { super(request); this.appId = request.appId; this.groupId = request.groupId; this.mode = request.mode; } /** * The ID of the application. */ public Builder appId(String appId) { this.putQueryParameter("AppId", appId); this.appId = appId; return this; } /** * The ID of the instance group to which the application is deployed. */ public Builder groupId(String groupId) { this.putQueryParameter("GroupId", groupId); this.groupId = groupId; return this; } /** * The type of the scaling rule. You can leave this parameter empty. Valid values: *

* * * SCALE_IN: scale-in rules * * SCALE_OUT: scale-out rules */ public Builder mode(String mode) { this.putQueryParameter("Mode", mode); this.mode = mode; return this; } @Override public GetScalingRulesRequest build() { return new GetScalingRulesRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy