All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.teo.v20220901.models.RenewPlanRequest Maven / Gradle / Ivy

There is a newer version: 3.0.1076
Show newest version
/*
 * 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 RenewPlanRequest extends AbstractModel {

    /**
    * Plan ID, formatted as edgeone-2unuvzjmmn2q.
    */
    @SerializedName("PlanId")
    @Expose
    private String PlanId;

    /**
    * Renewal plan duration, unit: month. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    */
    @SerializedName("Period")
    @Expose
    private Long Period;

    /**
    * Whether to automatically use a voucher. Valid values: 
  • true: Yes;
  • false: No.
  • If this field is not specified, the default value 'false' will be used. */ @SerializedName("AutoUseVoucher") @Expose private String AutoUseVoucher; /** * Get Plan ID, formatted as edgeone-2unuvzjmmn2q. * @return PlanId Plan ID, formatted as edgeone-2unuvzjmmn2q. */ public String getPlanId() { return this.PlanId; } /** * Set Plan ID, formatted as edgeone-2unuvzjmmn2q. * @param PlanId Plan ID, formatted as edgeone-2unuvzjmmn2q. */ public void setPlanId(String PlanId) { this.PlanId = PlanId; } /** * Get Renewal plan duration, unit: month. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. * @return Period Renewal plan duration, unit: month. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. */ public Long getPeriod() { return this.Period; } /** * Set Renewal plan duration, unit: month. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. * @param Period Renewal plan duration, unit: month. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. */ public void setPeriod(Long Period) { this.Period = Period; } /** * Get Whether to automatically use a voucher. Valid values:
  • true: Yes;
  • false: No.
  • If this field is not specified, the default value 'false' will be used. * @return AutoUseVoucher Whether to automatically use a voucher. Valid values:
  • true: Yes;
  • false: No.
  • If this field is not specified, the default value 'false' will be used. */ public String getAutoUseVoucher() { return this.AutoUseVoucher; } /** * Set Whether to automatically use a voucher. Valid values:
  • true: Yes;
  • false: No.
  • If this field is not specified, the default value 'false' will be used. * @param AutoUseVoucher Whether to automatically use a voucher. Valid values:
  • true: Yes;
  • false: No.
  • If this field is not specified, the default value 'false' will be used. */ public void setAutoUseVoucher(String AutoUseVoucher) { this.AutoUseVoucher = AutoUseVoucher; } public RenewPlanRequest() { } /** * 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 RenewPlanRequest(RenewPlanRequest source) { if (source.PlanId != null) { this.PlanId = new String(source.PlanId); } if (source.Period != null) { this.Period = new Long(source.Period); } if (source.AutoUseVoucher != null) { this.AutoUseVoucher = new String(source.AutoUseVoucher); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "PlanId", this.PlanId); this.setParamSimple(map, prefix + "Period", this.Period); this.setParamSimple(map, prefix + "AutoUseVoucher", this.AutoUseVoucher); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy