![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.teo.v20220901.models.PlanInfo 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.teo.v20220901.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 PlanInfo extends AbstractModel {
/**
* Settlement currency. Values:
`CNY`: Settled by Chinese RMB;
`USD`: Settled by US dollars.
*/
@SerializedName("Currency")
@Expose
private String Currency;
/**
* Traffic quota of the plan. It includes the traffic for security acceleration, content acceleration and smart acceleration. Unit: byte.
*/
@SerializedName("Flux")
@Expose
private Long Flux;
/**
* Settlement cycle. Values:
`y`: Settled by year;
`m`: Settled by month;
`h`: Settled by hour;
`M`: Settled by minute;
`s`: Settled by second.
*/
@SerializedName("Frequency")
@Expose
private String Frequency;
/**
* The plan option. Values:
`sta`: Standard plan that supports content delivery network outside the Chinese mainland.
`sta_with_bot`: Standard plan that supports content delivery network outside the Chinese mainland and bot management.
`sta_cm`: Standard plan that supports content delivery network inside the Chinese mainland.
`sta_cm_with_bot`: Standard plan that supports content delivery network inside the Chinese mainland and bot management.
`sta`: Standard plan that supports content delivery network over the globe.
`sta_global_with_bot`: Standard plan that supports content delivery network over the globe and bot management.
`ent`: Enterprise plan that supports content delivery network outside the Chinese mainland.
`ent_with_bot`: Enterprise plan that supports content delivery network outside the Chinese mainland and bot management.
`ent_cm`: Enterprise plan that supports content delivery network inside the Chinese mainland.
`ent_cm_with_bot`: Enterprise plan that supports content delivery network inside the Chinese mainland and bot management.
`ent_global`: Enterprise plan that supports content delivery network over the globe.
`ent_global_with_bot`: Enterprise plan that supports content delivery network over the globe and bot management.
*/
@SerializedName("PlanType")
@Expose
private String PlanType;
/**
* Plan price (in CNY fen/US cent). The price unit depends on the settlement currency.
*/
@SerializedName("Price")
@Expose
private Float Price;
/**
* Quota on security acceleration requests
*/
@SerializedName("Request")
@Expose
private Long Request;
/**
* Number of sites to be bound to the plan
*/
@SerializedName("SiteNumber")
@Expose
private Long SiteNumber;
/**
* The acceleration region. Values:
`mainland`: Chinese mainland
`overseas`: Global (Chinese mainland not included)
`global`: Global (Chinese mainland included)
*/
@SerializedName("Area")
@Expose
private String Area;
/**
* Get Settlement currency. Values:
`CNY`: Settled by Chinese RMB;
`USD`: Settled by US dollars.
* @return Currency Settlement currency. Values:
`CNY`: Settled by Chinese RMB;
`USD`: Settled by US dollars.
*/
public String getCurrency() {
return this.Currency;
}
/**
* Set Settlement currency. Values:
`CNY`: Settled by Chinese RMB;
`USD`: Settled by US dollars.
* @param Currency Settlement currency. Values:
`CNY`: Settled by Chinese RMB;
`USD`: Settled by US dollars.
*/
public void setCurrency(String Currency) {
this.Currency = Currency;
}
/**
* Get Traffic quota of the plan. It includes the traffic for security acceleration, content acceleration and smart acceleration. Unit: byte.
* @return Flux Traffic quota of the plan. It includes the traffic for security acceleration, content acceleration and smart acceleration. Unit: byte.
*/
public Long getFlux() {
return this.Flux;
}
/**
* Set Traffic quota of the plan. It includes the traffic for security acceleration, content acceleration and smart acceleration. Unit: byte.
* @param Flux Traffic quota of the plan. It includes the traffic for security acceleration, content acceleration and smart acceleration. Unit: byte.
*/
public void setFlux(Long Flux) {
this.Flux = Flux;
}
/**
* Get Settlement cycle. Values:
`y`: Settled by year;
`m`: Settled by month;
`h`: Settled by hour;
`M`: Settled by minute;
`s`: Settled by second.
* @return Frequency Settlement cycle. Values:
`y`: Settled by year;
`m`: Settled by month;
`h`: Settled by hour;
`M`: Settled by minute;
`s`: Settled by second.
*/
public String getFrequency() {
return this.Frequency;
}
/**
* Set Settlement cycle. Values:
`y`: Settled by year;
`m`: Settled by month;
`h`: Settled by hour;
`M`: Settled by minute;
`s`: Settled by second.
* @param Frequency Settlement cycle. Values:
`y`: Settled by year;
`m`: Settled by month;
`h`: Settled by hour;
`M`: Settled by minute;
`s`: Settled by second.
*/
public void setFrequency(String Frequency) {
this.Frequency = Frequency;
}
/**
* Get The plan option. Values:
`sta`: Standard plan that supports content delivery network outside the Chinese mainland.
`sta_with_bot`: Standard plan that supports content delivery network outside the Chinese mainland and bot management.
`sta_cm`: Standard plan that supports content delivery network inside the Chinese mainland.
`sta_cm_with_bot`: Standard plan that supports content delivery network inside the Chinese mainland and bot management.
`sta`: Standard plan that supports content delivery network over the globe.
`sta_global_with_bot`: Standard plan that supports content delivery network over the globe and bot management.
`ent`: Enterprise plan that supports content delivery network outside the Chinese mainland.
`ent_with_bot`: Enterprise plan that supports content delivery network outside the Chinese mainland and bot management.
`ent_cm`: Enterprise plan that supports content delivery network inside the Chinese mainland.
`ent_cm_with_bot`: Enterprise plan that supports content delivery network inside the Chinese mainland and bot management.
`ent_global`: Enterprise plan that supports content delivery network over the globe.
`ent_global_with_bot`: Enterprise plan that supports content delivery network over the globe and bot management.
* @return PlanType The plan option. Values:
`sta`: Standard plan that supports content delivery network outside the Chinese mainland.
`sta_with_bot`: Standard plan that supports content delivery network outside the Chinese mainland and bot management.
`sta_cm`: Standard plan that supports content delivery network inside the Chinese mainland.
`sta_cm_with_bot`: Standard plan that supports content delivery network inside the Chinese mainland and bot management.
`sta`: Standard plan that supports content delivery network over the globe.
`sta_global_with_bot`: Standard plan that supports content delivery network over the globe and bot management.
`ent`: Enterprise plan that supports content delivery network outside the Chinese mainland.
`ent_with_bot`: Enterprise plan that supports content delivery network outside the Chinese mainland and bot management.
`ent_cm`: Enterprise plan that supports content delivery network inside the Chinese mainland.
`ent_cm_with_bot`: Enterprise plan that supports content delivery network inside the Chinese mainland and bot management.
`ent_global`: Enterprise plan that supports content delivery network over the globe.
`ent_global_with_bot`: Enterprise plan that supports content delivery network over the globe and bot management.
*/
public String getPlanType() {
return this.PlanType;
}
/**
* Set The plan option. Values:
`sta`: Standard plan that supports content delivery network outside the Chinese mainland.
`sta_with_bot`: Standard plan that supports content delivery network outside the Chinese mainland and bot management.
`sta_cm`: Standard plan that supports content delivery network inside the Chinese mainland.
`sta_cm_with_bot`: Standard plan that supports content delivery network inside the Chinese mainland and bot management.
`sta`: Standard plan that supports content delivery network over the globe.
`sta_global_with_bot`: Standard plan that supports content delivery network over the globe and bot management.
`ent`: Enterprise plan that supports content delivery network outside the Chinese mainland.
`ent_with_bot`: Enterprise plan that supports content delivery network outside the Chinese mainland and bot management.
`ent_cm`: Enterprise plan that supports content delivery network inside the Chinese mainland.
`ent_cm_with_bot`: Enterprise plan that supports content delivery network inside the Chinese mainland and bot management.
`ent_global`: Enterprise plan that supports content delivery network over the globe.
`ent_global_with_bot`: Enterprise plan that supports content delivery network over the globe and bot management.
* @param PlanType The plan option. Values:
`sta`: Standard plan that supports content delivery network outside the Chinese mainland.
`sta_with_bot`: Standard plan that supports content delivery network outside the Chinese mainland and bot management.
`sta_cm`: Standard plan that supports content delivery network inside the Chinese mainland.
`sta_cm_with_bot`: Standard plan that supports content delivery network inside the Chinese mainland and bot management.
`sta`: Standard plan that supports content delivery network over the globe.
`sta_global_with_bot`: Standard plan that supports content delivery network over the globe and bot management.
`ent`: Enterprise plan that supports content delivery network outside the Chinese mainland.
`ent_with_bot`: Enterprise plan that supports content delivery network outside the Chinese mainland and bot management.
`ent_cm`: Enterprise plan that supports content delivery network inside the Chinese mainland.
`ent_cm_with_bot`: Enterprise plan that supports content delivery network inside the Chinese mainland and bot management.
`ent_global`: Enterprise plan that supports content delivery network over the globe.
`ent_global_with_bot`: Enterprise plan that supports content delivery network over the globe and bot management.
*/
public void setPlanType(String PlanType) {
this.PlanType = PlanType;
}
/**
* Get Plan price (in CNY fen/US cent). The price unit depends on the settlement currency.
* @return Price Plan price (in CNY fen/US cent). The price unit depends on the settlement currency.
*/
public Float getPrice() {
return this.Price;
}
/**
* Set Plan price (in CNY fen/US cent). The price unit depends on the settlement currency.
* @param Price Plan price (in CNY fen/US cent). The price unit depends on the settlement currency.
*/
public void setPrice(Float Price) {
this.Price = Price;
}
/**
* Get Quota on security acceleration requests
* @return Request Quota on security acceleration requests
*/
public Long getRequest() {
return this.Request;
}
/**
* Set Quota on security acceleration requests
* @param Request Quota on security acceleration requests
*/
public void setRequest(Long Request) {
this.Request = Request;
}
/**
* Get Number of sites to be bound to the plan
* @return SiteNumber Number of sites to be bound to the plan
*/
public Long getSiteNumber() {
return this.SiteNumber;
}
/**
* Set Number of sites to be bound to the plan
* @param SiteNumber Number of sites to be bound to the plan
*/
public void setSiteNumber(Long SiteNumber) {
this.SiteNumber = SiteNumber;
}
/**
* Get The acceleration region. Values:
`mainland`: Chinese mainland
`overseas`: Global (Chinese mainland not included)
`global`: Global (Chinese mainland included)
* @return Area The acceleration region. Values:
`mainland`: Chinese mainland
`overseas`: Global (Chinese mainland not included)
`global`: Global (Chinese mainland included)
*/
public String getArea() {
return this.Area;
}
/**
* Set The acceleration region. Values:
`mainland`: Chinese mainland
`overseas`: Global (Chinese mainland not included)
`global`: Global (Chinese mainland included)
* @param Area The acceleration region. Values:
`mainland`: Chinese mainland
`overseas`: Global (Chinese mainland not included)
`global`: Global (Chinese mainland included)
*/
public void setArea(String Area) {
this.Area = Area;
}
public PlanInfo() {
}
/**
* 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 PlanInfo(PlanInfo source) {
if (source.Currency != null) {
this.Currency = new String(source.Currency);
}
if (source.Flux != null) {
this.Flux = new Long(source.Flux);
}
if (source.Frequency != null) {
this.Frequency = new String(source.Frequency);
}
if (source.PlanType != null) {
this.PlanType = new String(source.PlanType);
}
if (source.Price != null) {
this.Price = new Float(source.Price);
}
if (source.Request != null) {
this.Request = new Long(source.Request);
}
if (source.SiteNumber != null) {
this.SiteNumber = new Long(source.SiteNumber);
}
if (source.Area != null) {
this.Area = new String(source.Area);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Currency", this.Currency);
this.setParamSimple(map, prefix + "Flux", this.Flux);
this.setParamSimple(map, prefix + "Frequency", this.Frequency);
this.setParamSimple(map, prefix + "PlanType", this.PlanType);
this.setParamSimple(map, prefix + "Price", this.Price);
this.setParamSimple(map, prefix + "Request", this.Request);
this.setParamSimple(map, prefix + "SiteNumber", this.SiteNumber);
this.setParamSimple(map, prefix + "Area", this.Area);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy