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

com.aliyun.sdk.service.cloudapi20160714.models.DescribeTrafficControlsResponseBody 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 DescribeTrafficControlsResponseBody} extends {@link TeaModel}
 *
 * 

DescribeTrafficControlsResponseBody

*/ public class DescribeTrafficControlsResponseBody extends TeaModel { @NameInMap("PageNumber") private Integer pageNumber; @NameInMap("PageSize") private Integer pageSize; @NameInMap("RequestId") private String requestId; @NameInMap("TotalCount") private Integer totalCount; @NameInMap("TrafficControls") private TrafficControls trafficControls; private DescribeTrafficControlsResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.trafficControls = builder.trafficControls; } public static Builder builder() { return new Builder(); } public static DescribeTrafficControlsResponseBody create() { return builder().build(); } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } /** * @return trafficControls */ public TrafficControls getTrafficControls() { return this.trafficControls; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; private TrafficControls trafficControls; /** * The number of entries returned per page. */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * The returned throttling policy information. It is an array consisting of TrafficControl data. */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * The total number of returned entries. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * The default throttling value for each user. */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } /** * The default throttling value for each API. */ public Builder trafficControls(TrafficControls trafficControls) { this.trafficControls = trafficControls; return this; } public DescribeTrafficControlsResponseBody build() { return new DescribeTrafficControlsResponseBody(this); } } public static class Special extends TeaModel { @NameInMap("SpecialKey") private String specialKey; @NameInMap("TrafficValue") private Integer trafficValue; private Special(Builder builder) { this.specialKey = builder.specialKey; this.trafficValue = builder.trafficValue; } public static Builder builder() { return new Builder(); } public static Special create() { return builder().build(); } /** * @return specialKey */ public String getSpecialKey() { return this.specialKey; } /** * @return trafficValue */ public Integer getTrafficValue() { return this.trafficValue; } public static final class Builder { private String specialKey; private Integer trafficValue; /** * Queries custom throttling policies and their details. Conditional queries are supported. */ public Builder specialKey(String specialKey) { this.specialKey = specialKey; return this; } /** * * This API is intended for API providers. *

* * This API can be used to query all existing throttling policies (including special throttling policies) and their details. * * You can specify query conditions. For example, you can query the throttling policies bound to a specified API or in a specified environment. */ public Builder trafficValue(Integer trafficValue) { this.trafficValue = trafficValue; return this; } public Special build() { return new Special(this); } } } public static class Specials extends TeaModel { @NameInMap("Special") private java.util.List < Special> special; private Specials(Builder builder) { this.special = builder.special; } public static Builder builder() { return new Builder(); } public static Specials create() { return builder().build(); } /** * @return special */ public java.util.List < Special> getSpecial() { return this.special; } public static final class Builder { private java.util.List < Special> special; /** * Special. */ public Builder special(java.util.List < Special> special) { this.special = special; return this; } public Specials build() { return new Specials(this); } } } public static class SpecialPolicy extends TeaModel { @NameInMap("SpecialType") private String specialType; @NameInMap("Specials") private Specials specials; private SpecialPolicy(Builder builder) { this.specialType = builder.specialType; this.specials = builder.specials; } public static Builder builder() { return new Builder(); } public static SpecialPolicy create() { return builder().build(); } /** * @return specialType */ public String getSpecialType() { return this.specialType; } /** * @return specials */ public Specials getSpecials() { return this.specials; } public static final class Builder { private String specialType; private Specials specials; /** * The throttling value. */ public Builder specialType(String specialType) { this.specialType = specialType; return this; } /** * The AppId or user account corresponding to SpecialType. */ public Builder specials(Specials specials) { this.specials = specials; return this; } public SpecialPolicy build() { return new SpecialPolicy(this); } } } public static class SpecialPolicies extends TeaModel { @NameInMap("SpecialPolicy") private java.util.List < SpecialPolicy> specialPolicy; private SpecialPolicies(Builder builder) { this.specialPolicy = builder.specialPolicy; } public static Builder builder() { return new Builder(); } public static SpecialPolicies create() { return builder().build(); } /** * @return specialPolicy */ public java.util.List < SpecialPolicy> getSpecialPolicy() { return this.specialPolicy; } public static final class Builder { private java.util.List < SpecialPolicy> specialPolicy; /** * SpecialPolicy. */ public Builder specialPolicy(java.util.List < SpecialPolicy> specialPolicy) { this.specialPolicy = specialPolicy; return this; } public SpecialPolicies build() { return new SpecialPolicies(this); } } } public static class TrafficControl extends TeaModel { @NameInMap("ApiDefault") private Integer apiDefault; @NameInMap("AppDefault") private Integer appDefault; @NameInMap("CreatedTime") private String createdTime; @NameInMap("Description") private String description; @NameInMap("ModifiedTime") private String modifiedTime; @NameInMap("SpecialPolicies") private SpecialPolicies specialPolicies; @NameInMap("TrafficControlId") private String trafficControlId; @NameInMap("TrafficControlName") private String trafficControlName; @NameInMap("TrafficControlUnit") private String trafficControlUnit; @NameInMap("UserDefault") private Integer userDefault; private TrafficControl(Builder builder) { this.apiDefault = builder.apiDefault; this.appDefault = builder.appDefault; this.createdTime = builder.createdTime; this.description = builder.description; this.modifiedTime = builder.modifiedTime; this.specialPolicies = builder.specialPolicies; 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 TrafficControl create() { return builder().build(); } /** * @return apiDefault */ public Integer getApiDefault() { return this.apiDefault; } /** * @return appDefault */ public Integer getAppDefault() { return this.appDefault; } /** * @return createdTime */ public String getCreatedTime() { return this.createdTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return modifiedTime */ public String getModifiedTime() { return this.modifiedTime; } /** * @return specialPolicies */ public SpecialPolicies getSpecialPolicies() { return this.specialPolicies; } /** * @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 { private Integer apiDefault; private Integer appDefault; private String createdTime; private String description; private String modifiedTime; private SpecialPolicies specialPolicies; private String trafficControlId; private String trafficControlName; private String trafficControlUnit; private Integer userDefault; /** * The description of the throttling policy. */ public Builder apiDefault(Integer apiDefault) { this.apiDefault = apiDefault; return this; } /** * The creation time (UTC) of the throttling policy. */ public Builder appDefault(Integer appDefault) { this.appDefault = appDefault; return this; } /** * The type of the special throttling policy. Valid values: *

* * * **APP** * * **USER** */ public Builder createdTime(String createdTime) { this.createdTime = createdTime; return this; } /** * The name of the throttling policy. */ public Builder description(String description) { this.description = description; return this; } /** * The unit to be used in the throttling policy. Valid values: *

* * * MINUTE * * HOUR * * DAY */ public Builder modifiedTime(String modifiedTime) { this.modifiedTime = modifiedTime; return this; } /** * The returned information about a special throttling policy. It is an array consisting of Special data. */ public Builder specialPolicies(SpecialPolicies specialPolicies) { this.specialPolicies = specialPolicies; return this; } /** * The returned information about a special throttling policy. It is an array consisting of SpecialPolicy data. */ public Builder trafficControlId(String trafficControlId) { this.trafficControlId = trafficControlId; return this; } /** * The ID of the throttling policy. */ public Builder trafficControlName(String trafficControlName) { this.trafficControlName = trafficControlName; return this; } /** * The default throttling value for each app. */ public Builder trafficControlUnit(String trafficControlUnit) { this.trafficControlUnit = trafficControlUnit; return this; } /** * The last modification time (UTC) of the throttling policy. */ public Builder userDefault(Integer userDefault) { this.userDefault = userDefault; return this; } public TrafficControl build() { return new TrafficControl(this); } } } public static class TrafficControls extends TeaModel { @NameInMap("TrafficControl") private java.util.List < TrafficControl> trafficControl; private TrafficControls(Builder builder) { this.trafficControl = builder.trafficControl; } public static Builder builder() { return new Builder(); } public static TrafficControls create() { return builder().build(); } /** * @return trafficControl */ public java.util.List < TrafficControl> getTrafficControl() { return this.trafficControl; } public static final class Builder { private java.util.List < TrafficControl> trafficControl; /** * TrafficControl. */ public Builder trafficControl(java.util.List < TrafficControl> trafficControl) { this.trafficControl = trafficControl; return this; } public TrafficControls build() { return new TrafficControls(this); } } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy