com.tencentcloudapi.mariadb.v20170312.models.DescribeRenewalPriceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-mariadb Show documentation
Show all versions of tencentcloud-sdk-java-mariadb Show documentation
Tencent Cloud Open 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.mariadb.v20170312.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 DescribeRenewalPriceRequest extends AbstractModel {
/**
* 待续费的实例ID。形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* 续费时长,单位:月。不传则默认为1个月。
*/
@SerializedName("Period")
@Expose
private Long Period;
/**
* 价格金额单位,不传默认单位为分,取值:
* pent:分
* microPent:微分
*/
@SerializedName("AmountUnit")
@Expose
private String AmountUnit;
/**
* Get 待续费的实例ID。形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。
* @return InstanceId 待续费的实例ID。形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set 待续费的实例ID。形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。
* @param InstanceId 待续费的实例ID。形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get 续费时长,单位:月。不传则默认为1个月。
* @return Period 续费时长,单位:月。不传则默认为1个月。
*/
public Long getPeriod() {
return this.Period;
}
/**
* Set 续费时长,单位:月。不传则默认为1个月。
* @param Period 续费时长,单位:月。不传则默认为1个月。
*/
public void setPeriod(Long Period) {
this.Period = Period;
}
/**
* Get 价格金额单位,不传默认单位为分,取值:
* pent:分
* microPent:微分
* @return AmountUnit 价格金额单位,不传默认单位为分,取值:
* pent:分
* microPent:微分
*/
public String getAmountUnit() {
return this.AmountUnit;
}
/**
* Set 价格金额单位,不传默认单位为分,取值:
* pent:分
* microPent:微分
* @param AmountUnit 价格金额单位,不传默认单位为分,取值:
* pent:分
* microPent:微分
*/
public void setAmountUnit(String AmountUnit) {
this.AmountUnit = AmountUnit;
}
public DescribeRenewalPriceRequest() {
}
/**
* 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 DescribeRenewalPriceRequest(DescribeRenewalPriceRequest source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.Period != null) {
this.Period = new Long(source.Period);
}
if (source.AmountUnit != null) {
this.AmountUnit = new String(source.AmountUnit);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamSimple(map, prefix + "Period", this.Period);
this.setParamSimple(map, prefix + "AmountUnit", this.AmountUnit);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy