
com.tencentcloudapi.tse.v20201207.models.NacosReplica 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.tse.v20201207.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class NacosReplica extends AbstractModel{
/**
* 名称
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* 角色
*/
@SerializedName("Role")
@Expose
private String Role;
/**
* 状态
*/
@SerializedName("Status")
@Expose
private String Status;
/**
* 子网ID
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("SubnetId")
@Expose
private String SubnetId;
/**
* 可用区ID
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Zone")
@Expose
private String Zone;
/**
* 可用区ID
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("ZoneId")
@Expose
private String ZoneId;
/**
* Get 名称
* @return Name 名称
*/
public String getName() {
return this.Name;
}
/**
* Set 名称
* @param Name 名称
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get 角色
* @return Role 角色
*/
public String getRole() {
return this.Role;
}
/**
* Set 角色
* @param Role 角色
*/
public void setRole(String Role) {
this.Role = Role;
}
/**
* Get 状态
* @return Status 状态
*/
public String getStatus() {
return this.Status;
}
/**
* Set 状态
* @param Status 状态
*/
public void setStatus(String Status) {
this.Status = Status;
}
/**
* Get 子网ID
注意:此字段可能返回 null,表示取不到有效值。
* @return SubnetId 子网ID
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getSubnetId() {
return this.SubnetId;
}
/**
* Set 子网ID
注意:此字段可能返回 null,表示取不到有效值。
* @param SubnetId 子网ID
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setSubnetId(String SubnetId) {
this.SubnetId = SubnetId;
}
/**
* Get 可用区ID
注意:此字段可能返回 null,表示取不到有效值。
* @return Zone 可用区ID
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getZone() {
return this.Zone;
}
/**
* Set 可用区ID
注意:此字段可能返回 null,表示取不到有效值。
* @param Zone 可用区ID
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setZone(String Zone) {
this.Zone = Zone;
}
/**
* Get 可用区ID
注意:此字段可能返回 null,表示取不到有效值。
* @return ZoneId 可用区ID
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getZoneId() {
return this.ZoneId;
}
/**
* Set 可用区ID
注意:此字段可能返回 null,表示取不到有效值。
* @param ZoneId 可用区ID
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setZoneId(String ZoneId) {
this.ZoneId = ZoneId;
}
public NacosReplica() {
}
/**
* 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 NacosReplica(NacosReplica source) {
if (source.Name != null) {
this.Name = new String(source.Name);
}
if (source.Role != null) {
this.Role = new String(source.Role);
}
if (source.Status != null) {
this.Status = new String(source.Status);
}
if (source.SubnetId != null) {
this.SubnetId = new String(source.SubnetId);
}
if (source.Zone != null) {
this.Zone = new String(source.Zone);
}
if (source.ZoneId != null) {
this.ZoneId = new String(source.ZoneId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Name", this.Name);
this.setParamSimple(map, prefix + "Role", this.Role);
this.setParamSimple(map, prefix + "Status", this.Status);
this.setParamSimple(map, prefix + "SubnetId", this.SubnetId);
this.setParamSimple(map, prefix + "Zone", this.Zone);
this.setParamSimple(map, prefix + "ZoneId", this.ZoneId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy