
com.tencentcloudapi.teo.v20220106.models.ModifyLoadBalancingRequest 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.teo.v20220106.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ModifyLoadBalancingRequest extends AbstractModel{
/**
* Site ID
*/
@SerializedName("ZoneId")
@Expose
private String ZoneId;
/**
* CLB instance ID
*/
@SerializedName("LoadBalancingId")
@Expose
private String LoadBalancingId;
/**
* Proxy mode.
`dns_only`: Only DNS
`proxied`: Enable proxy
*/
@SerializedName("Type")
@Expose
private String Type;
/**
* ID of the origin group used
*/
@SerializedName("OriginId")
@Expose
private String [] OriginId;
/**
* Indicates DNS TTL time when `Type=dns_only`
*/
@SerializedName("TTL")
@Expose
private Long TTL;
/**
* Get Site ID
* @return ZoneId Site ID
*/
public String getZoneId() {
return this.ZoneId;
}
/**
* Set Site ID
* @param ZoneId Site ID
*/
public void setZoneId(String ZoneId) {
this.ZoneId = ZoneId;
}
/**
* Get CLB instance ID
* @return LoadBalancingId CLB instance ID
*/
public String getLoadBalancingId() {
return this.LoadBalancingId;
}
/**
* Set CLB instance ID
* @param LoadBalancingId CLB instance ID
*/
public void setLoadBalancingId(String LoadBalancingId) {
this.LoadBalancingId = LoadBalancingId;
}
/**
* Get Proxy mode.
`dns_only`: Only DNS
`proxied`: Enable proxy
* @return Type Proxy mode.
`dns_only`: Only DNS
`proxied`: Enable proxy
*/
public String getType() {
return this.Type;
}
/**
* Set Proxy mode.
`dns_only`: Only DNS
`proxied`: Enable proxy
* @param Type Proxy mode.
`dns_only`: Only DNS
`proxied`: Enable proxy
*/
public void setType(String Type) {
this.Type = Type;
}
/**
* Get ID of the origin group used
* @return OriginId ID of the origin group used
*/
public String [] getOriginId() {
return this.OriginId;
}
/**
* Set ID of the origin group used
* @param OriginId ID of the origin group used
*/
public void setOriginId(String [] OriginId) {
this.OriginId = OriginId;
}
/**
* Get Indicates DNS TTL time when `Type=dns_only`
* @return TTL Indicates DNS TTL time when `Type=dns_only`
*/
public Long getTTL() {
return this.TTL;
}
/**
* Set Indicates DNS TTL time when `Type=dns_only`
* @param TTL Indicates DNS TTL time when `Type=dns_only`
*/
public void setTTL(Long TTL) {
this.TTL = TTL;
}
public ModifyLoadBalancingRequest() {
}
/**
* 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 ModifyLoadBalancingRequest(ModifyLoadBalancingRequest source) {
if (source.ZoneId != null) {
this.ZoneId = new String(source.ZoneId);
}
if (source.LoadBalancingId != null) {
this.LoadBalancingId = new String(source.LoadBalancingId);
}
if (source.Type != null) {
this.Type = new String(source.Type);
}
if (source.OriginId != null) {
this.OriginId = new String[source.OriginId.length];
for (int i = 0; i < source.OriginId.length; i++) {
this.OriginId[i] = new String(source.OriginId[i]);
}
}
if (source.TTL != null) {
this.TTL = new Long(source.TTL);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "ZoneId", this.ZoneId);
this.setParamSimple(map, prefix + "LoadBalancingId", this.LoadBalancingId);
this.setParamSimple(map, prefix + "Type", this.Type);
this.setParamArraySimple(map, prefix + "OriginId.", this.OriginId);
this.setParamSimple(map, prefix + "TTL", this.TTL);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy