com.tencentcloudapi.apigateway.v20180808.models.UsagePlan Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.apigateway.v20180808.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class UsagePlan extends AbstractModel {
/**
* Environment name.
*/
@SerializedName("Environment")
@Expose
private String Environment;
/**
* Unique usage plan ID.
*/
@SerializedName("UsagePlanId")
@Expose
private String UsagePlanId;
/**
* Usage plan name.
*/
@SerializedName("UsagePlanName")
@Expose
private String UsagePlanName;
/**
* Usage plan description.
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("UsagePlanDesc")
@Expose
private String UsagePlanDesc;
/**
* Usage plan QPS. `-1` indicates no limit.
*/
@SerializedName("MaxRequestNumPreSec")
@Expose
private Long MaxRequestNumPreSec;
/**
* Usage plan time.
*/
@SerializedName("CreatedTime")
@Expose
private String CreatedTime;
/**
* Usage plan modification time.
*/
@SerializedName("ModifiedTime")
@Expose
private String ModifiedTime;
/**
* Get Environment name.
* @return Environment Environment name.
*/
public String getEnvironment() {
return this.Environment;
}
/**
* Set Environment name.
* @param Environment Environment name.
*/
public void setEnvironment(String Environment) {
this.Environment = Environment;
}
/**
* Get Unique usage plan ID.
* @return UsagePlanId Unique usage plan ID.
*/
public String getUsagePlanId() {
return this.UsagePlanId;
}
/**
* Set Unique usage plan ID.
* @param UsagePlanId Unique usage plan ID.
*/
public void setUsagePlanId(String UsagePlanId) {
this.UsagePlanId = UsagePlanId;
}
/**
* Get Usage plan name.
* @return UsagePlanName Usage plan name.
*/
public String getUsagePlanName() {
return this.UsagePlanName;
}
/**
* Set Usage plan name.
* @param UsagePlanName Usage plan name.
*/
public void setUsagePlanName(String UsagePlanName) {
this.UsagePlanName = UsagePlanName;
}
/**
* Get Usage plan description.
Note: This field may return null, indicating that no valid values can be obtained.
* @return UsagePlanDesc Usage plan description.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public String getUsagePlanDesc() {
return this.UsagePlanDesc;
}
/**
* Set Usage plan description.
Note: This field may return null, indicating that no valid values can be obtained.
* @param UsagePlanDesc Usage plan description.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setUsagePlanDesc(String UsagePlanDesc) {
this.UsagePlanDesc = UsagePlanDesc;
}
/**
* Get Usage plan QPS. `-1` indicates no limit.
* @return MaxRequestNumPreSec Usage plan QPS. `-1` indicates no limit.
*/
public Long getMaxRequestNumPreSec() {
return this.MaxRequestNumPreSec;
}
/**
* Set Usage plan QPS. `-1` indicates no limit.
* @param MaxRequestNumPreSec Usage plan QPS. `-1` indicates no limit.
*/
public void setMaxRequestNumPreSec(Long MaxRequestNumPreSec) {
this.MaxRequestNumPreSec = MaxRequestNumPreSec;
}
/**
* Get Usage plan time.
* @return CreatedTime Usage plan time.
*/
public String getCreatedTime() {
return this.CreatedTime;
}
/**
* Set Usage plan time.
* @param CreatedTime Usage plan time.
*/
public void setCreatedTime(String CreatedTime) {
this.CreatedTime = CreatedTime;
}
/**
* Get Usage plan modification time.
* @return ModifiedTime Usage plan modification time.
*/
public String getModifiedTime() {
return this.ModifiedTime;
}
/**
* Set Usage plan modification time.
* @param ModifiedTime Usage plan modification time.
*/
public void setModifiedTime(String ModifiedTime) {
this.ModifiedTime = ModifiedTime;
}
public UsagePlan() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public UsagePlan(UsagePlan source) {
if (source.Environment != null) {
this.Environment = new String(source.Environment);
}
if (source.UsagePlanId != null) {
this.UsagePlanId = new String(source.UsagePlanId);
}
if (source.UsagePlanName != null) {
this.UsagePlanName = new String(source.UsagePlanName);
}
if (source.UsagePlanDesc != null) {
this.UsagePlanDesc = new String(source.UsagePlanDesc);
}
if (source.MaxRequestNumPreSec != null) {
this.MaxRequestNumPreSec = new Long(source.MaxRequestNumPreSec);
}
if (source.CreatedTime != null) {
this.CreatedTime = new String(source.CreatedTime);
}
if (source.ModifiedTime != null) {
this.ModifiedTime = new String(source.ModifiedTime);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Environment", this.Environment);
this.setParamSimple(map, prefix + "UsagePlanId", this.UsagePlanId);
this.setParamSimple(map, prefix + "UsagePlanName", this.UsagePlanName);
this.setParamSimple(map, prefix + "UsagePlanDesc", this.UsagePlanDesc);
this.setParamSimple(map, prefix + "MaxRequestNumPreSec", this.MaxRequestNumPreSec);
this.setParamSimple(map, prefix + "CreatedTime", this.CreatedTime);
this.setParamSimple(map, prefix + "ModifiedTime", this.ModifiedTime);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy