com.tencentcloudapi.emr.v20190103.models.InquiryPriceCreateInstanceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-emr Show documentation
Show all versions of tencentcloud-sdk-java-emr Show documentation
Tencent Cloud Open 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.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 InquiryPriceCreateInstanceRequest extends AbstractModel{
/**
* 购买实例的时间单位。取值范围:
s:表示秒。PayMode取值为0时,TimeUnit只能取值为s。
m:表示月份。PayMode取值为1时,TimeUnit只能取值为m。
*/
@SerializedName("TimeUnit")
@Expose
private String TimeUnit;
/**
* 购买实例的时长。结合TimeUnit一起使用。
TimeUnit为s时,该参数只能填写3600,表示按量计费实例。
TimeUnit为m时,该参数填写的数字表示包年包月实例的购买时长,如1表示购买一个月
*/
@SerializedName("TimeSpan")
@Expose
private Long TimeSpan;
/**
* 货币种类。取值范围:
CNY:表示人民币。
*/
@SerializedName("Currency")
@Expose
private String Currency;
/**
* 实例计费模式。取值范围:
0:表示按量计费。
1:表示包年包月。
*/
@SerializedName("PayMode")
@Expose
private Long PayMode;
/**
* 是否开启节点高可用。取值范围:
0:表示不开启节点高可用。
1:表示开启节点高可用。
*/
@SerializedName("SupportHA")
@Expose
private Long SupportHA;
/**
* 部署的组件列表。不同的EMR产品ID(ProductId:具体含义参考入参ProductId字段)需要选择不同的必选组件:
ProductId为1的时候,必选组件包括:hadoop-2.7.3、knox-1.2.0、zookeeper-3.4.9
ProductId为2的时候,必选组件包括:hadoop-2.7.3、knox-1.2.0、zookeeper-3.4.9
ProductId为4的时候,必选组件包括:hadoop-2.8.4、knox-1.2.0、zookeeper-3.4.9
ProductId为7的时候,必选组件包括:hadoop-3.1.2、knox-1.2.0、zookeeper-3.4.9
*/
@SerializedName("Software")
@Expose
private String [] Software;
/**
* 询价的节点规格。
*/
@SerializedName("ResourceSpec")
@Expose
private NewResourceSpec ResourceSpec;
/**
* 实例所在的位置。通过该参数可以指定实例所属可用区,所属项目等属性。
*/
@SerializedName("Placement")
@Expose
private Placement Placement;
/**
* 私有网络相关信息配置。通过该参数可以指定私有网络的ID,子网ID等信息。
*/
@SerializedName("VPCSettings")
@Expose
private VPCSettings VPCSettings;
/**
* hive共享元数据库类型。取值范围:
EMR_NEW_META:表示集群默认创建
EMR_EXIT_METE:表示集群使用指定EMR-MetaDB。
USER_CUSTOM_META:表示集群使用自定义MetaDB。
*/
@SerializedName("MetaType")
@Expose
private String MetaType;
/**
* EMR-MetaDB实例
*/
@SerializedName("UnifyMetaInstanceId")
@Expose
private String UnifyMetaInstanceId;
/**
* 自定义MetaDB信息
*/
@SerializedName("MetaDBInfo")
@Expose
private CustomMetaInfo MetaDBInfo;
/**
* 产品ID,不同产品ID表示不同的EMR产品版本。取值范围:
1:表示EMR-V1.3.1。
2:表示EMR-V2.0.1。
4:表示EMR-V2.1.0。
7:表示EMR-V3.0.0。
*/
@SerializedName("ProductId")
@Expose
private Long ProductId;
/**
* 场景化取值:
Hadoop-Kudu
Hadoop-Zookeeper
Hadoop-Presto
Hadoop-Hbase
*/
@SerializedName("SceneName")
@Expose
private String SceneName;
/**
* 共用组件信息
*/
@SerializedName("ExternalService")
@Expose
private ExternalService [] ExternalService;
/**
* 当前默认值为0,跨AZ特性支持后为1
*/
@SerializedName("VersionID")
@Expose
private Long VersionID;
/**
* 可用区的规格信息
*/
@SerializedName("MultiZoneSettings")
@Expose
private MultiZoneSetting [] MultiZoneSettings;
/**
* Get 购买实例的时间单位。取值范围:
s:表示秒。PayMode取值为0时,TimeUnit只能取值为s。
m:表示月份。PayMode取值为1时,TimeUnit只能取值为m。
* @return TimeUnit 购买实例的时间单位。取值范围:
s:表示秒。PayMode取值为0时,TimeUnit只能取值为s。
m:表示月份。PayMode取值为1时,TimeUnit只能取值为m。
*/
public String getTimeUnit() {
return this.TimeUnit;
}
/**
* Set 购买实例的时间单位。取值范围:
s:表示秒。PayMode取值为0时,TimeUnit只能取值为s。
m:表示月份。PayMode取值为1时,TimeUnit只能取值为m。
* @param TimeUnit 购买实例的时间单位。取值范围:
s:表示秒。PayMode取值为0时,TimeUnit只能取值为s。
m:表示月份。PayMode取值为1时,TimeUnit只能取值为m。
*/
public void setTimeUnit(String TimeUnit) {
this.TimeUnit = TimeUnit;
}
/**
* Get 购买实例的时长。结合TimeUnit一起使用。
TimeUnit为s时,该参数只能填写3600,表示按量计费实例。
TimeUnit为m时,该参数填写的数字表示包年包月实例的购买时长,如1表示购买一个月
* @return TimeSpan 购买实例的时长。结合TimeUnit一起使用。
TimeUnit为s时,该参数只能填写3600,表示按量计费实例。
TimeUnit为m时,该参数填写的数字表示包年包月实例的购买时长,如1表示购买一个月
*/
public Long getTimeSpan() {
return this.TimeSpan;
}
/**
* Set 购买实例的时长。结合TimeUnit一起使用。
TimeUnit为s时,该参数只能填写3600,表示按量计费实例。
TimeUnit为m时,该参数填写的数字表示包年包月实例的购买时长,如1表示购买一个月
* @param TimeSpan 购买实例的时长。结合TimeUnit一起使用。
TimeUnit为s时,该参数只能填写3600,表示按量计费实例。
TimeUnit为m时,该参数填写的数字表示包年包月实例的购买时长,如1表示购买一个月
*/
public void setTimeSpan(Long TimeSpan) {
this.TimeSpan = TimeSpan;
}
/**
* Get 货币种类。取值范围:
CNY:表示人民币。
* @return Currency 货币种类。取值范围:
CNY:表示人民币。
*/
public String getCurrency() {
return this.Currency;
}
/**
* Set 货币种类。取值范围:
CNY:表示人民币。
* @param Currency 货币种类。取值范围:
CNY:表示人民币。
*/
public void setCurrency(String Currency) {
this.Currency = Currency;
}
/**
* Get 实例计费模式。取值范围:
0:表示按量计费。
1:表示包年包月。
* @return PayMode 实例计费模式。取值范围:
0:表示按量计费。
1:表示包年包月。
*/
public Long getPayMode() {
return this.PayMode;
}
/**
* Set 实例计费模式。取值范围:
0:表示按量计费。
1:表示包年包月。
* @param PayMode 实例计费模式。取值范围:
0:表示按量计费。
1:表示包年包月。
*/
public void setPayMode(Long PayMode) {
this.PayMode = PayMode;
}
/**
* Get 是否开启节点高可用。取值范围:
0:表示不开启节点高可用。
1:表示开启节点高可用。
* @return SupportHA 是否开启节点高可用。取值范围:
0:表示不开启节点高可用。
1:表示开启节点高可用。
*/
public Long getSupportHA() {
return this.SupportHA;
}
/**
* Set 是否开启节点高可用。取值范围:
0:表示不开启节点高可用。
1:表示开启节点高可用。
* @param SupportHA 是否开启节点高可用。取值范围:
0:表示不开启节点高可用。
1:表示开启节点高可用。
*/
public void setSupportHA(Long SupportHA) {
this.SupportHA = SupportHA;
}
/**
* Get 部署的组件列表。不同的EMR产品ID(ProductId:具体含义参考入参ProductId字段)需要选择不同的必选组件:
ProductId为1的时候,必选组件包括:hadoop-2.7.3、knox-1.2.0、zookeeper-3.4.9
ProductId为2的时候,必选组件包括:hadoop-2.7.3、knox-1.2.0、zookeeper-3.4.9
ProductId为4的时候,必选组件包括:hadoop-2.8.4、knox-1.2.0、zookeeper-3.4.9
ProductId为7的时候,必选组件包括:hadoop-3.1.2、knox-1.2.0、zookeeper-3.4.9
* @return Software 部署的组件列表。不同的EMR产品ID(ProductId:具体含义参考入参ProductId字段)需要选择不同的必选组件:
ProductId为1的时候,必选组件包括:hadoop-2.7.3、knox-1.2.0、zookeeper-3.4.9
ProductId为2的时候,必选组件包括:hadoop-2.7.3、knox-1.2.0、zookeeper-3.4.9
ProductId为4的时候,必选组件包括:hadoop-2.8.4、knox-1.2.0、zookeeper-3.4.9
ProductId为7的时候,必选组件包括:hadoop-3.1.2、knox-1.2.0、zookeeper-3.4.9
*/
public String [] getSoftware() {
return this.Software;
}
/**
* Set 部署的组件列表。不同的EMR产品ID(ProductId:具体含义参考入参ProductId字段)需要选择不同的必选组件:
ProductId为1的时候,必选组件包括:hadoop-2.7.3、knox-1.2.0、zookeeper-3.4.9
ProductId为2的时候,必选组件包括:hadoop-2.7.3、knox-1.2.0、zookeeper-3.4.9
ProductId为4的时候,必选组件包括:hadoop-2.8.4、knox-1.2.0、zookeeper-3.4.9
ProductId为7的时候,必选组件包括:hadoop-3.1.2、knox-1.2.0、zookeeper-3.4.9
* @param Software 部署的组件列表。不同的EMR产品ID(ProductId:具体含义参考入参ProductId字段)需要选择不同的必选组件:
ProductId为1的时候,必选组件包括:hadoop-2.7.3、knox-1.2.0、zookeeper-3.4.9
ProductId为2的时候,必选组件包括:hadoop-2.7.3、knox-1.2.0、zookeeper-3.4.9
ProductId为4的时候,必选组件包括:hadoop-2.8.4、knox-1.2.0、zookeeper-3.4.9
ProductId为7的时候,必选组件包括:hadoop-3.1.2、knox-1.2.0、zookeeper-3.4.9
*/
public void setSoftware(String [] Software) {
this.Software = Software;
}
/**
* Get 询价的节点规格。
* @return ResourceSpec 询价的节点规格。
*/
public NewResourceSpec getResourceSpec() {
return this.ResourceSpec;
}
/**
* Set 询价的节点规格。
* @param ResourceSpec 询价的节点规格。
*/
public void setResourceSpec(NewResourceSpec ResourceSpec) {
this.ResourceSpec = ResourceSpec;
}
/**
* Get 实例所在的位置。通过该参数可以指定实例所属可用区,所属项目等属性。
* @return Placement 实例所在的位置。通过该参数可以指定实例所属可用区,所属项目等属性。
*/
public Placement getPlacement() {
return this.Placement;
}
/**
* Set 实例所在的位置。通过该参数可以指定实例所属可用区,所属项目等属性。
* @param Placement 实例所在的位置。通过该参数可以指定实例所属可用区,所属项目等属性。
*/
public void setPlacement(Placement Placement) {
this.Placement = Placement;
}
/**
* Get 私有网络相关信息配置。通过该参数可以指定私有网络的ID,子网ID等信息。
* @return VPCSettings 私有网络相关信息配置。通过该参数可以指定私有网络的ID,子网ID等信息。
*/
public VPCSettings getVPCSettings() {
return this.VPCSettings;
}
/**
* Set 私有网络相关信息配置。通过该参数可以指定私有网络的ID,子网ID等信息。
* @param VPCSettings 私有网络相关信息配置。通过该参数可以指定私有网络的ID,子网ID等信息。
*/
public void setVPCSettings(VPCSettings VPCSettings) {
this.VPCSettings = VPCSettings;
}
/**
* Get hive共享元数据库类型。取值范围:
EMR_NEW_META:表示集群默认创建
EMR_EXIT_METE:表示集群使用指定EMR-MetaDB。
USER_CUSTOM_META:表示集群使用自定义MetaDB。
* @return MetaType hive共享元数据库类型。取值范围:
EMR_NEW_META:表示集群默认创建
EMR_EXIT_METE:表示集群使用指定EMR-MetaDB。
USER_CUSTOM_META:表示集群使用自定义MetaDB。
*/
public String getMetaType() {
return this.MetaType;
}
/**
* Set hive共享元数据库类型。取值范围:
EMR_NEW_META:表示集群默认创建
EMR_EXIT_METE:表示集群使用指定EMR-MetaDB。
USER_CUSTOM_META:表示集群使用自定义MetaDB。
* @param MetaType hive共享元数据库类型。取值范围:
EMR_NEW_META:表示集群默认创建
EMR_EXIT_METE:表示集群使用指定EMR-MetaDB。
USER_CUSTOM_META:表示集群使用自定义MetaDB。
*/
public void setMetaType(String MetaType) {
this.MetaType = MetaType;
}
/**
* Get EMR-MetaDB实例
* @return UnifyMetaInstanceId EMR-MetaDB实例
*/
public String getUnifyMetaInstanceId() {
return this.UnifyMetaInstanceId;
}
/**
* Set EMR-MetaDB实例
* @param UnifyMetaInstanceId EMR-MetaDB实例
*/
public void setUnifyMetaInstanceId(String UnifyMetaInstanceId) {
this.UnifyMetaInstanceId = UnifyMetaInstanceId;
}
/**
* Get 自定义MetaDB信息
* @return MetaDBInfo 自定义MetaDB信息
*/
public CustomMetaInfo getMetaDBInfo() {
return this.MetaDBInfo;
}
/**
* Set 自定义MetaDB信息
* @param MetaDBInfo 自定义MetaDB信息
*/
public void setMetaDBInfo(CustomMetaInfo MetaDBInfo) {
this.MetaDBInfo = MetaDBInfo;
}
/**
* Get 产品ID,不同产品ID表示不同的EMR产品版本。取值范围:
1:表示EMR-V1.3.1。
2:表示EMR-V2.0.1。
4:表示EMR-V2.1.0。
7:表示EMR-V3.0.0。
* @return ProductId 产品ID,不同产品ID表示不同的EMR产品版本。取值范围:
1:表示EMR-V1.3.1。
2:表示EMR-V2.0.1。
4:表示EMR-V2.1.0。
7:表示EMR-V3.0.0。
*/
public Long getProductId() {
return this.ProductId;
}
/**
* Set 产品ID,不同产品ID表示不同的EMR产品版本。取值范围:
1:表示EMR-V1.3.1。
2:表示EMR-V2.0.1。
4:表示EMR-V2.1.0。
7:表示EMR-V3.0.0。
* @param ProductId 产品ID,不同产品ID表示不同的EMR产品版本。取值范围:
1:表示EMR-V1.3.1。
2:表示EMR-V2.0.1。
4:表示EMR-V2.1.0。
7:表示EMR-V3.0.0。
*/
public void setProductId(Long ProductId) {
this.ProductId = ProductId;
}
/**
* Get 场景化取值:
Hadoop-Kudu
Hadoop-Zookeeper
Hadoop-Presto
Hadoop-Hbase
* @return SceneName 场景化取值:
Hadoop-Kudu
Hadoop-Zookeeper
Hadoop-Presto
Hadoop-Hbase
*/
public String getSceneName() {
return this.SceneName;
}
/**
* Set 场景化取值:
Hadoop-Kudu
Hadoop-Zookeeper
Hadoop-Presto
Hadoop-Hbase
* @param SceneName 场景化取值:
Hadoop-Kudu
Hadoop-Zookeeper
Hadoop-Presto
Hadoop-Hbase
*/
public void setSceneName(String SceneName) {
this.SceneName = SceneName;
}
/**
* Get 共用组件信息
* @return ExternalService 共用组件信息
*/
public ExternalService [] getExternalService() {
return this.ExternalService;
}
/**
* Set 共用组件信息
* @param ExternalService 共用组件信息
*/
public void setExternalService(ExternalService [] ExternalService) {
this.ExternalService = ExternalService;
}
/**
* Get 当前默认值为0,跨AZ特性支持后为1
* @return VersionID 当前默认值为0,跨AZ特性支持后为1
*/
public Long getVersionID() {
return this.VersionID;
}
/**
* Set 当前默认值为0,跨AZ特性支持后为1
* @param VersionID 当前默认值为0,跨AZ特性支持后为1
*/
public void setVersionID(Long VersionID) {
this.VersionID = VersionID;
}
/**
* Get 可用区的规格信息
* @return MultiZoneSettings 可用区的规格信息
*/
public MultiZoneSetting [] getMultiZoneSettings() {
return this.MultiZoneSettings;
}
/**
* Set 可用区的规格信息
* @param MultiZoneSettings 可用区的规格信息
*/
public void setMultiZoneSettings(MultiZoneSetting [] MultiZoneSettings) {
this.MultiZoneSettings = MultiZoneSettings;
}
public InquiryPriceCreateInstanceRequest() {
}
/**
* 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 InquiryPriceCreateInstanceRequest(InquiryPriceCreateInstanceRequest source) {
if (source.TimeUnit != null) {
this.TimeUnit = new String(source.TimeUnit);
}
if (source.TimeSpan != null) {
this.TimeSpan = new Long(source.TimeSpan);
}
if (source.Currency != null) {
this.Currency = new String(source.Currency);
}
if (source.PayMode != null) {
this.PayMode = new Long(source.PayMode);
}
if (source.SupportHA != null) {
this.SupportHA = new Long(source.SupportHA);
}
if (source.Software != null) {
this.Software = new String[source.Software.length];
for (int i = 0; i < source.Software.length; i++) {
this.Software[i] = new String(source.Software[i]);
}
}
if (source.ResourceSpec != null) {
this.ResourceSpec = new NewResourceSpec(source.ResourceSpec);
}
if (source.Placement != null) {
this.Placement = new Placement(source.Placement);
}
if (source.VPCSettings != null) {
this.VPCSettings = new VPCSettings(source.VPCSettings);
}
if (source.MetaType != null) {
this.MetaType = new String(source.MetaType);
}
if (source.UnifyMetaInstanceId != null) {
this.UnifyMetaInstanceId = new String(source.UnifyMetaInstanceId);
}
if (source.MetaDBInfo != null) {
this.MetaDBInfo = new CustomMetaInfo(source.MetaDBInfo);
}
if (source.ProductId != null) {
this.ProductId = new Long(source.ProductId);
}
if (source.SceneName != null) {
this.SceneName = new String(source.SceneName);
}
if (source.ExternalService != null) {
this.ExternalService = new ExternalService[source.ExternalService.length];
for (int i = 0; i < source.ExternalService.length; i++) {
this.ExternalService[i] = new ExternalService(source.ExternalService[i]);
}
}
if (source.VersionID != null) {
this.VersionID = new Long(source.VersionID);
}
if (source.MultiZoneSettings != null) {
this.MultiZoneSettings = new MultiZoneSetting[source.MultiZoneSettings.length];
for (int i = 0; i < source.MultiZoneSettings.length; i++) {
this.MultiZoneSettings[i] = new MultiZoneSetting(source.MultiZoneSettings[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "TimeUnit", this.TimeUnit);
this.setParamSimple(map, prefix + "TimeSpan", this.TimeSpan);
this.setParamSimple(map, prefix + "Currency", this.Currency);
this.setParamSimple(map, prefix + "PayMode", this.PayMode);
this.setParamSimple(map, prefix + "SupportHA", this.SupportHA);
this.setParamArraySimple(map, prefix + "Software.", this.Software);
this.setParamObj(map, prefix + "ResourceSpec.", this.ResourceSpec);
this.setParamObj(map, prefix + "Placement.", this.Placement);
this.setParamObj(map, prefix + "VPCSettings.", this.VPCSettings);
this.setParamSimple(map, prefix + "MetaType", this.MetaType);
this.setParamSimple(map, prefix + "UnifyMetaInstanceId", this.UnifyMetaInstanceId);
this.setParamObj(map, prefix + "MetaDBInfo.", this.MetaDBInfo);
this.setParamSimple(map, prefix + "ProductId", this.ProductId);
this.setParamSimple(map, prefix + "SceneName", this.SceneName);
this.setParamArrayObj(map, prefix + "ExternalService.", this.ExternalService);
this.setParamSimple(map, prefix + "VersionID", this.VersionID);
this.setParamArrayObj(map, prefix + "MultiZoneSettings.", this.MultiZoneSettings);
}
}