public class CreateInstanceRequest extends AbstractModel
Constructor and Description |
---|
CreateInstanceRequest() |
CreateInstanceRequest(CreateInstanceRequest 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.
|
Modifier and Type | Method and Description |
---|---|
String |
getApplicationRole()
Get Custom application role.
|
Long |
getAutoRenew()
Get Whether auto-renewal is enabled.
|
Long |
getCbsEncrypt()
Get CBS disk encryption at the cluster level.
|
Long |
getCheckSecurity()
Get Whether to enable secure cluster.
|
String |
getClientToken()
Get Client token.
|
COSSettings |
getCOSSettings()
Get Parameter required for enabling COS access.
|
String[] |
getDisasterRecoverGroupIds()
Get List of spread placement group IDs.
|
String |
getExtendFsField()
Get Accesses to external file system.
|
ExternalService[] |
getExternalService()
Get Shared component information
|
String |
getInstanceName()
Get Instance name.
|
LoginSettings |
getLoginSettings()
Get Instance login settings.
|
CustomMetaInfo |
getMetaDBInfo()
Get Custom MetaDB instance information
|
String |
getMetaType()
Get Hive-shared metadatabase type.
|
Boolean |
getMultiZone()
Get `true` indicates that the multi-AZ deployment mode is enabled.
|
MultiZoneSetting[] |
getMultiZoneSettings()
Get Node resource specs.
|
String |
getNeedMasterWan()
Get Whether to enable public IP access for master node.
|
Long |
getPayMode()
Get Instance billing mode.
|
Placement |
getPlacement()
Get Instance location.
|
PreExecuteFileSettings[] |
getPreExecutedFileSettings()
Get [Bootstrap action](https://intl.cloud.tencent.com/document/product/589/35656?from_cn_redirect=1) script settings
|
Long |
getProductId()
Get The product ID.
|
Long |
getRemoteLoginAtCreate()
Get Whether to enable remote public network login, i.e., port 22.
|
NewResourceSpec |
getResourceSpec()
Get Node resource specification.
|
String |
getSceneName()
Get Scenario-based values:
Hadoop-Kudu
Hadoop-Zookeeper
Hadoop-Presto
Hadoop-Hbase
|
String |
getSgId()
Get Security group to which an instance belongs in the format of `sg-xxxxxxxx`.
|
String[] |
getSoftware()
Get List of deployed components.
|
Long |
getSupportHA()
Get Whether to enable high node availability.
|
Tag[] |
getTags()
Get Tag description list.
|
Long |
getTimeSpan()
Get Purchase duration of instance, which needs to be used together with `TimeUnit`.
|
String |
getTimeUnit()
Get Time unit of instance purchase duration.
|
String |
getUnifyMetaInstanceId()
Get EMR-MetaDB instance
|
Long |
getVersionID()
Get
|
VPCSettings |
getVPCSettings()
Get Configuration information of VPC.
|
void |
setApplicationRole(String ApplicationRole)
Set Custom application role.
|
void |
setAutoRenew(Long AutoRenew)
Set Whether auto-renewal is enabled.
|
void |
setCbsEncrypt(Long CbsEncrypt)
Set CBS disk encryption at the cluster level.
|
void |
setCheckSecurity(Long CheckSecurity)
Set Whether to enable secure cluster.
|
void |
setClientToken(String ClientToken)
Set Client token.
|
void |
setCOSSettings(COSSettings COSSettings)
Set Parameter required for enabling COS access.
|
void |
setDisasterRecoverGroupIds(String[] DisasterRecoverGroupIds)
Set List of spread placement group IDs.
|
void |
setExtendFsField(String ExtendFsField)
Set Accesses to external file system.
|
void |
setExternalService(ExternalService[] ExternalService)
Set Shared component information
|
void |
setInstanceName(String InstanceName)
Set Instance name.
|
void |
setLoginSettings(LoginSettings LoginSettings)
Set Instance login settings.
|
void |
setMetaDBInfo(CustomMetaInfo MetaDBInfo)
Set Custom MetaDB instance information
|
void |
setMetaType(String MetaType)
Set Hive-shared metadatabase type.
|
void |
setMultiZone(Boolean MultiZone)
Set `true` indicates that the multi-AZ deployment mode is enabled.
|
void |
setMultiZoneSettings(MultiZoneSetting[] MultiZoneSettings)
Set Node resource specs.
|
void |
setNeedMasterWan(String NeedMasterWan)
Set Whether to enable public IP access for master node.
|
void |
setPayMode(Long PayMode)
Set Instance billing mode.
|
void |
setPlacement(Placement Placement)
Set Instance location.
|
void |
setPreExecutedFileSettings(PreExecuteFileSettings[] PreExecutedFileSettings)
Set [Bootstrap action](https://intl.cloud.tencent.com/document/product/589/35656?from_cn_redirect=1) script settings
|
void |
setProductId(Long ProductId)
Set The product ID.
|
void |
setRemoteLoginAtCreate(Long RemoteLoginAtCreate)
Set Whether to enable remote public network login, i.e., port 22.
|
void |
setResourceSpec(NewResourceSpec ResourceSpec)
Set Node resource specification.
|
void |
setSceneName(String SceneName)
Set Scenario-based values:
Hadoop-Kudu
Hadoop-Zookeeper
Hadoop-Presto
Hadoop-Hbase
|
void |
setSgId(String SgId)
Set Security group to which an instance belongs in the format of `sg-xxxxxxxx`.
|
void |
setSoftware(String[] Software)
Set List of deployed components.
|
void |
setSupportHA(Long SupportHA)
Set Whether to enable high node availability.
|
void |
setTags(Tag[] Tags)
Set Tag description list.
|
void |
setTimeSpan(Long TimeSpan)
Set Purchase duration of instance, which needs to be used together with `TimeUnit`.
|
void |
setTimeUnit(String TimeUnit)
Set Time unit of instance purchase duration.
|
void |
setUnifyMetaInstanceId(String UnifyMetaInstanceId)
Set EMR-MetaDB instance
|
void |
setVersionID(Long VersionID)
Set
|
void |
setVPCSettings(VPCSettings VPCSettings)
Set Configuration information of VPC.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateInstanceRequest()
public CreateInstanceRequest(CreateInstanceRequest source)
public Long getProductId()
public void setProductId(Long ProductId)
ProductId
- The product ID. Different product IDs represent different EMR product versions. Valid values:
public String[] getSoftware()
public void setSoftware(String[] Software)
Software
- List of deployed components. The list of component options varies by EMR product ID (i.e., `ProductId`; for specific meanings, please see the `ProductId` input parameter). For more information, please see [Component Version](https://intl.cloud.tencent.com/document/product/589/20279?from_cn_redirect=1).
Enter an instance value: `hive` or `flink`.public Long getSupportHA()
public void setSupportHA(Long SupportHA)
SupportHA
- Whether to enable high node availability. Valid values:
public String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName
- Instance name.
public Long getPayMode()
public void setPayMode(Long PayMode)
PayMode
- Instance billing mode. Valid values:
public Long getTimeSpan()
public void setTimeSpan(Long TimeSpan)
TimeSpan
- Purchase duration of instance, which needs to be used together with `TimeUnit`.
public String getTimeUnit()
public void setTimeUnit(String TimeUnit)
TimeUnit
- Time unit of instance purchase duration. Valid values:
public LoginSettings getLoginSettings()
public void setLoginSettings(LoginSettings LoginSettings)
LoginSettings
- Instance login settings. This parameter allows you to set the login password or key for your purchased node.
public VPCSettings getVPCSettings()
public void setVPCSettings(VPCSettings VPCSettings)
VPCSettings
- Configuration information of VPC. This parameter is used to specify the VPC ID, subnet ID, etc.public NewResourceSpec getResourceSpec()
public void setResourceSpec(NewResourceSpec ResourceSpec)
ResourceSpec
- Node resource specification.public COSSettings getCOSSettings()
public void setCOSSettings(COSSettings COSSettings)
COSSettings
- Parameter required for enabling COS access.public Placement getPlacement()
public void setPlacement(Placement Placement)
Placement
- Instance location. This parameter is used to specify the AZ, project, and other attributes of the instance.public String getSgId()
public void setSgId(String SgId)
SgId
- Security group to which an instance belongs in the format of `sg-xxxxxxxx`. This parameter can be obtained from the `SecurityGroupId` field in the return value of the [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808) API.public PreExecuteFileSettings[] getPreExecutedFileSettings()
public void setPreExecutedFileSettings(PreExecuteFileSettings[] PreExecutedFileSettings)
PreExecutedFileSettings
- [Bootstrap action](https://intl.cloud.tencent.com/document/product/589/35656?from_cn_redirect=1) script settingspublic Long getAutoRenew()
public void setAutoRenew(Long AutoRenew)
AutoRenew
- Whether auto-renewal is enabled. Valid values:
public String getClientToken()
public void setClientToken(String ClientToken)
ClientToken
- Client token.public String getNeedMasterWan()
public void setNeedMasterWan(String NeedMasterWan)
NeedMasterWan
- Whether to enable public IP access for master node. Valid values:
public Long getRemoteLoginAtCreate()
public void setRemoteLoginAtCreate(Long RemoteLoginAtCreate)
RemoteLoginAtCreate
- Whether to enable remote public network login, i.e., port 22. When `SgId` is not empty, this parameter does not take effect.public Long getCheckSecurity()
public void setCheckSecurity(Long CheckSecurity)
CheckSecurity
- Whether to enable secure cluster. 0: no; other values: yes.public String getExtendFsField()
public void setExtendFsField(String ExtendFsField)
ExtendFsField
- Accesses to external file system.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- Tag description list. This parameter is used to bind a tag to a resource instance.public String[] getDisasterRecoverGroupIds()
public void setDisasterRecoverGroupIds(String[] DisasterRecoverGroupIds)
DisasterRecoverGroupIds
- List of spread placement group IDs. Only one can be specified currently.
This parameter can be obtained in the `SecurityGroupId` field in the return value of the [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/product/213/15486?from_cn_redirect=1) API.public Long getCbsEncrypt()
public void setCbsEncrypt(Long CbsEncrypt)
CbsEncrypt
- CBS disk encryption at the cluster level. 0: not encrypted, 1: encryptedpublic String getMetaType()
public void setMetaType(String MetaType)
MetaType
- Hive-shared metadatabase type. Valid values:
public String getUnifyMetaInstanceId()
public void setUnifyMetaInstanceId(String UnifyMetaInstanceId)
UnifyMetaInstanceId
- EMR-MetaDB instancepublic CustomMetaInfo getMetaDBInfo()
public void setMetaDBInfo(CustomMetaInfo MetaDBInfo)
MetaDBInfo
- Custom MetaDB instance informationpublic String getApplicationRole()
public void setApplicationRole(String ApplicationRole)
ApplicationRole
- Custom application role.public String getSceneName()
public void setSceneName(String SceneName)
SceneName
- Scenario-based values:
Hadoop-Kudu
Hadoop-Zookeeper
Hadoop-Presto
Hadoop-Hbasepublic ExternalService[] getExternalService()
public void setExternalService(ExternalService[] ExternalService)
ExternalService
- Shared component informationpublic Long getVersionID()
public void setVersionID(Long VersionID)
VersionID
- public Boolean getMultiZone()
public void setMultiZone(Boolean MultiZone)
MultiZone
- `true` indicates that the multi-AZ deployment mode is enabled. This parameter is available only in cluster creation and cannot be changed after setting.public MultiZoneSetting[] getMultiZoneSettings()
public void setMultiZoneSettings(MultiZoneSetting[] MultiZoneSettings)
MultiZoneSettings
- Node resource specs. The actual number of AZs is set, with the first AZ as the primary AZ, the second as the backup AZ, and the third as the arbitrator AZ. If the multi-AZ mode is not enabled, set the value to `1`.Copyright © 2023. All rights reserved.