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

com.tencentcloudapi.emr.v20190103.models.UpdateInstanceSettings Maven / Gradle / Ivy

There is a newer version: 3.0.1076
Show newest version
/*
 * 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.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class UpdateInstanceSettings extends AbstractModel {

    /**
    * Memory capacity in GB
    */
    @SerializedName("Memory")
    @Expose
    private Long Memory;

    /**
    * Number of CPU cores
    */
    @SerializedName("CPUCores")
    @Expose
    private Long CPUCores;

    /**
    * Machine resource ID (EMR resource identifier)
    */
    @SerializedName("ResourceId")
    @Expose
    private String ResourceId;

    /**
    * Target machine specification
    */
    @SerializedName("InstanceType")
    @Expose
    private String InstanceType;

    /**
     * Get Memory capacity in GB 
     * @return Memory Memory capacity in GB
     */
    public Long getMemory() {
        return this.Memory;
    }

    /**
     * Set Memory capacity in GB
     * @param Memory Memory capacity in GB
     */
    public void setMemory(Long Memory) {
        this.Memory = Memory;
    }

    /**
     * Get Number of CPU cores 
     * @return CPUCores Number of CPU cores
     */
    public Long getCPUCores() {
        return this.CPUCores;
    }

    /**
     * Set Number of CPU cores
     * @param CPUCores Number of CPU cores
     */
    public void setCPUCores(Long CPUCores) {
        this.CPUCores = CPUCores;
    }

    /**
     * Get Machine resource ID (EMR resource identifier) 
     * @return ResourceId Machine resource ID (EMR resource identifier)
     */
    public String getResourceId() {
        return this.ResourceId;
    }

    /**
     * Set Machine resource ID (EMR resource identifier)
     * @param ResourceId Machine resource ID (EMR resource identifier)
     */
    public void setResourceId(String ResourceId) {
        this.ResourceId = ResourceId;
    }

    /**
     * Get Target machine specification 
     * @return InstanceType Target machine specification
     */
    public String getInstanceType() {
        return this.InstanceType;
    }

    /**
     * Set Target machine specification
     * @param InstanceType Target machine specification
     */
    public void setInstanceType(String InstanceType) {
        this.InstanceType = InstanceType;
    }

    public UpdateInstanceSettings() {
    }

    /**
     * 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 UpdateInstanceSettings(UpdateInstanceSettings source) {
        if (source.Memory != null) {
            this.Memory = new Long(source.Memory);
        }
        if (source.CPUCores != null) {
            this.CPUCores = new Long(source.CPUCores);
        }
        if (source.ResourceId != null) {
            this.ResourceId = new String(source.ResourceId);
        }
        if (source.InstanceType != null) {
            this.InstanceType = new String(source.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