com.tencentcloudapi.es.v20180416.models.NodeInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* 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.es.v20180416.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 NodeInfo extends AbstractModel {
/**
* Number of nodes
*/
@SerializedName("NodeNum")
@Expose
private Long NodeNum;
/**
* Node specification ES.S1.SMALL2: 1-core 2 GB ES.S1.MEDIUM4: 2-core 4 GB ES.S1.MEDIUM8: 2-core 8 GB ES.S1.LARGE16: 4-core 16 GB ES.S1.2XLARGE32: 8-core 32 GB ES.S1.4XLARGE32: 16-core 32 GB ES.S1.4XLARGE64: 16-core 64 GB
*/
@SerializedName("NodeType")
@Expose
private String NodeType;
/**
* Node type`hotData`: hot data node
`warmData`: warm data node
`dedicatedMaster`: dedicated master node
Default value: `hotData`
*/
@SerializedName("Type")
@Expose
private String Type;
/**
* Node disk type CLOUD_SSD: SSD cloud storage CLOUD_PREMIUM: Premium cloud disk Default value: CLOUD_SSD
*/
@SerializedName("DiskType")
@Expose
private String DiskType;
/**
* Node disk size in GB
*/
@SerializedName("DiskSize")
@Expose
private Long DiskSize;
/**
* Local disk information
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("LocalDiskInfo")
@Expose
private LocalDiskInfo LocalDiskInfo;
/**
* Number of node disks
*/
@SerializedName("DiskCount")
@Expose
private Long DiskCount;
/**
* Whether to encrypt node disk. 0: no (default); 1: yes.
*/
@SerializedName("DiskEncrypt")
@Expose
private Long DiskEncrypt;
/**
* CPU number
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("CpuNum")
@Expose
private Long CpuNum;
/**
* Memory size in GB
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("MemSize")
@Expose
private Long MemSize;
/**
* /
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("DiskEnhance")
@Expose
private Long DiskEnhance;
/**
* Get Number of nodes
* @return NodeNum Number of nodes
*/
public Long getNodeNum() {
return this.NodeNum;
}
/**
* Set Number of nodes
* @param NodeNum Number of nodes
*/
public void setNodeNum(Long NodeNum) {
this.NodeNum = NodeNum;
}
/**
* Get Node specification ES.S1.SMALL2: 1-core 2 GB ES.S1.MEDIUM4: 2-core 4 GB ES.S1.MEDIUM8: 2-core 8 GB ES.S1.LARGE16: 4-core 16 GB ES.S1.2XLARGE32: 8-core 32 GB ES.S1.4XLARGE32: 16-core 32 GB ES.S1.4XLARGE64: 16-core 64 GB
* @return NodeType Node specification ES.S1.SMALL2: 1-core 2 GB ES.S1.MEDIUM4: 2-core 4 GB ES.S1.MEDIUM8: 2-core 8 GB ES.S1.LARGE16: 4-core 16 GB ES.S1.2XLARGE32: 8-core 32 GB ES.S1.4XLARGE32: 16-core 32 GB ES.S1.4XLARGE64: 16-core 64 GB
*/
public String getNodeType() {
return this.NodeType;
}
/**
* Set Node specification ES.S1.SMALL2: 1-core 2 GB ES.S1.MEDIUM4: 2-core 4 GB ES.S1.MEDIUM8: 2-core 8 GB ES.S1.LARGE16: 4-core 16 GB ES.S1.2XLARGE32: 8-core 32 GB ES.S1.4XLARGE32: 16-core 32 GB ES.S1.4XLARGE64: 16-core 64 GB
* @param NodeType Node specification ES.S1.SMALL2: 1-core 2 GB ES.S1.MEDIUM4: 2-core 4 GB ES.S1.MEDIUM8: 2-core 8 GB ES.S1.LARGE16: 4-core 16 GB ES.S1.2XLARGE32: 8-core 32 GB ES.S1.4XLARGE32: 16-core 32 GB ES.S1.4XLARGE64: 16-core 64 GB
*/
public void setNodeType(String NodeType) {
this.NodeType = NodeType;
}
/**
* Get Node type`hotData`: hot data node
`warmData`: warm data node
`dedicatedMaster`: dedicated master node
Default value: `hotData`
* @return Type Node type`hotData`: hot data node
`warmData`: warm data node
`dedicatedMaster`: dedicated master node
Default value: `hotData`
*/
public String getType() {
return this.Type;
}
/**
* Set Node type`hotData`: hot data node
`warmData`: warm data node
`dedicatedMaster`: dedicated master node
Default value: `hotData`
* @param Type Node type`hotData`: hot data node
`warmData`: warm data node
`dedicatedMaster`: dedicated master node
Default value: `hotData`
*/
public void setType(String Type) {
this.Type = Type;
}
/**
* Get Node disk type CLOUD_SSD: SSD cloud storage CLOUD_PREMIUM: Premium cloud disk Default value: CLOUD_SSD
* @return DiskType Node disk type CLOUD_SSD: SSD cloud storage CLOUD_PREMIUM: Premium cloud disk Default value: CLOUD_SSD
*/
public String getDiskType() {
return this.DiskType;
}
/**
* Set Node disk type CLOUD_SSD: SSD cloud storage CLOUD_PREMIUM: Premium cloud disk Default value: CLOUD_SSD
* @param DiskType Node disk type CLOUD_SSD: SSD cloud storage CLOUD_PREMIUM: Premium cloud disk Default value: CLOUD_SSD
*/
public void setDiskType(String DiskType) {
this.DiskType = DiskType;
}
/**
* Get Node disk size in GB
* @return DiskSize Node disk size in GB
*/
public Long getDiskSize() {
return this.DiskSize;
}
/**
* Set Node disk size in GB
* @param DiskSize Node disk size in GB
*/
public void setDiskSize(Long DiskSize) {
this.DiskSize = DiskSize;
}
/**
* Get Local disk information
Note: this field may return null, indicating that no valid values can be obtained.
* @return LocalDiskInfo Local disk information
Note: this field may return null, indicating that no valid values can be obtained.
*/
public LocalDiskInfo getLocalDiskInfo() {
return this.LocalDiskInfo;
}
/**
* Set Local disk information
Note: this field may return null, indicating that no valid values can be obtained.
* @param LocalDiskInfo Local disk information
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setLocalDiskInfo(LocalDiskInfo LocalDiskInfo) {
this.LocalDiskInfo = LocalDiskInfo;
}
/**
* Get Number of node disks
* @return DiskCount Number of node disks
*/
public Long getDiskCount() {
return this.DiskCount;
}
/**
* Set Number of node disks
* @param DiskCount Number of node disks
*/
public void setDiskCount(Long DiskCount) {
this.DiskCount = DiskCount;
}
/**
* Get Whether to encrypt node disk. 0: no (default); 1: yes.
* @return DiskEncrypt Whether to encrypt node disk. 0: no (default); 1: yes.
*/
public Long getDiskEncrypt() {
return this.DiskEncrypt;
}
/**
* Set Whether to encrypt node disk. 0: no (default); 1: yes.
* @param DiskEncrypt Whether to encrypt node disk. 0: no (default); 1: yes.
*/
public void setDiskEncrypt(Long DiskEncrypt) {
this.DiskEncrypt = DiskEncrypt;
}
/**
* Get CPU number
Note: This field may return null, indicating that no valid values can be obtained.
* @return CpuNum CPU number
Note: This field may return null, indicating that no valid values can be obtained.
*/
public Long getCpuNum() {
return this.CpuNum;
}
/**
* Set CPU number
Note: This field may return null, indicating that no valid values can be obtained.
* @param CpuNum CPU number
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setCpuNum(Long CpuNum) {
this.CpuNum = CpuNum;
}
/**
* Get Memory size in GB
Note: This field may return null, indicating that no valid values can be obtained.
* @return MemSize Memory size in GB
Note: This field may return null, indicating that no valid values can be obtained.
*/
public Long getMemSize() {
return this.MemSize;
}
/**
* Set Memory size in GB
Note: This field may return null, indicating that no valid values can be obtained.
* @param MemSize Memory size in GB
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setMemSize(Long MemSize) {
this.MemSize = MemSize;
}
/**
* Get /
Note: This field may return null, indicating that no valid values can be obtained.
* @return DiskEnhance /
Note: This field may return null, indicating that no valid values can be obtained.
*/
public Long getDiskEnhance() {
return this.DiskEnhance;
}
/**
* Set /
Note: This field may return null, indicating that no valid values can be obtained.
* @param DiskEnhance /
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setDiskEnhance(Long DiskEnhance) {
this.DiskEnhance = DiskEnhance;
}
public NodeInfo() {
}
/**
* 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 NodeInfo(NodeInfo source) {
if (source.NodeNum != null) {
this.NodeNum = new Long(source.NodeNum);
}
if (source.NodeType != null) {
this.NodeType = new String(source.NodeType);
}
if (source.Type != null) {
this.Type = new String(source.Type);
}
if (source.DiskType != null) {
this.DiskType = new String(source.DiskType);
}
if (source.DiskSize != null) {
this.DiskSize = new Long(source.DiskSize);
}
if (source.LocalDiskInfo != null) {
this.LocalDiskInfo = new LocalDiskInfo(source.LocalDiskInfo);
}
if (source.DiskCount != null) {
this.DiskCount = new Long(source.DiskCount);
}
if (source.DiskEncrypt != null) {
this.DiskEncrypt = new Long(source.DiskEncrypt);
}
if (source.CpuNum != null) {
this.CpuNum = new Long(source.CpuNum);
}
if (source.MemSize != null) {
this.MemSize = new Long(source.MemSize);
}
if (source.DiskEnhance != null) {
this.DiskEnhance = new Long(source.DiskEnhance);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "NodeNum", this.NodeNum);
this.setParamSimple(map, prefix + "NodeType", this.NodeType);
this.setParamSimple(map, prefix + "Type", this.Type);
this.setParamSimple(map, prefix + "DiskType", this.DiskType);
this.setParamSimple(map, prefix + "DiskSize", this.DiskSize);
this.setParamObj(map, prefix + "LocalDiskInfo.", this.LocalDiskInfo);
this.setParamSimple(map, prefix + "DiskCount", this.DiskCount);
this.setParamSimple(map, prefix + "DiskEncrypt", this.DiskEncrypt);
this.setParamSimple(map, prefix + "CpuNum", this.CpuNum);
this.setParamSimple(map, prefix + "MemSize", this.MemSize);
this.setParamSimple(map, prefix + "DiskEnhance", this.DiskEnhance);
}
}