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

com.aliyun.sdk.service.cloudapi20160714.models.ModifyTrafficControlRequest Maven / Gradle / Ivy

There is a newer version: 3.0.23
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cloudapi20160714.models;

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

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

ModifyTrafficControlRequest

*/ public class ModifyTrafficControlRequest extends Request { @Query @NameInMap("ApiDefault") private Integer apiDefault; @Query @NameInMap("AppDefault") private Integer appDefault; @Query @NameInMap("Description") private String description; @Query @NameInMap("SecurityToken") private String securityToken; @Query @NameInMap("TrafficControlId") @Validation(required = true) private String trafficControlId; @Query @NameInMap("TrafficControlName") private String trafficControlName; @Query @NameInMap("TrafficControlUnit") private String trafficControlUnit; @Query @NameInMap("UserDefault") private Integer userDefault; private ModifyTrafficControlRequest(Builder builder) { super(builder); this.apiDefault = builder.apiDefault; this.appDefault = builder.appDefault; this.description = builder.description; this.securityToken = builder.securityToken; this.trafficControlId = builder.trafficControlId; this.trafficControlName = builder.trafficControlName; this.trafficControlUnit = builder.trafficControlUnit; this.userDefault = builder.userDefault; } public static Builder builder() { return new Builder(); } public static ModifyTrafficControlRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return apiDefault */ public Integer getApiDefault() { return this.apiDefault; } /** * @return appDefault */ public Integer getAppDefault() { return this.appDefault; } /** * @return description */ public String getDescription() { return this.description; } /** * @return securityToken */ public String getSecurityToken() { return this.securityToken; } /** * @return trafficControlId */ public String getTrafficControlId() { return this.trafficControlId; } /** * @return trafficControlName */ public String getTrafficControlName() { return this.trafficControlName; } /** * @return trafficControlUnit */ public String getTrafficControlUnit() { return this.trafficControlUnit; } /** * @return userDefault */ public Integer getUserDefault() { return this.userDefault; } public static final class Builder extends Request.Builder { private Integer apiDefault; private Integer appDefault; private String description; private String securityToken; private String trafficControlId; private String trafficControlName; private String trafficControlUnit; private Integer userDefault; private Builder() { super(); } private Builder(ModifyTrafficControlRequest request) { super(request); this.apiDefault = request.apiDefault; this.appDefault = request.appDefault; this.description = request.description; this.securityToken = request.securityToken; this.trafficControlId = request.trafficControlId; this.trafficControlName = request.trafficControlName; this.trafficControlUnit = request.trafficControlUnit; this.userDefault = request.userDefault; } /** * The default throttling value for each app. */ public Builder apiDefault(Integer apiDefault) { this.putQueryParameter("ApiDefault", apiDefault); this.apiDefault = apiDefault; return this; } /** * ThrottlingTestDescription */ public Builder appDefault(Integer appDefault) { this.putQueryParameter("AppDefault", appDefault); this.appDefault = appDefault; return this; } /** * The ID of the request. */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * SecurityToken. */ public Builder securityToken(String securityToken) { this.putQueryParameter("SecurityToken", securityToken); this.securityToken = securityToken; return this; } /** * ThrottlingTest */ public Builder trafficControlId(String trafficControlId) { this.putQueryParameter("TrafficControlId", trafficControlId); this.trafficControlId = trafficControlId; return this; } /** * The unit to be used in the throttling policy. Valid values: *

* * * **SECOND** * * **MINUTE** * * **HOUR** * * **DAY** */ public Builder trafficControlName(String trafficControlName) { this.putQueryParameter("TrafficControlName", trafficControlName); this.trafficControlName = trafficControlName; return this; } /** * The default throttling value for each user. */ public Builder trafficControlUnit(String trafficControlUnit) { this.putQueryParameter("TrafficControlUnit", trafficControlUnit); this.trafficControlUnit = trafficControlUnit; return this; } /** * The description of the throttling policy. */ public Builder userDefault(Integer userDefault) { this.putQueryParameter("UserDefault", userDefault); this.userDefault = userDefault; return this; } @Override public ModifyTrafficControlRequest build() { return new ModifyTrafficControlRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy