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

com.tencentcloudapi.emr.v20190103.models.StartStopServiceOrMonitorRequest 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.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class StartStopServiceOrMonitorRequest extends AbstractModel {

    /**
    * The cluster ID.
    */
    @SerializedName("InstanceId")
    @Expose
    private String InstanceId;

    /**
    * The operation type. Valid values:
  • StartService: Start service
  • StopService: Stop service
  • StartMonitor: Start maintenance
  • StopMonitor: Stop maintenance
  • RestartService: Restart service. If this type is selected, "StrategyConfig" is required.
  • */ @SerializedName("OpType") @Expose private String OpType; /** * The operation scope. */ @SerializedName("OpScope") @Expose private OpScope OpScope; /** * The operation policy. */ @SerializedName("StrategyConfig") @Expose private StrategyConfig StrategyConfig; /** * Get The cluster ID. * @return InstanceId The cluster ID. */ public String getInstanceId() { return this.InstanceId; } /** * Set The cluster ID. * @param InstanceId The cluster ID. */ public void setInstanceId(String InstanceId) { this.InstanceId = InstanceId; } /** * Get The operation type. Valid values:
  • StartService: Start service
  • StopService: Stop service
  • StartMonitor: Start maintenance
  • StopMonitor: Stop maintenance
  • RestartService: Restart service. If this type is selected, "StrategyConfig" is required.
  • * @return OpType The operation type. Valid values:
  • StartService: Start service
  • StopService: Stop service
  • StartMonitor: Start maintenance
  • StopMonitor: Stop maintenance
  • RestartService: Restart service. If this type is selected, "StrategyConfig" is required.
  • */ public String getOpType() { return this.OpType; } /** * Set The operation type. Valid values:
  • StartService: Start service
  • StopService: Stop service
  • StartMonitor: Start maintenance
  • StopMonitor: Stop maintenance
  • RestartService: Restart service. If this type is selected, "StrategyConfig" is required.
  • * @param OpType The operation type. Valid values:
  • StartService: Start service
  • StopService: Stop service
  • StartMonitor: Start maintenance
  • StopMonitor: Stop maintenance
  • RestartService: Restart service. If this type is selected, "StrategyConfig" is required.
  • */ public void setOpType(String OpType) { this.OpType = OpType; } /** * Get The operation scope. * @return OpScope The operation scope. */ public OpScope getOpScope() { return this.OpScope; } /** * Set The operation scope. * @param OpScope The operation scope. */ public void setOpScope(OpScope OpScope) { this.OpScope = OpScope; } /** * Get The operation policy. * @return StrategyConfig The operation policy. */ public StrategyConfig getStrategyConfig() { return this.StrategyConfig; } /** * Set The operation policy. * @param StrategyConfig The operation policy. */ public void setStrategyConfig(StrategyConfig StrategyConfig) { this.StrategyConfig = StrategyConfig; } public StartStopServiceOrMonitorRequest() { } /** * 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 StartStopServiceOrMonitorRequest(StartStopServiceOrMonitorRequest source) { if (source.InstanceId != null) { this.InstanceId = new String(source.InstanceId); } if (source.OpType != null) { this.OpType = new String(source.OpType); } if (source.OpScope != null) { this.OpScope = new OpScope(source.OpScope); } if (source.StrategyConfig != null) { this.StrategyConfig = new StrategyConfig(source.StrategyConfig); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "InstanceId", this.InstanceId); this.setParamSimple(map, prefix + "OpType", this.OpType); this.setParamObj(map, prefix + "OpScope.", this.OpScope); this.setParamObj(map, prefix + "StrategyConfig.", this.StrategyConfig); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy