
com.tencentcloudapi.teo.v20220901.models.Resource Maven / Gradle / Ivy
/*
* 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.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class Resource extends AbstractModel{
/**
* 资源 ID。
*/
@SerializedName("Id")
@Expose
private String Id;
/**
* 付费模式,取值有:
0:后付费。
*/
@SerializedName("PayMode")
@Expose
private Long PayMode;
/**
* 创建时间。
*/
@SerializedName("CreateTime")
@Expose
private String CreateTime;
/**
* 生效时间。
*/
@SerializedName("EnableTime")
@Expose
private String EnableTime;
/**
* 失效时间。
*/
@SerializedName("ExpireTime")
@Expose
private String ExpireTime;
/**
* 套餐状态,取值有:
normal:正常;
isolated:隔离;
destroyed:销毁。
*/
@SerializedName("Status")
@Expose
private String Status;
/**
* 询价参数。
*/
@SerializedName("Sv")
@Expose
private Sv [] Sv;
/**
* 是否自动续费,取值有:
0:默认状态;
1:自动续费;
2:不自动续费。
*/
@SerializedName("AutoRenewFlag")
@Expose
private Long AutoRenewFlag;
/**
* 套餐关联资源 ID。
*/
@SerializedName("PlanId")
@Expose
private String PlanId;
/**
* 地域,取值有:
mainland:国内;
overseas:海外。
*/
@SerializedName("Area")
@Expose
private String Area;
/**
* Get 资源 ID。
* @return Id 资源 ID。
*/
public String getId() {
return this.Id;
}
/**
* Set 资源 ID。
* @param Id 资源 ID。
*/
public void setId(String Id) {
this.Id = Id;
}
/**
* Get 付费模式,取值有:
0:后付费。
* @return PayMode 付费模式,取值有:
0:后付费。
*/
public Long getPayMode() {
return this.PayMode;
}
/**
* Set 付费模式,取值有:
0:后付费。
* @param PayMode 付费模式,取值有:
0:后付费。
*/
public void setPayMode(Long PayMode) {
this.PayMode = PayMode;
}
/**
* Get 创建时间。
* @return CreateTime 创建时间。
*/
public String getCreateTime() {
return this.CreateTime;
}
/**
* Set 创建时间。
* @param CreateTime 创建时间。
*/
public void setCreateTime(String CreateTime) {
this.CreateTime = CreateTime;
}
/**
* Get 生效时间。
* @return EnableTime 生效时间。
*/
public String getEnableTime() {
return this.EnableTime;
}
/**
* Set 生效时间。
* @param EnableTime 生效时间。
*/
public void setEnableTime(String EnableTime) {
this.EnableTime = EnableTime;
}
/**
* Get 失效时间。
* @return ExpireTime 失效时间。
*/
public String getExpireTime() {
return this.ExpireTime;
}
/**
* Set 失效时间。
* @param ExpireTime 失效时间。
*/
public void setExpireTime(String ExpireTime) {
this.ExpireTime = ExpireTime;
}
/**
* Get 套餐状态,取值有:
normal:正常;
isolated:隔离;
destroyed:销毁。
* @return Status 套餐状态,取值有:
normal:正常;
isolated:隔离;
destroyed:销毁。
*/
public String getStatus() {
return this.Status;
}
/**
* Set 套餐状态,取值有:
normal:正常;
isolated:隔离;
destroyed:销毁。
* @param Status 套餐状态,取值有:
normal:正常;
isolated:隔离;
destroyed:销毁。
*/
public void setStatus(String Status) {
this.Status = Status;
}
/**
* Get 询价参数。
* @return Sv 询价参数。
*/
public Sv [] getSv() {
return this.Sv;
}
/**
* Set 询价参数。
* @param Sv 询价参数。
*/
public void setSv(Sv [] Sv) {
this.Sv = Sv;
}
/**
* Get 是否自动续费,取值有:
0:默认状态;
1:自动续费;
2:不自动续费。
* @return AutoRenewFlag 是否自动续费,取值有:
0:默认状态;
1:自动续费;
2:不自动续费。
*/
public Long getAutoRenewFlag() {
return this.AutoRenewFlag;
}
/**
* Set 是否自动续费,取值有:
0:默认状态;
1:自动续费;
2:不自动续费。
* @param AutoRenewFlag 是否自动续费,取值有:
0:默认状态;
1:自动续费;
2:不自动续费。
*/
public void setAutoRenewFlag(Long AutoRenewFlag) {
this.AutoRenewFlag = AutoRenewFlag;
}
/**
* Get 套餐关联资源 ID。
* @return PlanId 套餐关联资源 ID。
*/
public String getPlanId() {
return this.PlanId;
}
/**
* Set 套餐关联资源 ID。
* @param PlanId 套餐关联资源 ID。
*/
public void setPlanId(String PlanId) {
this.PlanId = PlanId;
}
/**
* Get 地域,取值有:
mainland:国内;
overseas:海外。
* @return Area 地域,取值有:
mainland:国内;
overseas:海外。
*/
public String getArea() {
return this.Area;
}
/**
* Set 地域,取值有:
mainland:国内;
overseas:海外。
* @param Area 地域,取值有:
mainland:国内;
overseas:海外。
*/
public void setArea(String Area) {
this.Area = Area;
}
public Resource() {
}
/**
* 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 Resource(Resource source) {
if (source.Id != null) {
this.Id = new String(source.Id);
}
if (source.PayMode != null) {
this.PayMode = new Long(source.PayMode);
}
if (source.CreateTime != null) {
this.CreateTime = new String(source.CreateTime);
}
if (source.EnableTime != null) {
this.EnableTime = new String(source.EnableTime);
}
if (source.ExpireTime != null) {
this.ExpireTime = new String(source.ExpireTime);
}
if (source.Status != null) {
this.Status = new String(source.Status);
}
if (source.Sv != null) {
this.Sv = new Sv[source.Sv.length];
for (int i = 0; i < source.Sv.length; i++) {
this.Sv[i] = new Sv(source.Sv[i]);
}
}
if (source.AutoRenewFlag != null) {
this.AutoRenewFlag = new Long(source.AutoRenewFlag);
}
if (source.PlanId != null) {
this.PlanId = new String(source.PlanId);
}
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 + "Id", this.Id);
this.setParamSimple(map, prefix + "PayMode", this.PayMode);
this.setParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.setParamSimple(map, prefix + "EnableTime", this.EnableTime);
this.setParamSimple(map, prefix + "ExpireTime", this.ExpireTime);
this.setParamSimple(map, prefix + "Status", this.Status);
this.setParamArrayObj(map, prefix + "Sv.", this.Sv);
this.setParamSimple(map, prefix + "AutoRenewFlag", this.AutoRenewFlag);
this.setParamSimple(map, prefix + "PlanId", this.PlanId);
this.setParamSimple(map, prefix + "Area", this.Area);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy