All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.emr.v20190103.models.UpdateInstanceSettings 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 UpdateInstanceSettings extends AbstractModel{

    /**
    * 内存容量,单位为G
    */
    @SerializedName("Memory")
    @Expose
    private Long Memory;

    /**
    * CPU核数
    */
    @SerializedName("CPUCores")
    @Expose
    private Long CPUCores;

    /**
    * 机器资源ID(EMR测资源标识)
    */
    @SerializedName("ResourceId")
    @Expose
    private String ResourceId;

    /**
    * 变配机器规格
    */
    @SerializedName("InstanceType")
    @Expose
    private String InstanceType;

    /**
     * Get 内存容量,单位为G 
     * @return Memory 内存容量,单位为G
     */
    public Long getMemory() {
        return this.Memory;
    }

    /**
     * Set 内存容量,单位为G
     * @param Memory 内存容量,单位为G
     */
    public void setMemory(Long Memory) {
        this.Memory = Memory;
    }

    /**
     * Get CPU核数 
     * @return CPUCores CPU核数
     */
    public Long getCPUCores() {
        return this.CPUCores;
    }

    /**
     * Set CPU核数
     * @param CPUCores CPU核数
     */
    public void setCPUCores(Long CPUCores) {
        this.CPUCores = CPUCores;
    }

    /**
     * Get 机器资源ID(EMR测资源标识) 
     * @return ResourceId 机器资源ID(EMR测资源标识)
     */
    public String getResourceId() {
        return this.ResourceId;
    }

    /**
     * Set 机器资源ID(EMR测资源标识)
     * @param ResourceId 机器资源ID(EMR测资源标识)
     */
    public void setResourceId(String ResourceId) {
        this.ResourceId = ResourceId;
    }

    /**
     * Get 变配机器规格 
     * @return InstanceType 变配机器规格
     */
    public String getInstanceType() {
        return this.InstanceType;
    }

    /**
     * Set 变配机器规格
     * @param InstanceType 变配机器规格
     */
    public void setInstanceType(String InstanceType) {
        this.InstanceType = InstanceType;
    }

    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "Memory", this.Memory);
        this.setParamSimple(map, prefix + "CPUCores", this.CPUCores);
        this.setParamSimple(map, prefix + "ResourceId", this.ResourceId);
        this.setParamSimple(map, prefix + "InstanceType", this.InstanceType);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy