
com.tencentcloudapi.emr.v20190103.models.InquiryPriceCreateInstanceRequest Maven / Gradle / Ivy
/*
* 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一起使用。
*/
@SerializedName("TimeSpan")
@Expose
private Long TimeSpan;
/**
* 询价的节点规格。
*/
@SerializedName("ResourceSpec")
@Expose
private NewResourceSpec ResourceSpec;
/**
* 货币种类。取值范围:
CNY:表示人民币。
*/
@SerializedName("Currency")
@Expose
private String Currency;
/**
* 实例计费模式。取值范围:
0:表示按量计费。
1:表示包年包月。
*/
@SerializedName("PayMode")
@Expose
private Long PayMode;
/**
* 是否开启节点高可用。取值范围:
0:表示不开启节点高可用。
1:表示开启节点高可用。
*/
@SerializedName("SupportHA")
@Expose
private Long SupportHA;
/**
* 部署的组件列表。
*/
@SerializedName("Software")
@Expose
private String [] Software;
/**
* 实例所在的位置。通过该参数可以指定实例所属可用区,所属项目等属性。
*/
@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;
/**
* 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一起使用。
* @return TimeSpan 购买实例的时长。需要结合TimeUnit一起使用。
*/
public Long getTimeSpan() {
return this.TimeSpan;
}
/**
* Set 购买实例的时长。需要结合TimeUnit一起使用。
* @param TimeSpan 购买实例的时长。需要结合TimeUnit一起使用。
*/
public void setTimeSpan(Long TimeSpan) {
this.TimeSpan = TimeSpan;
}
/**
* Get 询价的节点规格。
* @return ResourceSpec 询价的节点规格。
*/
public NewResourceSpec getResourceSpec() {
return this.ResourceSpec;
}
/**
* Set 询价的节点规格。
* @param ResourceSpec 询价的节点规格。
*/
public void setResourceSpec(NewResourceSpec ResourceSpec) {
this.ResourceSpec = ResourceSpec;
}
/**
* 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 部署的组件列表。
* @return Software 部署的组件列表。
*/
public String [] getSoftware() {
return this.Software;
}
/**
* Set 部署的组件列表。
* @param Software 部署的组件列表。
*/
public void setSoftware(String [] Software) {
this.Software = Software;
}
/**
* 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;
}
/**
* 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.setParamObj(map, prefix + "ResourceSpec.", this.ResourceSpec);
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 + "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);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy