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-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.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{
/**
* Time unit of instance purchase duration. Valid values:
s: seconds. When `PayMode` is 0, `TimeUnit` can only be `s`.
*/
@SerializedName("TimeUnit")
@Expose
private String TimeUnit;
/**
* Purchase duration of instance, which needs to be used together with `TimeUnit`.
When `TimeUnit` is `s`, this parameter can only be filled with 3600, indicating a pay-as-you-go instance.
When `TimeUnit` is `m`, the number entered in this parameter indicates the purchase duration of the monthly-subscription instance; for example, 1 means one month
*/
@SerializedName("TimeSpan")
@Expose
private Long TimeSpan;
/**
* Node specification queried for price.
*/
@SerializedName("ResourceSpec")
@Expose
private NewResourceSpec ResourceSpec;
/**
* Currency.
*/
@SerializedName("Currency")
@Expose
private String Currency;
/**
* Instance billing mode. Valid values:
0: pay-as-you-go.
*/
@SerializedName("PayMode")
@Expose
private Long PayMode;
/**
* Whether to enable high availability of node. Valid values:
0: does not enable high availability of node.
1: enables high availability of node.
*/
@SerializedName("SupportHA")
@Expose
private Long SupportHA;
/**
* List of deployed components. Different required components need to be selected for different EMR product IDs (i.e., `ProductId`; for specific meanings, please see the `ProductId` field in the input parameter):
When `ProductId` is 1, the required components include hadoop-2.7.3, knox-1.2.0, and zookeeper-3.4.9
When `ProductId` is 2, the required components include hadoop-2.7.3, knox-1.2.0, and zookeeper-3.4.9
When `ProductId` is 4, the required components include hadoop-2.8.4, knox-1.2.0, and zookeeper-3.4.9
When `ProductId` is 7, the required components include hadoop-3.1.2, knox-1.2.0, and zookeeper-3.4.9
*/
@SerializedName("Software")
@Expose
private String [] Software;
/**
* Instance location. This parameter is used to specify the AZ, project, and other attributes of the instance.
*/
@SerializedName("Placement")
@Expose
private Placement Placement;
/**
* Configuration information of VPC. This parameter is used to specify the VPC ID, subnet ID, etc.
*/
@SerializedName("VPCSettings")
@Expose
private VPCSettings VPCSettings;
/**
* Hive-shared metadatabase type. Valid values:
EMR_DEFAULT_META: the cluster creates one by default.
EMR_EXIST_META: the cluster uses the specified EMR-MetaDB instance.
USER_CUSTOM_META: the cluster uses a custom MetaDB instance.
*/
@SerializedName("MetaType")
@Expose
private String MetaType;
/**
* EMR-MetaDB instance
*/
@SerializedName("UnifyMetaInstanceId")
@Expose
private String UnifyMetaInstanceId;
/**
* Custom MetaDB instance information
*/
@SerializedName("MetaDBInfo")
@Expose
private CustomMetaInfo MetaDBInfo;
/**
* Product ID. Different product IDs represent different EMR product versions. Valid values:
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 Time unit of instance purchase duration. Valid values:
s: seconds. When `PayMode` is 0, `TimeUnit` can only be `s`.
* @return TimeUnit Time unit of instance purchase duration. Valid values:
s: seconds. When `PayMode` is 0, `TimeUnit` can only be `s`.
*/
public String getTimeUnit() {
return this.TimeUnit;
}
/**
* Set Time unit of instance purchase duration. Valid values:
s: seconds. When `PayMode` is 0, `TimeUnit` can only be `s`.
* @param TimeUnit Time unit of instance purchase duration. Valid values:
s: seconds. When `PayMode` is 0, `TimeUnit` can only be `s`.
*/
public void setTimeUnit(String TimeUnit) {
this.TimeUnit = TimeUnit;
}
/**
* Get Purchase duration of instance, which needs to be used together with `TimeUnit`.
When `TimeUnit` is `s`, this parameter can only be filled with 3600, indicating a pay-as-you-go instance.
When `TimeUnit` is `m`, the number entered in this parameter indicates the purchase duration of the monthly-subscription instance; for example, 1 means one month
* @return TimeSpan Purchase duration of instance, which needs to be used together with `TimeUnit`.
When `TimeUnit` is `s`, this parameter can only be filled with 3600, indicating a pay-as-you-go instance.
When `TimeUnit` is `m`, the number entered in this parameter indicates the purchase duration of the monthly-subscription instance; for example, 1 means one month
*/
public Long getTimeSpan() {
return this.TimeSpan;
}
/**
* Set Purchase duration of instance, which needs to be used together with `TimeUnit`.
When `TimeUnit` is `s`, this parameter can only be filled with 3600, indicating a pay-as-you-go instance.
When `TimeUnit` is `m`, the number entered in this parameter indicates the purchase duration of the monthly-subscription instance; for example, 1 means one month
* @param TimeSpan Purchase duration of instance, which needs to be used together with `TimeUnit`.
When `TimeUnit` is `s`, this parameter can only be filled with 3600, indicating a pay-as-you-go instance.
When `TimeUnit` is `m`, the number entered in this parameter indicates the purchase duration of the monthly-subscription instance; for example, 1 means one month
*/
public void setTimeSpan(Long TimeSpan) {
this.TimeSpan = TimeSpan;
}
/**
* Get Node specification queried for price.
* @return ResourceSpec Node specification queried for price.
*/
public NewResourceSpec getResourceSpec() {
return this.ResourceSpec;
}
/**
* Set Node specification queried for price.
* @param ResourceSpec Node specification queried for price.
*/
public void setResourceSpec(NewResourceSpec ResourceSpec) {
this.ResourceSpec = ResourceSpec;
}
/**
* Get Currency.
* @return Currency Currency.
*/
public String getCurrency() {
return this.Currency;
}
/**
* Set Currency.
* @param Currency Currency.
*/
public void setCurrency(String Currency) {
this.Currency = Currency;
}
/**
* Get Instance billing mode. Valid values:
0: pay-as-you-go.
* @return PayMode Instance billing mode. Valid values:
0: pay-as-you-go.
*/
public Long getPayMode() {
return this.PayMode;
}
/**
* Set Instance billing mode. Valid values:
0: pay-as-you-go.
* @param PayMode Instance billing mode. Valid values:
0: pay-as-you-go.
*/
public void setPayMode(Long PayMode) {
this.PayMode = PayMode;
}
/**
* Get Whether to enable high availability of node. Valid values:
0: does not enable high availability of node.
1: enables high availability of node.
* @return SupportHA Whether to enable high availability of node. Valid values:
0: does not enable high availability of node.
1: enables high availability of node.
*/
public Long getSupportHA() {
return this.SupportHA;
}
/**
* Set Whether to enable high availability of node. Valid values:
0: does not enable high availability of node.
1: enables high availability of node.
* @param SupportHA Whether to enable high availability of node. Valid values:
0: does not enable high availability of node.
1: enables high availability of node.
*/
public void setSupportHA(Long SupportHA) {
this.SupportHA = SupportHA;
}
/**
* Get List of deployed components. Different required components need to be selected for different EMR product IDs (i.e., `ProductId`; for specific meanings, please see the `ProductId` field in the input parameter):
When `ProductId` is 1, the required components include hadoop-2.7.3, knox-1.2.0, and zookeeper-3.4.9
When `ProductId` is 2, the required components include hadoop-2.7.3, knox-1.2.0, and zookeeper-3.4.9
When `ProductId` is 4, the required components include hadoop-2.8.4, knox-1.2.0, and zookeeper-3.4.9
When `ProductId` is 7, the required components include hadoop-3.1.2, knox-1.2.0, and zookeeper-3.4.9
* @return Software List of deployed components. Different required components need to be selected for different EMR product IDs (i.e., `ProductId`; for specific meanings, please see the `ProductId` field in the input parameter):
When `ProductId` is 1, the required components include hadoop-2.7.3, knox-1.2.0, and zookeeper-3.4.9
When `ProductId` is 2, the required components include hadoop-2.7.3, knox-1.2.0, and zookeeper-3.4.9
When `ProductId` is 4, the required components include hadoop-2.8.4, knox-1.2.0, and zookeeper-3.4.9
When `ProductId` is 7, the required components include hadoop-3.1.2, knox-1.2.0, and zookeeper-3.4.9
*/
public String [] getSoftware() {
return this.Software;
}
/**
* Set List of deployed components. Different required components need to be selected for different EMR product IDs (i.e., `ProductId`; for specific meanings, please see the `ProductId` field in the input parameter):
When `ProductId` is 1, the required components include hadoop-2.7.3, knox-1.2.0, and zookeeper-3.4.9
When `ProductId` is 2, the required components include hadoop-2.7.3, knox-1.2.0, and zookeeper-3.4.9
When `ProductId` is 4, the required components include hadoop-2.8.4, knox-1.2.0, and zookeeper-3.4.9
When `ProductId` is 7, the required components include hadoop-3.1.2, knox-1.2.0, and zookeeper-3.4.9
* @param Software List of deployed components. Different required components need to be selected for different EMR product IDs (i.e., `ProductId`; for specific meanings, please see the `ProductId` field in the input parameter):
When `ProductId` is 1, the required components include hadoop-2.7.3, knox-1.2.0, and zookeeper-3.4.9
When `ProductId` is 2, the required components include hadoop-2.7.3, knox-1.2.0, and zookeeper-3.4.9
When `ProductId` is 4, the required components include hadoop-2.8.4, knox-1.2.0, and zookeeper-3.4.9
When `ProductId` is 7, the required components include hadoop-3.1.2, knox-1.2.0, and zookeeper-3.4.9
*/
public void setSoftware(String [] Software) {
this.Software = Software;
}
/**
* Get Instance location. This parameter is used to specify the AZ, project, and other attributes of the instance.
* @return Placement Instance location. This parameter is used to specify the AZ, project, and other attributes of the instance.
*/
public Placement getPlacement() {
return this.Placement;
}
/**
* Set Instance location. This parameter is used to specify the AZ, project, and other attributes of the instance.
* @param Placement Instance location. This parameter is used to specify the AZ, project, and other attributes of the instance.
*/
public void setPlacement(Placement Placement) {
this.Placement = Placement;
}
/**
* Get Configuration information of VPC. This parameter is used to specify the VPC ID, subnet ID, etc.
* @return VPCSettings Configuration information of VPC. This parameter is used to specify the VPC ID, subnet ID, etc.
*/
public VPCSettings getVPCSettings() {
return this.VPCSettings;
}
/**
* Set Configuration information of VPC. This parameter is used to specify the VPC ID, subnet ID, etc.
* @param VPCSettings Configuration information of VPC. This parameter is used to specify the VPC ID, subnet ID, etc.
*/
public void setVPCSettings(VPCSettings VPCSettings) {
this.VPCSettings = VPCSettings;
}
/**
* Get Hive-shared metadatabase type. Valid values:
EMR_DEFAULT_META: the cluster creates one by default.
EMR_EXIST_META: the cluster uses the specified EMR-MetaDB instance.
USER_CUSTOM_META: the cluster uses a custom MetaDB instance.
* @return MetaType Hive-shared metadatabase type. Valid values:
EMR_DEFAULT_META: the cluster creates one by default.
EMR_EXIST_META: the cluster uses the specified EMR-MetaDB instance.
USER_CUSTOM_META: the cluster uses a custom MetaDB instance.
*/
public String getMetaType() {
return this.MetaType;
}
/**
* Set Hive-shared metadatabase type. Valid values:
EMR_DEFAULT_META: the cluster creates one by default.
EMR_EXIST_META: the cluster uses the specified EMR-MetaDB instance.
USER_CUSTOM_META: the cluster uses a custom MetaDB instance.
* @param MetaType Hive-shared metadatabase type. Valid values:
EMR_DEFAULT_META: the cluster creates one by default.
EMR_EXIST_META: the cluster uses the specified EMR-MetaDB instance.
USER_CUSTOM_META: the cluster uses a custom MetaDB instance.
*/
public void setMetaType(String MetaType) {
this.MetaType = MetaType;
}
/**
* Get EMR-MetaDB instance
* @return UnifyMetaInstanceId EMR-MetaDB instance
*/
public String getUnifyMetaInstanceId() {
return this.UnifyMetaInstanceId;
}
/**
* Set EMR-MetaDB instance
* @param UnifyMetaInstanceId EMR-MetaDB instance
*/
public void setUnifyMetaInstanceId(String UnifyMetaInstanceId) {
this.UnifyMetaInstanceId = UnifyMetaInstanceId;
}
/**
* Get Custom MetaDB instance information
* @return MetaDBInfo Custom MetaDB instance information
*/
public CustomMetaInfo getMetaDBInfo() {
return this.MetaDBInfo;
}
/**
* Set Custom MetaDB instance information
* @param MetaDBInfo Custom MetaDB instance information
*/
public void setMetaDBInfo(CustomMetaInfo MetaDBInfo) {
this.MetaDBInfo = MetaDBInfo;
}
/**
* Get Product ID. Different product IDs represent different EMR product versions. Valid values:
1: EMR v1.3.1.
2: EMR v2.0.1.
4: EMR v2.1.0.
7: EMR v3.0.0.
* @return ProductId Product ID. Different product IDs represent different EMR product versions. Valid values:
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 Product ID. Different product IDs represent different EMR product versions. Valid values:
1: EMR v1.3.1.
2: EMR v2.0.1.
4: EMR v2.1.0.
7: EMR v3.0.0.
* @param ProductId Product ID. Different product IDs represent different EMR product versions. Valid values:
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;
}
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.ResourceSpec != null) {
this.ResourceSpec = new NewResourceSpec(source.ResourceSpec);
}
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.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);
}
}
/**
* 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