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

com.tencentcloudapi.emr.v20190103.models.Resource 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.emr.v20190103.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 Resource extends AbstractModel {

    /**
    * Node specification description, such as CVM.SA2
Note: this field may return `null`, indicating that no valid values can be obtained.
    */
    @SerializedName("Spec")
    @Expose
    private String Spec;

    /**
    * Storage type
Valid values:
  • 4: SSD
  • 5: Premium Cloud Storage
  • 6: Enhanced SSD
  • 11: High-Throughput cloud disk
  • 12: Tremendous SSD
  • Note: this field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("StorageType") @Expose private Long StorageType; /** * Disk type Valid values:
  • `CLOUD_SSD`: SSD
  • `CLOUD_PREMIUM`: Premium Cloud Storage
  • `CLOUD_BASIC`: HDD
  • Note: this field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("DiskType") @Expose private String DiskType; /** * Memory capacity in MB Note: this field may return null, indicating that no valid values can be obtained. */ @SerializedName("MemSize") @Expose private Long MemSize; /** * Number of CPU cores Note: this field may return null, indicating that no valid values can be obtained. */ @SerializedName("Cpu") @Expose private Long Cpu; /** * Data disk capacity Note: this field may return null, indicating that no valid values can be obtained. */ @SerializedName("DiskSize") @Expose private Long DiskSize; /** * System disk capacity Note: this field may return null, indicating that no valid values can be obtained. */ @SerializedName("RootSize") @Expose private Long RootSize; /** * List of cloud disks. When the data disk is a cloud disk, `DiskType` and `DiskSize` are used directly; `MultiDisks` will be used for the excessive part Note: this field may return null, indicating that no valid values can be obtained. */ @SerializedName("MultiDisks") @Expose private MultiDisk [] MultiDisks; /** * List of tags to be bound Note: this field may return null, indicating that no valid values can be obtained. */ @SerializedName("Tags") @Expose private Tag [] Tags; /** * Specification type, such as S2.MEDIUM8 Note: this field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("InstanceType") @Expose private String InstanceType; /** * Number of local disks. This field has been disused. Note: this field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("LocalDiskNum") @Expose private Long LocalDiskNum; /** * Number of local disks, such as 2 Note: this field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("DiskNum") @Expose private Long DiskNum; /** * Get Node specification description, such as CVM.SA2 Note: this field may return `null`, indicating that no valid values can be obtained. * @return Spec Node specification description, such as CVM.SA2 Note: this field may return `null`, indicating that no valid values can be obtained. */ public String getSpec() { return this.Spec; } /** * Set Node specification description, such as CVM.SA2 Note: this field may return `null`, indicating that no valid values can be obtained. * @param Spec Node specification description, such as CVM.SA2 Note: this field may return `null`, indicating that no valid values can be obtained. */ public void setSpec(String Spec) { this.Spec = Spec; } /** * Get Storage type Valid values:
  • 4: SSD
  • 5: Premium Cloud Storage
  • 6: Enhanced SSD
  • 11: High-Throughput cloud disk
  • 12: Tremendous SSD
  • Note: this field may return `null`, indicating that no valid values can be obtained. * @return StorageType Storage type Valid values:
  • 4: SSD
  • 5: Premium Cloud Storage
  • 6: Enhanced SSD
  • 11: High-Throughput cloud disk
  • 12: Tremendous SSD
  • Note: this field may return `null`, indicating that no valid values can be obtained. */ public Long getStorageType() { return this.StorageType; } /** * Set Storage type Valid values:
  • 4: SSD
  • 5: Premium Cloud Storage
  • 6: Enhanced SSD
  • 11: High-Throughput cloud disk
  • 12: Tremendous SSD
  • Note: this field may return `null`, indicating that no valid values can be obtained. * @param StorageType Storage type Valid values:
  • 4: SSD
  • 5: Premium Cloud Storage
  • 6: Enhanced SSD
  • 11: High-Throughput cloud disk
  • 12: Tremendous SSD
  • Note: this field may return `null`, indicating that no valid values can be obtained. */ public void setStorageType(Long StorageType) { this.StorageType = StorageType; } /** * Get Disk type Valid values:
  • `CLOUD_SSD`: SSD
  • `CLOUD_PREMIUM`: Premium Cloud Storage
  • `CLOUD_BASIC`: HDD
  • Note: this field may return `null`, indicating that no valid values can be obtained. * @return DiskType Disk type Valid values:
  • `CLOUD_SSD`: SSD
  • `CLOUD_PREMIUM`: Premium Cloud Storage
  • `CLOUD_BASIC`: HDD
  • Note: this field may return `null`, indicating that no valid values can be obtained. */ public String getDiskType() { return this.DiskType; } /** * Set Disk type Valid values:
  • `CLOUD_SSD`: SSD
  • `CLOUD_PREMIUM`: Premium Cloud Storage
  • `CLOUD_BASIC`: HDD
  • Note: this field may return `null`, indicating that no valid values can be obtained. * @param DiskType Disk type Valid values:
  • `CLOUD_SSD`: SSD
  • `CLOUD_PREMIUM`: Premium Cloud Storage
  • `CLOUD_BASIC`: HDD
  • Note: this field may return `null`, indicating that no valid values can be obtained. */ public void setDiskType(String DiskType) { this.DiskType = DiskType; } /** * Get Memory capacity in MB Note: this field may return null, indicating that no valid values can be obtained. * @return MemSize Memory capacity in MB Note: this field may return null, indicating that no valid values can be obtained. */ public Long getMemSize() { return this.MemSize; } /** * Set Memory capacity in MB Note: this field may return null, indicating that no valid values can be obtained. * @param MemSize Memory capacity in MB Note: this field may return null, indicating that no valid values can be obtained. */ public void setMemSize(Long MemSize) { this.MemSize = MemSize; } /** * Get Number of CPU cores Note: this field may return null, indicating that no valid values can be obtained. * @return Cpu Number of CPU cores Note: this field may return null, indicating that no valid values can be obtained. */ public Long getCpu() { return this.Cpu; } /** * Set Number of CPU cores Note: this field may return null, indicating that no valid values can be obtained. * @param Cpu Number of CPU cores Note: this field may return null, indicating that no valid values can be obtained. */ public void setCpu(Long Cpu) { this.Cpu = Cpu; } /** * Get Data disk capacity Note: this field may return null, indicating that no valid values can be obtained. * @return DiskSize Data disk capacity Note: this field may return null, indicating that no valid values can be obtained. */ public Long getDiskSize() { return this.DiskSize; } /** * Set Data disk capacity Note: this field may return null, indicating that no valid values can be obtained. * @param DiskSize Data disk capacity Note: this field may return null, indicating that no valid values can be obtained. */ public void setDiskSize(Long DiskSize) { this.DiskSize = DiskSize; } /** * Get System disk capacity Note: this field may return null, indicating that no valid values can be obtained. * @return RootSize System disk capacity Note: this field may return null, indicating that no valid values can be obtained. */ public Long getRootSize() { return this.RootSize; } /** * Set System disk capacity Note: this field may return null, indicating that no valid values can be obtained. * @param RootSize System disk capacity Note: this field may return null, indicating that no valid values can be obtained. */ public void setRootSize(Long RootSize) { this.RootSize = RootSize; } /** * Get List of cloud disks. When the data disk is a cloud disk, `DiskType` and `DiskSize` are used directly; `MultiDisks` will be used for the excessive part Note: this field may return null, indicating that no valid values can be obtained. * @return MultiDisks List of cloud disks. When the data disk is a cloud disk, `DiskType` and `DiskSize` are used directly; `MultiDisks` will be used for the excessive part Note: this field may return null, indicating that no valid values can be obtained. */ public MultiDisk [] getMultiDisks() { return this.MultiDisks; } /** * Set List of cloud disks. When the data disk is a cloud disk, `DiskType` and `DiskSize` are used directly; `MultiDisks` will be used for the excessive part Note: this field may return null, indicating that no valid values can be obtained. * @param MultiDisks List of cloud disks. When the data disk is a cloud disk, `DiskType` and `DiskSize` are used directly; `MultiDisks` will be used for the excessive part Note: this field may return null, indicating that no valid values can be obtained. */ public void setMultiDisks(MultiDisk [] MultiDisks) { this.MultiDisks = MultiDisks; } /** * Get List of tags to be bound Note: this field may return null, indicating that no valid values can be obtained. * @return Tags List of tags to be bound Note: this field may return null, indicating that no valid values can be obtained. */ public Tag [] getTags() { return this.Tags; } /** * Set List of tags to be bound Note: this field may return null, indicating that no valid values can be obtained. * @param Tags List of tags to be bound Note: this field may return null, indicating that no valid values can be obtained. */ public void setTags(Tag [] Tags) { this.Tags = Tags; } /** * Get Specification type, such as S2.MEDIUM8 Note: this field may return `null`, indicating that no valid values can be obtained. * @return InstanceType Specification type, such as S2.MEDIUM8 Note: this field may return `null`, indicating that no valid values can be obtained. */ public String getInstanceType() { return this.InstanceType; } /** * Set Specification type, such as S2.MEDIUM8 Note: this field may return `null`, indicating that no valid values can be obtained. * @param InstanceType Specification type, such as S2.MEDIUM8 Note: this field may return `null`, indicating that no valid values can be obtained. */ public void setInstanceType(String InstanceType) { this.InstanceType = InstanceType; } /** * Get Number of local disks. This field has been disused. Note: this field may return `null`, indicating that no valid values can be obtained. * @return LocalDiskNum Number of local disks. This field has been disused. Note: this field may return `null`, indicating that no valid values can be obtained. */ public Long getLocalDiskNum() { return this.LocalDiskNum; } /** * Set Number of local disks. This field has been disused. Note: this field may return `null`, indicating that no valid values can be obtained. * @param LocalDiskNum Number of local disks. This field has been disused. Note: this field may return `null`, indicating that no valid values can be obtained. */ public void setLocalDiskNum(Long LocalDiskNum) { this.LocalDiskNum = LocalDiskNum; } /** * Get Number of local disks, such as 2 Note: this field may return `null`, indicating that no valid values can be obtained. * @return DiskNum Number of local disks, such as 2 Note: this field may return `null`, indicating that no valid values can be obtained. */ public Long getDiskNum() { return this.DiskNum; } /** * Set Number of local disks, such as 2 Note: this field may return `null`, indicating that no valid values can be obtained. * @param DiskNum Number of local disks, such as 2 Note: this field may return `null`, indicating that no valid values can be obtained. */ 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 - 2024 Weber Informatics LLC | Privacy Policy