
com.tencentcloudapi.cfw.v20190904.models.ModifyEdgeIpSwitchRequest 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.cfw.v20190904.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 ModifyEdgeIpSwitchRequest extends AbstractModel {
/**
* 0 关闭开关
1 打开开关
2 不操作开关,此次切换模式
*/
@SerializedName("Enable")
@Expose
private Long Enable;
/**
* 操作开关详情
*/
@SerializedName("EdgeIpSwitchLst")
@Expose
private EdgeIpSwitch [] EdgeIpSwitchLst;
/**
* 0 不自动选择子网
1 自动选择子网创建私有连接
*/
@SerializedName("AutoChooseSubnet")
@Expose
private Long AutoChooseSubnet;
/**
* 0 切换为旁路
1 切换为串行
2 不切换模式,此次操作开关
*/
@SerializedName("SwitchMode")
@Expose
private Long SwitchMode;
/**
* Get 0 关闭开关
1 打开开关
2 不操作开关,此次切换模式
* @return Enable 0 关闭开关
1 打开开关
2 不操作开关,此次切换模式
*/
public Long getEnable() {
return this.Enable;
}
/**
* Set 0 关闭开关
1 打开开关
2 不操作开关,此次切换模式
* @param Enable 0 关闭开关
1 打开开关
2 不操作开关,此次切换模式
*/
public void setEnable(Long Enable) {
this.Enable = Enable;
}
/**
* Get 操作开关详情
* @return EdgeIpSwitchLst 操作开关详情
*/
public EdgeIpSwitch [] getEdgeIpSwitchLst() {
return this.EdgeIpSwitchLst;
}
/**
* Set 操作开关详情
* @param EdgeIpSwitchLst 操作开关详情
*/
public void setEdgeIpSwitchLst(EdgeIpSwitch [] EdgeIpSwitchLst) {
this.EdgeIpSwitchLst = EdgeIpSwitchLst;
}
/**
* Get 0 不自动选择子网
1 自动选择子网创建私有连接
* @return AutoChooseSubnet 0 不自动选择子网
1 自动选择子网创建私有连接
*/
public Long getAutoChooseSubnet() {
return this.AutoChooseSubnet;
}
/**
* Set 0 不自动选择子网
1 自动选择子网创建私有连接
* @param AutoChooseSubnet 0 不自动选择子网
1 自动选择子网创建私有连接
*/
public void setAutoChooseSubnet(Long AutoChooseSubnet) {
this.AutoChooseSubnet = AutoChooseSubnet;
}
/**
* Get 0 切换为旁路
1 切换为串行
2 不切换模式,此次操作开关
* @return SwitchMode 0 切换为旁路
1 切换为串行
2 不切换模式,此次操作开关
*/
public Long getSwitchMode() {
return this.SwitchMode;
}
/**
* Set 0 切换为旁路
1 切换为串行
2 不切换模式,此次操作开关
* @param SwitchMode 0 切换为旁路
1 切换为串行
2 不切换模式,此次操作开关
*/
public void setSwitchMode(Long SwitchMode) {
this.SwitchMode = SwitchMode;
}
public ModifyEdgeIpSwitchRequest() {
}
/**
* 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 ModifyEdgeIpSwitchRequest(ModifyEdgeIpSwitchRequest source) {
if (source.Enable != null) {
this.Enable = new Long(source.Enable);
}
if (source.EdgeIpSwitchLst != null) {
this.EdgeIpSwitchLst = new EdgeIpSwitch[source.EdgeIpSwitchLst.length];
for (int i = 0; i < source.EdgeIpSwitchLst.length; i++) {
this.EdgeIpSwitchLst[i] = new EdgeIpSwitch(source.EdgeIpSwitchLst[i]);
}
}
if (source.AutoChooseSubnet != null) {
this.AutoChooseSubnet = new Long(source.AutoChooseSubnet);
}
if (source.SwitchMode != null) {
this.SwitchMode = new Long(source.SwitchMode);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Enable", this.Enable);
this.setParamArrayObj(map, prefix + "EdgeIpSwitchLst.", this.EdgeIpSwitchLst);
this.setParamSimple(map, prefix + "AutoChooseSubnet", this.AutoChooseSubnet);
this.setParamSimple(map, prefix + "SwitchMode", this.SwitchMode);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy