Class CreateClusterRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.thpc.v20220401.models.CreateClusterRequest
-
public class CreateClusterRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description CreateClusterRequest()
CreateClusterRequest(CreateClusterRequest source)
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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccountType()
Get 域名字服务类型。默认取值:NIS。 NIS:NIS域名字服务。String
getAutoScalingType()
Get 弹性伸缩类型。
AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。
THPC_AS:集群自动扩缩容由THPC产品内部实现。String
getClientToken()
Get 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。String
getClusterName()
Get 集群显示名称。ComputeNode
getComputeNode()
Get 指定计算节点。Long
getComputeNodeCount()
Get 指定计算节点的数量。默认取值:0。Boolean
getDryRun()
Get 是否只预检此次请求。 true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。 如果检查不通过,则返回对应错误码; 如果检查通过,则返回RequestId.String
getImageId()
Get 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前支持部分公有镜像和自定义镜像。LoginNode
getLoginNode()
Get 指定登录节点。Long
getLoginNodeCount()
Get 指定登录节点的数量。默认取值:0。取值范围:0~10。LoginSettings
getLoginSettings()
Get 集群登录设置。ManagerNode
getManagerNode()
Get 指定管理节点。Long
getManagerNodeCount()
Get 指定管理节点的数量。默认取值:1。取值范围:1~2。Placement
getPlacement()
Get 集群中实例所在的位置。String
getSchedulerType()
Get 调度器类型。默认取值:SLURM。
SGE:SGE调度器。
SLURM:SLURM调度器。String[]
getSecurityGroupIds()
Get 集群中实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。StorageOption
getStorageOption()
Get 集群存储选项Tag[]
getTags()
Get 创建集群时同时绑定的标签对说明。VirtualPrivateCloud
getVirtualPrivateCloud()
Get 私有网络相关信息配置。void
setAccountType(String AccountType)
Set 域名字服务类型。默认取值:NIS。 NIS:NIS域名字服务。void
setAutoScalingType(String AutoScalingType)
Set 弹性伸缩类型。
AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。
THPC_AS:集群自动扩缩容由THPC产品内部实现。void
setClientToken(String ClientToken)
Set 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。void
setClusterName(String ClusterName)
Set 集群显示名称。void
setComputeNode(ComputeNode ComputeNode)
Set 指定计算节点。void
setComputeNodeCount(Long ComputeNodeCount)
Set 指定计算节点的数量。默认取值:0。void
setDryRun(Boolean DryRun)
Set 是否只预检此次请求。 true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。 如果检查不通过,则返回对应错误码; 如果检查通过,则返回RequestId.void
setImageId(String ImageId)
Set 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前支持部分公有镜像和自定义镜像。void
setLoginNode(LoginNode LoginNode)
Set 指定登录节点。void
setLoginNodeCount(Long LoginNodeCount)
Set 指定登录节点的数量。默认取值:0。取值范围:0~10。void
setLoginSettings(LoginSettings LoginSettings)
Set 集群登录设置。void
setManagerNode(ManagerNode ManagerNode)
Set 指定管理节点。void
setManagerNodeCount(Long ManagerNodeCount)
Set 指定管理节点的数量。默认取值:1。取值范围:1~2。void
setPlacement(Placement Placement)
Set 集群中实例所在的位置。void
setSchedulerType(String SchedulerType)
Set 调度器类型。默认取值:SLURM。
SGE:SGE调度器。
SLURM:SLURM调度器。void
setSecurityGroupIds(String[] SecurityGroupIds)
Set 集群中实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。void
setStorageOption(StorageOption StorageOption)
Set 集群存储选项void
setTags(Tag[] Tags)
Set 创建集群时同时绑定的标签对说明。void
setVirtualPrivateCloud(VirtualPrivateCloud VirtualPrivateCloud)
Set 私有网络相关信息配置。void
toMap(HashMap<String,String> map, String prefix)
Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
CreateClusterRequest
public CreateClusterRequest()
-
CreateClusterRequest
public CreateClusterRequest(CreateClusterRequest source)
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.
-
-
Method Detail
-
getPlacement
public Placement getPlacement()
Get 集群中实例所在的位置。- Returns:
- Placement 集群中实例所在的位置。
-
setPlacement
public void setPlacement(Placement Placement)
Set 集群中实例所在的位置。- Parameters:
Placement
- 集群中实例所在的位置。
-
getManagerNode
public ManagerNode getManagerNode()
Get 指定管理节点。- Returns:
- ManagerNode 指定管理节点。
-
setManagerNode
public void setManagerNode(ManagerNode ManagerNode)
Set 指定管理节点。- Parameters:
ManagerNode
- 指定管理节点。
-
getManagerNodeCount
public Long getManagerNodeCount()
Get 指定管理节点的数量。默认取值:1。取值范围:1~2。- Returns:
- ManagerNodeCount 指定管理节点的数量。默认取值:1。取值范围:1~2。
-
setManagerNodeCount
public void setManagerNodeCount(Long ManagerNodeCount)
Set 指定管理节点的数量。默认取值:1。取值范围:1~2。- Parameters:
ManagerNodeCount
- 指定管理节点的数量。默认取值:1。取值范围:1~2。
-
getComputeNode
public ComputeNode getComputeNode()
Get 指定计算节点。- Returns:
- ComputeNode 指定计算节点。
-
setComputeNode
public void setComputeNode(ComputeNode ComputeNode)
Set 指定计算节点。- Parameters:
ComputeNode
- 指定计算节点。
-
getComputeNodeCount
public Long getComputeNodeCount()
Get 指定计算节点的数量。默认取值:0。- Returns:
- ComputeNodeCount 指定计算节点的数量。默认取值:0。
-
setComputeNodeCount
public void setComputeNodeCount(Long ComputeNodeCount)
Set 指定计算节点的数量。默认取值:0。- Parameters:
ComputeNodeCount
- 指定计算节点的数量。默认取值:0。
-
getSchedulerType
public String getSchedulerType()
Get 调度器类型。默认取值:SLURM。- SGE:SGE调度器。
- SLURM:SLURM调度器。
- Returns:
- SchedulerType 调度器类型。默认取值:SLURM。
- SGE:SGE调度器。
- SLURM:SLURM调度器。
- SGE:SGE调度器。
- SGE:SGE调度器。
-
setSchedulerType
public void setSchedulerType(String SchedulerType)
Set 调度器类型。默认取值:SLURM。- SGE:SGE调度器。
- SLURM:SLURM调度器。
- Parameters:
SchedulerType
- 调度器类型。默认取值:SLURM。- SGE:SGE调度器。
- SLURM:SLURM调度器。
- SGE:SGE调度器。
- SGE:SGE调度器。
-
getImageId
public String getImageId()
Get 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前支持部分公有镜像和自定义镜像。- Returns:
- ImageId 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前支持部分公有镜像和自定义镜像。
-
setImageId
public void setImageId(String ImageId)
Set 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前支持部分公有镜像和自定义镜像。- Parameters:
ImageId
- 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前支持部分公有镜像和自定义镜像。
-
getVirtualPrivateCloud
public VirtualPrivateCloud getVirtualPrivateCloud()
Get 私有网络相关信息配置。- Returns:
- VirtualPrivateCloud 私有网络相关信息配置。
-
setVirtualPrivateCloud
public void setVirtualPrivateCloud(VirtualPrivateCloud VirtualPrivateCloud)
Set 私有网络相关信息配置。- Parameters:
VirtualPrivateCloud
- 私有网络相关信息配置。
-
getLoginSettings
public LoginSettings getLoginSettings()
Get 集群登录设置。- Returns:
- LoginSettings 集群登录设置。
-
setLoginSettings
public void setLoginSettings(LoginSettings LoginSettings)
Set 集群登录设置。- Parameters:
LoginSettings
- 集群登录设置。
-
getSecurityGroupIds
public String[] getSecurityGroupIds()
Get 集群中实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。- Returns:
- SecurityGroupIds 集群中实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。
-
setSecurityGroupIds
public void setSecurityGroupIds(String[] SecurityGroupIds)
Set 集群中实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。- Parameters:
SecurityGroupIds
- 集群中实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。
-
getClientToken
public String getClientToken()
Get 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。- Returns:
- ClientToken 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
-
setClientToken
public void setClientToken(String ClientToken)
Set 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。- Parameters:
ClientToken
- 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
-
getDryRun
public Boolean getDryRun()
Get 是否只预检此次请求。 true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。 如果检查不通过,则返回对应错误码; 如果检查通过,则返回RequestId. false(默认):发送正常请求,通过检查后直接创建实例- Returns:
- DryRun 是否只预检此次请求。 true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。 如果检查不通过,则返回对应错误码; 如果检查通过,则返回RequestId. false(默认):发送正常请求,通过检查后直接创建实例
-
setDryRun
public void setDryRun(Boolean DryRun)
Set 是否只预检此次请求。 true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。 如果检查不通过,则返回对应错误码; 如果检查通过,则返回RequestId. false(默认):发送正常请求,通过检查后直接创建实例- Parameters:
DryRun
- 是否只预检此次请求。 true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。 如果检查不通过,则返回对应错误码; 如果检查通过,则返回RequestId. false(默认):发送正常请求,通过检查后直接创建实例
-
getAccountType
public String getAccountType()
Get 域名字服务类型。默认取值:NIS。- NIS:NIS域名字服务。
- Returns:
- AccountType 域名字服务类型。默认取值:NIS。
- NIS:NIS域名字服务。
-
setAccountType
public void setAccountType(String AccountType)
Set 域名字服务类型。默认取值:NIS。- NIS:NIS域名字服务。
- Parameters:
AccountType
- 域名字服务类型。默认取值:NIS。- NIS:NIS域名字服务。
-
getClusterName
public String getClusterName()
Get 集群显示名称。- Returns:
- ClusterName 集群显示名称。
-
setClusterName
public void setClusterName(String ClusterName)
Set 集群显示名称。- Parameters:
ClusterName
- 集群显示名称。
-
getStorageOption
public StorageOption getStorageOption()
Get 集群存储选项- Returns:
- StorageOption 集群存储选项
-
setStorageOption
public void setStorageOption(StorageOption StorageOption)
Set 集群存储选项- Parameters:
StorageOption
- 集群存储选项
-
getLoginNode
public LoginNode getLoginNode()
Get 指定登录节点。- Returns:
- LoginNode 指定登录节点。
-
setLoginNode
public void setLoginNode(LoginNode LoginNode)
Set 指定登录节点。- Parameters:
LoginNode
- 指定登录节点。
-
getLoginNodeCount
public Long getLoginNodeCount()
Get 指定登录节点的数量。默认取值:0。取值范围:0~10。- Returns:
- LoginNodeCount 指定登录节点的数量。默认取值:0。取值范围:0~10。
-
setLoginNodeCount
public void setLoginNodeCount(Long LoginNodeCount)
Set 指定登录节点的数量。默认取值:0。取值范围:0~10。- Parameters:
LoginNodeCount
- 指定登录节点的数量。默认取值:0。取值范围:0~10。
-
getTags
public Tag[] getTags()
Get 创建集群时同时绑定的标签对说明。- Returns:
- Tags 创建集群时同时绑定的标签对说明。
-
setTags
public void setTags(Tag[] Tags)
Set 创建集群时同时绑定的标签对说明。- Parameters:
Tags
- 创建集群时同时绑定的标签对说明。
-
getAutoScalingType
public String getAutoScalingType()
Get 弹性伸缩类型。- AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。
- THPC_AS:集群自动扩缩容由THPC产品内部实现。
- Returns:
- AutoScalingType 弹性伸缩类型。
- AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。
- THPC_AS:集群自动扩缩容由THPC产品内部实现。
- AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。
- AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。
-
setAutoScalingType
public void setAutoScalingType(String AutoScalingType)
Set 弹性伸缩类型。- AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。
- THPC_AS:集群自动扩缩容由THPC产品内部实现。
- Parameters:
AutoScalingType
- 弹性伸缩类型。- AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。
- THPC_AS:集群自动扩缩容由THPC产品内部实现。
- AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。
- AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。
-
-