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

com.tencentcloudapi.cvm.v20170312.models.PurchaseReservedInstancesOfferingRequest Maven / Gradle / Ivy

There is a newer version: 3.0.1034
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.cvm.v20170312.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class PurchaseReservedInstancesOfferingRequest extends AbstractModel{

    /**
    * The number of the Reserved Instance you are purchasing.
    */
    @SerializedName("InstanceCount")
    @Expose
    private Long InstanceCount;

    /**
    * The ID of the Reserved Instance.
    */
    @SerializedName("ReservedInstancesOfferingId")
    @Expose
    private String ReservedInstancesOfferingId;

    /**
    * Dry run
    */
    @SerializedName("DryRun")
    @Expose
    private Boolean DryRun;

    /**
    * A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.
For more information, see Ensuring Idempotency. */ @SerializedName("ClientToken") @Expose private String ClientToken; /** * Reserved instance name.
  • The RI name defaults to “unnamed” if this parameter is left empty.
  • You can enter any name within 60 characters (including the pattern string).
  • */ @SerializedName("ReservedInstanceName") @Expose private String ReservedInstanceName; /** * Get The number of the Reserved Instance you are purchasing. * @return InstanceCount The number of the Reserved Instance you are purchasing. */ public Long getInstanceCount() { return this.InstanceCount; } /** * Set The number of the Reserved Instance you are purchasing. * @param InstanceCount The number of the Reserved Instance you are purchasing. */ public void setInstanceCount(Long InstanceCount) { this.InstanceCount = InstanceCount; } /** * Get The ID of the Reserved Instance. * @return ReservedInstancesOfferingId The ID of the Reserved Instance. */ public String getReservedInstancesOfferingId() { return this.ReservedInstancesOfferingId; } /** * Set The ID of the Reserved Instance. * @param ReservedInstancesOfferingId The ID of the Reserved Instance. */ public void setReservedInstancesOfferingId(String ReservedInstancesOfferingId) { this.ReservedInstancesOfferingId = ReservedInstancesOfferingId; } /** * Get Dry run * @return DryRun Dry run */ public Boolean getDryRun() { return this.DryRun; } /** * Set Dry run * @param DryRun Dry run */ public void setDryRun(Boolean DryRun) { this.DryRun = DryRun; } /** * Get A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.
    For more information, see Ensuring Idempotency. * @return ClientToken A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.
    For more information, see Ensuring Idempotency. */ public String getClientToken() { return this.ClientToken; } /** * Set A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.
    For more information, see Ensuring Idempotency. * @param ClientToken A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.
    For more information, see Ensuring Idempotency. */ public void setClientToken(String ClientToken) { this.ClientToken = ClientToken; } /** * Get Reserved instance name.
  • The RI name defaults to “unnamed” if this parameter is left empty.
  • You can enter any name within 60 characters (including the pattern string).
  • * @return ReservedInstanceName Reserved instance name.
  • The RI name defaults to “unnamed” if this parameter is left empty.
  • You can enter any name within 60 characters (including the pattern string).
  • */ public String getReservedInstanceName() { return this.ReservedInstanceName; } /** * Set Reserved instance name.
  • The RI name defaults to “unnamed” if this parameter is left empty.
  • You can enter any name within 60 characters (including the pattern string).
  • * @param ReservedInstanceName Reserved instance name.
  • The RI name defaults to “unnamed” if this parameter is left empty.
  • You can enter any name within 60 characters (including the pattern string).
  • */ public void setReservedInstanceName(String ReservedInstanceName) { this.ReservedInstanceName = ReservedInstanceName; } public PurchaseReservedInstancesOfferingRequest() { } /** * 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 PurchaseReservedInstancesOfferingRequest(PurchaseReservedInstancesOfferingRequest source) { if (source.InstanceCount != null) { this.InstanceCount = new Long(source.InstanceCount); } if (source.ReservedInstancesOfferingId != null) { this.ReservedInstancesOfferingId = new String(source.ReservedInstancesOfferingId); } if (source.DryRun != null) { this.DryRun = new Boolean(source.DryRun); } if (source.ClientToken != null) { this.ClientToken = new String(source.ClientToken); } if (source.ReservedInstanceName != null) { this.ReservedInstanceName = new String(source.ReservedInstanceName); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "InstanceCount", this.InstanceCount); this.setParamSimple(map, prefix + "ReservedInstancesOfferingId", this.ReservedInstancesOfferingId); this.setParamSimple(map, prefix + "DryRun", this.DryRun); this.setParamSimple(map, prefix + "ClientToken", this.ClientToken); this.setParamSimple(map, prefix + "ReservedInstanceName", this.ReservedInstanceName); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy