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

com.tencentcloudapi.emr.v20190103.models.Resource 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.emr.v20190103.models;

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

public class Resource extends AbstractModel{

    /**
    * 节点规格描述,如CVM.SA2。
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("Spec")
    @Expose
    private String Spec;

    /**
    * 存储类型
取值范围:
  • 4:表示云SSD。
  • 5:表示高效云盘。
  • 6:表示增强型SSD云硬盘。
  • 11:表示吞吐型云硬盘。
  • 12:表示极速型SSD云硬盘。
  • 注意:此字段可能返回 null,表示取不到有效值。 */ @SerializedName("StorageType") @Expose private Long StorageType; /** * 磁盘类型 取值范围:
  • CLOUD_SSD:表示云SSD。
  • CLOUD_PREMIUM:表示高效云盘。
  • CLOUD_BASIC:表示云硬盘。
  • 注意:此字段可能返回 null,表示取不到有效值。 */ @SerializedName("DiskType") @Expose private String DiskType; /** * 内存容量,单位为M 注意:此字段可能返回 null,表示取不到有效值。 */ @SerializedName("MemSize") @Expose private Long MemSize; /** * CPU核数 注意:此字段可能返回 null,表示取不到有效值。 */ @SerializedName("Cpu") @Expose private Long Cpu; /** * 数据盘容量 注意:此字段可能返回 null,表示取不到有效值。 */ @SerializedName("DiskSize") @Expose private Long DiskSize; /** * 系统盘容量 注意:此字段可能返回 null,表示取不到有效值。 */ @SerializedName("RootSize") @Expose private Long RootSize; /** * 云盘列表,当数据盘为一块云盘时,直接使用DiskType和DiskSize参数,超出部分使用MultiDisks 注意:此字段可能返回 null,表示取不到有效值。 */ @SerializedName("MultiDisks") @Expose private MultiDisk [] MultiDisks; /** * 需要绑定的标签列表 注意:此字段可能返回 null,表示取不到有效值。 */ @SerializedName("Tags") @Expose private Tag [] Tags; /** * 规格类型,如S2.MEDIUM8 注意:此字段可能返回 null,表示取不到有效值。 */ @SerializedName("InstanceType") @Expose private String InstanceType; /** * 本地盘数量,该字段已废弃 注意:此字段可能返回 null,表示取不到有效值。 */ @SerializedName("LocalDiskNum") @Expose private Long LocalDiskNum; /** * 本地盘数量,如2 注意:此字段可能返回 null,表示取不到有效值。 */ @SerializedName("DiskNum") @Expose private Long DiskNum; /** * Get 节点规格描述,如CVM.SA2。 注意:此字段可能返回 null,表示取不到有效值。 * @return Spec 节点规格描述,如CVM.SA2。 注意:此字段可能返回 null,表示取不到有效值。 */ public String getSpec() { return this.Spec; } /** * Set 节点规格描述,如CVM.SA2。 注意:此字段可能返回 null,表示取不到有效值。 * @param Spec 节点规格描述,如CVM.SA2。 注意:此字段可能返回 null,表示取不到有效值。 */ public void setSpec(String Spec) { this.Spec = Spec; } /** * Get 存储类型 取值范围:
  • 4:表示云SSD。
  • 5:表示高效云盘。
  • 6:表示增强型SSD云硬盘。
  • 11:表示吞吐型云硬盘。
  • 12:表示极速型SSD云硬盘。
  • 注意:此字段可能返回 null,表示取不到有效值。 * @return StorageType 存储类型 取值范围:
  • 4:表示云SSD。
  • 5:表示高效云盘。
  • 6:表示增强型SSD云硬盘。
  • 11:表示吞吐型云硬盘。
  • 12:表示极速型SSD云硬盘。
  • 注意:此字段可能返回 null,表示取不到有效值。 */ public Long getStorageType() { return this.StorageType; } /** * Set 存储类型 取值范围:
  • 4:表示云SSD。
  • 5:表示高效云盘。
  • 6:表示增强型SSD云硬盘。
  • 11:表示吞吐型云硬盘。
  • 12:表示极速型SSD云硬盘。
  • 注意:此字段可能返回 null,表示取不到有效值。 * @param StorageType 存储类型 取值范围:
  • 4:表示云SSD。
  • 5:表示高效云盘。
  • 6:表示增强型SSD云硬盘。
  • 11:表示吞吐型云硬盘。
  • 12:表示极速型SSD云硬盘。
  • 注意:此字段可能返回 null,表示取不到有效值。 */ public void setStorageType(Long StorageType) { this.StorageType = StorageType; } /** * Get 磁盘类型 取值范围:
  • CLOUD_SSD:表示云SSD。
  • CLOUD_PREMIUM:表示高效云盘。
  • CLOUD_BASIC:表示云硬盘。
  • 注意:此字段可能返回 null,表示取不到有效值。 * @return DiskType 磁盘类型 取值范围:
  • CLOUD_SSD:表示云SSD。
  • CLOUD_PREMIUM:表示高效云盘。
  • CLOUD_BASIC:表示云硬盘。
  • 注意:此字段可能返回 null,表示取不到有效值。 */ public String getDiskType() { return this.DiskType; } /** * Set 磁盘类型 取值范围:
  • CLOUD_SSD:表示云SSD。
  • CLOUD_PREMIUM:表示高效云盘。
  • CLOUD_BASIC:表示云硬盘。
  • 注意:此字段可能返回 null,表示取不到有效值。 * @param DiskType 磁盘类型 取值范围:
  • CLOUD_SSD:表示云SSD。
  • CLOUD_PREMIUM:表示高效云盘。
  • CLOUD_BASIC:表示云硬盘。
  • 注意:此字段可能返回 null,表示取不到有效值。 */ public void setDiskType(String DiskType) { this.DiskType = DiskType; } /** * Get 内存容量,单位为M 注意:此字段可能返回 null,表示取不到有效值。 * @return MemSize 内存容量,单位为M 注意:此字段可能返回 null,表示取不到有效值。 */ public Long getMemSize() { return this.MemSize; } /** * Set 内存容量,单位为M 注意:此字段可能返回 null,表示取不到有效值。 * @param MemSize 内存容量,单位为M 注意:此字段可能返回 null,表示取不到有效值。 */ public void setMemSize(Long MemSize) { this.MemSize = MemSize; } /** * Get CPU核数 注意:此字段可能返回 null,表示取不到有效值。 * @return Cpu CPU核数 注意:此字段可能返回 null,表示取不到有效值。 */ public Long getCpu() { return this.Cpu; } /** * Set CPU核数 注意:此字段可能返回 null,表示取不到有效值。 * @param Cpu CPU核数 注意:此字段可能返回 null,表示取不到有效值。 */ public void setCpu(Long Cpu) { this.Cpu = Cpu; } /** * Get 数据盘容量 注意:此字段可能返回 null,表示取不到有效值。 * @return DiskSize 数据盘容量 注意:此字段可能返回 null,表示取不到有效值。 */ public Long getDiskSize() { return this.DiskSize; } /** * Set 数据盘容量 注意:此字段可能返回 null,表示取不到有效值。 * @param DiskSize 数据盘容量 注意:此字段可能返回 null,表示取不到有效值。 */ public void setDiskSize(Long DiskSize) { this.DiskSize = DiskSize; } /** * Get 系统盘容量 注意:此字段可能返回 null,表示取不到有效值。 * @return RootSize 系统盘容量 注意:此字段可能返回 null,表示取不到有效值。 */ public Long getRootSize() { return this.RootSize; } /** * Set 系统盘容量 注意:此字段可能返回 null,表示取不到有效值。 * @param RootSize 系统盘容量 注意:此字段可能返回 null,表示取不到有效值。 */ public void setRootSize(Long RootSize) { this.RootSize = RootSize; } /** * Get 云盘列表,当数据盘为一块云盘时,直接使用DiskType和DiskSize参数,超出部分使用MultiDisks 注意:此字段可能返回 null,表示取不到有效值。 * @return MultiDisks 云盘列表,当数据盘为一块云盘时,直接使用DiskType和DiskSize参数,超出部分使用MultiDisks 注意:此字段可能返回 null,表示取不到有效值。 */ public MultiDisk [] getMultiDisks() { return this.MultiDisks; } /** * Set 云盘列表,当数据盘为一块云盘时,直接使用DiskType和DiskSize参数,超出部分使用MultiDisks 注意:此字段可能返回 null,表示取不到有效值。 * @param MultiDisks 云盘列表,当数据盘为一块云盘时,直接使用DiskType和DiskSize参数,超出部分使用MultiDisks 注意:此字段可能返回 null,表示取不到有效值。 */ public void setMultiDisks(MultiDisk [] MultiDisks) { this.MultiDisks = MultiDisks; } /** * Get 需要绑定的标签列表 注意:此字段可能返回 null,表示取不到有效值。 * @return Tags 需要绑定的标签列表 注意:此字段可能返回 null,表示取不到有效值。 */ public Tag [] getTags() { return this.Tags; } /** * Set 需要绑定的标签列表 注意:此字段可能返回 null,表示取不到有效值。 * @param Tags 需要绑定的标签列表 注意:此字段可能返回 null,表示取不到有效值。 */ public void setTags(Tag [] Tags) { this.Tags = Tags; } /** * Get 规格类型,如S2.MEDIUM8 注意:此字段可能返回 null,表示取不到有效值。 * @return InstanceType 规格类型,如S2.MEDIUM8 注意:此字段可能返回 null,表示取不到有效值。 */ public String getInstanceType() { return this.InstanceType; } /** * Set 规格类型,如S2.MEDIUM8 注意:此字段可能返回 null,表示取不到有效值。 * @param InstanceType 规格类型,如S2.MEDIUM8 注意:此字段可能返回 null,表示取不到有效值。 */ public void setInstanceType(String InstanceType) { this.InstanceType = InstanceType; } /** * Get 本地盘数量,该字段已废弃 注意:此字段可能返回 null,表示取不到有效值。 * @return LocalDiskNum 本地盘数量,该字段已废弃 注意:此字段可能返回 null,表示取不到有效值。 */ public Long getLocalDiskNum() { return this.LocalDiskNum; } /** * Set 本地盘数量,该字段已废弃 注意:此字段可能返回 null,表示取不到有效值。 * @param LocalDiskNum 本地盘数量,该字段已废弃 注意:此字段可能返回 null,表示取不到有效值。 */ public void setLocalDiskNum(Long LocalDiskNum) { this.LocalDiskNum = LocalDiskNum; } /** * Get 本地盘数量,如2 注意:此字段可能返回 null,表示取不到有效值。 * @return DiskNum 本地盘数量,如2 注意:此字段可能返回 null,表示取不到有效值。 */ public Long getDiskNum() { return this.DiskNum; } /** * Set 本地盘数量,如2 注意:此字段可能返回 null,表示取不到有效值。 * @param DiskNum 本地盘数量,如2 注意:此字段可能返回 null,表示取不到有效值。 */ public void setDiskNum(Long DiskNum) { this.DiskNum = DiskNum; } public Resource() { } /** * 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 Resource(Resource source) { if (source.Spec != null) { this.Spec = new String(source.Spec); } if (source.StorageType != null) { this.StorageType = new Long(source.StorageType); } if (source.DiskType != null) { this.DiskType = new String(source.DiskType); } if (source.MemSize != null) { this.MemSize = new Long(source.MemSize); } if (source.Cpu != null) { this.Cpu = new Long(source.Cpu); } if (source.DiskSize != null) { this.DiskSize = new Long(source.DiskSize); } if (source.RootSize != null) { this.RootSize = new Long(source.RootSize); } if (source.MultiDisks != null) { this.MultiDisks = new MultiDisk[source.MultiDisks.length]; for (int i = 0; i < source.MultiDisks.length; i++) { this.MultiDisks[i] = new MultiDisk(source.MultiDisks[i]); } } if (source.Tags != null) { this.Tags = new Tag[source.Tags.length]; for (int i = 0; i < source.Tags.length; i++) { this.Tags[i] = new Tag(source.Tags[i]); } } if (source.InstanceType != null) { this.InstanceType = new String(source.InstanceType); } if (source.LocalDiskNum != null) { this.LocalDiskNum = new Long(source.LocalDiskNum); } if (source.DiskNum != null) { this.DiskNum = new Long(source.DiskNum); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "Spec", this.Spec); this.setParamSimple(map, prefix + "StorageType", this.StorageType); this.setParamSimple(map, prefix + "DiskType", this.DiskType); this.setParamSimple(map, prefix + "MemSize", this.MemSize); this.setParamSimple(map, prefix + "Cpu", this.Cpu); this.setParamSimple(map, prefix + "DiskSize", this.DiskSize); this.setParamSimple(map, prefix + "RootSize", this.RootSize); this.setParamArrayObj(map, prefix + "MultiDisks.", this.MultiDisks); this.setParamArrayObj(map, prefix + "Tags.", this.Tags); this.setParamSimple(map, prefix + "InstanceType", this.InstanceType); this.setParamSimple(map, prefix + "LocalDiskNum", this.LocalDiskNum); this.setParamSimple(map, prefix + "DiskNum", this.DiskNum); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy