
com.tencentcloudapi.teo.v20220106.models.LoadBalancing 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 LoadBalancing extends AbstractModel{
/**
* 负载均衡ID
*/
@SerializedName("LoadBalancingId")
@Expose
private String LoadBalancingId;
/**
* 站点ID
*/
@SerializedName("ZoneId")
@Expose
private String ZoneId;
/**
* 子域名,填写@表示根域
*/
@SerializedName("Host")
@Expose
private String Host;
/**
* 代理模式:
dns_only: 仅DNS
proxied: 开启代理
*/
@SerializedName("Type")
@Expose
private String Type;
/**
* 当Type=dns_only表示DNS的TTL时间
*/
@SerializedName("TTL")
@Expose
private Long TTL;
/**
* 使用的源站组ID
*/
@SerializedName("OriginId")
@Expose
private String [] OriginId;
/**
* 使用的源站信息
*/
@SerializedName("Origin")
@Expose
private OriginGroup [] Origin;
/**
* 更新时间
*/
@SerializedName("UpdateTime")
@Expose
private String UpdateTime;
/**
* 状态
*/
@SerializedName("Status")
@Expose
private String Status;
/**
* 调度域名
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Cname")
@Expose
private String Cname;
/**
* Get 负载均衡ID
* @return LoadBalancingId 负载均衡ID
*/
public String getLoadBalancingId() {
return this.LoadBalancingId;
}
/**
* Set 负载均衡ID
* @param LoadBalancingId 负载均衡ID
*/
public void setLoadBalancingId(String LoadBalancingId) {
this.LoadBalancingId = LoadBalancingId;
}
/**
* Get 站点ID
* @return ZoneId 站点ID
*/
public String getZoneId() {
return this.ZoneId;
}
/**
* Set 站点ID
* @param ZoneId 站点ID
*/
public void setZoneId(String ZoneId) {
this.ZoneId = ZoneId;
}
/**
* Get 子域名,填写@表示根域
* @return Host 子域名,填写@表示根域
*/
public String getHost() {
return this.Host;
}
/**
* Set 子域名,填写@表示根域
* @param Host 子域名,填写@表示根域
*/
public void setHost(String Host) {
this.Host = Host;
}
/**
* Get 代理模式:
dns_only: 仅DNS
proxied: 开启代理
* @return Type 代理模式:
dns_only: 仅DNS
proxied: 开启代理
*/
public String getType() {
return this.Type;
}
/**
* Set 代理模式:
dns_only: 仅DNS
proxied: 开启代理
* @param Type 代理模式:
dns_only: 仅DNS
proxied: 开启代理
*/
public void setType(String Type) {
this.Type = Type;
}
/**
* Get 当Type=dns_only表示DNS的TTL时间
* @return TTL 当Type=dns_only表示DNS的TTL时间
*/
public Long getTTL() {
return this.TTL;
}
/**
* Set 当Type=dns_only表示DNS的TTL时间
* @param TTL 当Type=dns_only表示DNS的TTL时间
*/
public void setTTL(Long TTL) {
this.TTL = TTL;
}
/**
* Get 使用的源站组ID
* @return OriginId 使用的源站组ID
*/
public String [] getOriginId() {
return this.OriginId;
}
/**
* Set 使用的源站组ID
* @param OriginId 使用的源站组ID
*/
public void setOriginId(String [] OriginId) {
this.OriginId = OriginId;
}
/**
* Get 使用的源站信息
* @return Origin 使用的源站信息
*/
public OriginGroup [] getOrigin() {
return this.Origin;
}
/**
* Set 使用的源站信息
* @param Origin 使用的源站信息
*/
public void setOrigin(OriginGroup [] Origin) {
this.Origin = Origin;
}
/**
* Get 更新时间
* @return UpdateTime 更新时间
*/
public String getUpdateTime() {
return this.UpdateTime;
}
/**
* Set 更新时间
* @param UpdateTime 更新时间
*/
public void setUpdateTime(String UpdateTime) {
this.UpdateTime = UpdateTime;
}
/**
* Get 状态
* @return Status 状态
*/
public String getStatus() {
return this.Status;
}
/**
* Set 状态
* @param Status 状态
*/
public void setStatus(String Status) {
this.Status = Status;
}
/**
* Get 调度域名
注意:此字段可能返回 null,表示取不到有效值。
* @return Cname 调度域名
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getCname() {
return this.Cname;
}
/**
* Set 调度域名
注意:此字段可能返回 null,表示取不到有效值。
* @param Cname 调度域名
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setCname(String Cname) {
this.Cname = Cname;
}
public LoadBalancing() {
}
/**
* 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 LoadBalancing(LoadBalancing source) {
if (source.LoadBalancingId != null) {
this.LoadBalancingId = new String(source.LoadBalancingId);
}
if (source.ZoneId != null) {
this.ZoneId = new String(source.ZoneId);
}
if (source.Host != null) {
this.Host = new String(source.Host);
}
if (source.Type != null) {
this.Type = new String(source.Type);
}
if (source.TTL != null) {
this.TTL = new Long(source.TTL);
}
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.Origin != null) {
this.Origin = new OriginGroup[source.Origin.length];
for (int i = 0; i < source.Origin.length; i++) {
this.Origin[i] = new OriginGroup(source.Origin[i]);
}
}
if (source.UpdateTime != null) {
this.UpdateTime = new String(source.UpdateTime);
}
if (source.Status != null) {
this.Status = new String(source.Status);
}
if (source.Cname != null) {
this.Cname = new String(source.Cname);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "LoadBalancingId", this.LoadBalancingId);
this.setParamSimple(map, prefix + "ZoneId", this.ZoneId);
this.setParamSimple(map, prefix + "Host", this.Host);
this.setParamSimple(map, prefix + "Type", this.Type);
this.setParamSimple(map, prefix + "TTL", this.TTL);
this.setParamArraySimple(map, prefix + "OriginId.", this.OriginId);
this.setParamArrayObj(map, prefix + "Origin.", this.Origin);
this.setParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.setParamSimple(map, prefix + "Status", this.Status);
this.setParamSimple(map, prefix + "Cname", this.Cname);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy