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

com.tencentcloudapi.cvm.v20170312.models.OperationCountLimit 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.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 OperationCountLimit extends AbstractModel{

    /**
    * 实例操作。取值范围:
  • `INSTANCE_DEGRADE`:降配操作
  • `INTERNET_CHARGE_TYPE_CHANGE`:修改网络带宽计费模式 */ @SerializedName("Operation") @Expose private String Operation; /** * 实例ID。 */ @SerializedName("InstanceId") @Expose private String InstanceId; /** * 当前已使用次数,如果返回值为-1表示该操作无次数限制。 */ @SerializedName("CurrentCount") @Expose private Long CurrentCount; /** * 操作次数最高额度,如果返回值为-1表示该操作无次数限制,如果返回值为0表示不支持调整配置。 */ @SerializedName("LimitCount") @Expose private Long LimitCount; /** * Get 实例操作。取值范围:
  • `INSTANCE_DEGRADE`:降配操作
  • `INTERNET_CHARGE_TYPE_CHANGE`:修改网络带宽计费模式 * @return Operation 实例操作。取值范围:
  • `INSTANCE_DEGRADE`:降配操作
  • `INTERNET_CHARGE_TYPE_CHANGE`:修改网络带宽计费模式 */ public String getOperation() { return this.Operation; } /** * Set 实例操作。取值范围:
  • `INSTANCE_DEGRADE`:降配操作
  • `INTERNET_CHARGE_TYPE_CHANGE`:修改网络带宽计费模式 * @param Operation 实例操作。取值范围:
  • `INSTANCE_DEGRADE`:降配操作
  • `INTERNET_CHARGE_TYPE_CHANGE`:修改网络带宽计费模式 */ public void setOperation(String Operation) { this.Operation = Operation; } /** * Get 实例ID。 * @return InstanceId 实例ID。 */ public String getInstanceId() { return this.InstanceId; } /** * Set 实例ID。 * @param InstanceId 实例ID。 */ public void setInstanceId(String InstanceId) { this.InstanceId = InstanceId; } /** * Get 当前已使用次数,如果返回值为-1表示该操作无次数限制。 * @return CurrentCount 当前已使用次数,如果返回值为-1表示该操作无次数限制。 */ public Long getCurrentCount() { return this.CurrentCount; } /** * Set 当前已使用次数,如果返回值为-1表示该操作无次数限制。 * @param CurrentCount 当前已使用次数,如果返回值为-1表示该操作无次数限制。 */ public void setCurrentCount(Long CurrentCount) { this.CurrentCount = CurrentCount; } /** * Get 操作次数最高额度,如果返回值为-1表示该操作无次数限制,如果返回值为0表示不支持调整配置。 * @return LimitCount 操作次数最高额度,如果返回值为-1表示该操作无次数限制,如果返回值为0表示不支持调整配置。 */ public Long getLimitCount() { return this.LimitCount; } /** * Set 操作次数最高额度,如果返回值为-1表示该操作无次数限制,如果返回值为0表示不支持调整配置。 * @param LimitCount 操作次数最高额度,如果返回值为-1表示该操作无次数限制,如果返回值为0表示不支持调整配置。 */ public void setLimitCount(Long LimitCount) { this.LimitCount = LimitCount; } public OperationCountLimit() { } /** * 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 OperationCountLimit(OperationCountLimit source) { if (source.Operation != null) { this.Operation = new String(source.Operation); } if (source.InstanceId != null) { this.InstanceId = new String(source.InstanceId); } if (source.CurrentCount != null) { this.CurrentCount = new Long(source.CurrentCount); } if (source.LimitCount != null) { this.LimitCount = new Long(source.LimitCount); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "Operation", this.Operation); this.setParamSimple(map, prefix + "InstanceId", this.InstanceId); this.setParamSimple(map, prefix + "CurrentCount", this.CurrentCount); this.setParamSimple(map, prefix + "LimitCount", this.LimitCount); } }




  • © 2015 - 2024 Weber Informatics LLC | Privacy Policy