com.tencentcloudapi.emr.v20190103.models.StartStopServiceOrMonitorRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-emr Show documentation
Show all versions of tencentcloud-sdk-java-emr Show documentation
Tencent Cloud Open 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 StartStopServiceOrMonitorRequest extends AbstractModel{
/**
* 集群ID
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* 操作类型,当前支持
StartService:启动服务
StopService:停止服务
StartMonitor:退出维护
StopMonitor:进入维护
RestartService:重启服务 如果操作类型选择重启服务 StrategyConfig操作策略则是必填项
*/
@SerializedName("OpType")
@Expose
private String OpType;
/**
* 操作范围
*/
@SerializedName("OpScope")
@Expose
private OpScope OpScope;
/**
* 操作策略
*/
@SerializedName("StrategyConfig")
@Expose
private StrategyConfig StrategyConfig;
/**
* Get 集群ID
* @return InstanceId 集群ID
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set 集群ID
* @param InstanceId 集群ID
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get 操作类型,当前支持
StartService:启动服务
StopService:停止服务
StartMonitor:退出维护
StopMonitor:进入维护
RestartService:重启服务 如果操作类型选择重启服务 StrategyConfig操作策略则是必填项
* @return OpType 操作类型,当前支持
StartService:启动服务
StopService:停止服务
StartMonitor:退出维护
StopMonitor:进入维护
RestartService:重启服务 如果操作类型选择重启服务 StrategyConfig操作策略则是必填项
*/
public String getOpType() {
return this.OpType;
}
/**
* Set 操作类型,当前支持
StartService:启动服务
StopService:停止服务
StartMonitor:退出维护
StopMonitor:进入维护
RestartService:重启服务 如果操作类型选择重启服务 StrategyConfig操作策略则是必填项
* @param OpType 操作类型,当前支持
StartService:启动服务
StopService:停止服务
StartMonitor:退出维护
StopMonitor:进入维护
RestartService:重启服务 如果操作类型选择重启服务 StrategyConfig操作策略则是必填项
*/
public void setOpType(String OpType) {
this.OpType = OpType;
}
/**
* Get 操作范围
* @return OpScope 操作范围
*/
public OpScope getOpScope() {
return this.OpScope;
}
/**
* Set 操作范围
* @param OpScope 操作范围
*/
public void setOpScope(OpScope OpScope) {
this.OpScope = OpScope;
}
/**
* Get 操作策略
* @return StrategyConfig 操作策略
*/
public StrategyConfig getStrategyConfig() {
return this.StrategyConfig;
}
/**
* Set 操作策略
* @param StrategyConfig 操作策略
*/
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);
}
}