![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.lighthouse.v20200324.models.RenewDiskChargePrepaid 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.lighthouse.v20200324.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 RenewDiskChargePrepaid extends AbstractModel {
/**
* Renewal period
*/
@SerializedName("Period")
@Expose
private Long Period;
/**
* Whether to renew the disk automatically. Values:
`NOTIFY_AND_AUTO_RENEW`: Trigger expiration notification and renew automatically; `NOTIFY_AND_MANUAL_RENEW`: Trigger expiration notification but do not renew; `DISABLE_NOTIFY_AND_MANUAL_RENEW`: Do not trigger the notification and do not renew.
Default: `NOTIFY_AND_MANUAL_RENEW`. If `NOTIFY_AND_AUTO_RENEW` is specified, the instance is automatically renewed on a monthly basis when the account balance is sufficient.
*/
@SerializedName("RenewFlag")
@Expose
private String RenewFlag;
/**
* Unit of the period. Values: `m` (month).
*/
@SerializedName("TimeUnit")
@Expose
private String TimeUnit;
/**
* Expiration time of the current instance, such as "2018-01-01 00:00:00". Specify this parameter to align the expiration time of the instance and attached cloud disks. `CurInstanceDeadline` and `Period` cannot be both specified.
*/
@SerializedName("CurInstanceDeadline")
@Expose
private String CurInstanceDeadline;
/**
* Get Renewal period
* @return Period Renewal period
*/
public Long getPeriod() {
return this.Period;
}
/**
* Set Renewal period
* @param Period Renewal period
*/
public void setPeriod(Long Period) {
this.Period = Period;
}
/**
* Get Whether to renew the disk automatically. Values:
`NOTIFY_AND_AUTO_RENEW`: Trigger expiration notification and renew automatically; `NOTIFY_AND_MANUAL_RENEW`: Trigger expiration notification but do not renew; `DISABLE_NOTIFY_AND_MANUAL_RENEW`: Do not trigger the notification and do not renew.
Default: `NOTIFY_AND_MANUAL_RENEW`. If `NOTIFY_AND_AUTO_RENEW` is specified, the instance is automatically renewed on a monthly basis when the account balance is sufficient.
* @return RenewFlag Whether to renew the disk automatically. Values:
`NOTIFY_AND_AUTO_RENEW`: Trigger expiration notification and renew automatically; `NOTIFY_AND_MANUAL_RENEW`: Trigger expiration notification but do not renew; `DISABLE_NOTIFY_AND_MANUAL_RENEW`: Do not trigger the notification and do not renew.
Default: `NOTIFY_AND_MANUAL_RENEW`. If `NOTIFY_AND_AUTO_RENEW` is specified, the instance is automatically renewed on a monthly basis when the account balance is sufficient.
*/
public String getRenewFlag() {
return this.RenewFlag;
}
/**
* Set Whether to renew the disk automatically. Values:
`NOTIFY_AND_AUTO_RENEW`: Trigger expiration notification and renew automatically; `NOTIFY_AND_MANUAL_RENEW`: Trigger expiration notification but do not renew; `DISABLE_NOTIFY_AND_MANUAL_RENEW`: Do not trigger the notification and do not renew.
Default: `NOTIFY_AND_MANUAL_RENEW`. If `NOTIFY_AND_AUTO_RENEW` is specified, the instance is automatically renewed on a monthly basis when the account balance is sufficient.
* @param RenewFlag Whether to renew the disk automatically. Values:
`NOTIFY_AND_AUTO_RENEW`: Trigger expiration notification and renew automatically; `NOTIFY_AND_MANUAL_RENEW`: Trigger expiration notification but do not renew; `DISABLE_NOTIFY_AND_MANUAL_RENEW`: Do not trigger the notification and do not renew.
Default: `NOTIFY_AND_MANUAL_RENEW`. If `NOTIFY_AND_AUTO_RENEW` is specified, the instance is automatically renewed on a monthly basis when the account balance is sufficient.
*/
public void setRenewFlag(String RenewFlag) {
this.RenewFlag = RenewFlag;
}
/**
* Get Unit of the period. Values: `m` (month).
* @return TimeUnit Unit of the period. Values: `m` (month).
*/
public String getTimeUnit() {
return this.TimeUnit;
}
/**
* Set Unit of the period. Values: `m` (month).
* @param TimeUnit Unit of the period. Values: `m` (month).
*/
public void setTimeUnit(String TimeUnit) {
this.TimeUnit = TimeUnit;
}
/**
* Get Expiration time of the current instance, such as "2018-01-01 00:00:00". Specify this parameter to align the expiration time of the instance and attached cloud disks. `CurInstanceDeadline` and `Period` cannot be both specified.
* @return CurInstanceDeadline Expiration time of the current instance, such as "2018-01-01 00:00:00". Specify this parameter to align the expiration time of the instance and attached cloud disks. `CurInstanceDeadline` and `Period` cannot be both specified.
*/
public String getCurInstanceDeadline() {
return this.CurInstanceDeadline;
}
/**
* Set Expiration time of the current instance, such as "2018-01-01 00:00:00". Specify this parameter to align the expiration time of the instance and attached cloud disks. `CurInstanceDeadline` and `Period` cannot be both specified.
* @param CurInstanceDeadline Expiration time of the current instance, such as "2018-01-01 00:00:00". Specify this parameter to align the expiration time of the instance and attached cloud disks. `CurInstanceDeadline` and `Period` cannot be both specified.
*/
public void setCurInstanceDeadline(String CurInstanceDeadline) {
this.CurInstanceDeadline = CurInstanceDeadline;
}
public RenewDiskChargePrepaid() {
}
/**
* 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 RenewDiskChargePrepaid(RenewDiskChargePrepaid source) {
if (source.Period != null) {
this.Period = new Long(source.Period);
}
if (source.RenewFlag != null) {
this.RenewFlag = new String(source.RenewFlag);
}
if (source.TimeUnit != null) {
this.TimeUnit = new String(source.TimeUnit);
}
if (source.CurInstanceDeadline != null) {
this.CurInstanceDeadline = new String(source.CurInstanceDeadline);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Period", this.Period);
this.setParamSimple(map, prefix + "RenewFlag", this.RenewFlag);
this.setParamSimple(map, prefix + "TimeUnit", this.TimeUnit);
this.setParamSimple(map, prefix + "CurInstanceDeadline", this.CurInstanceDeadline);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy