com.aliyun.rds20140815.models.GetDBInstanceTopologyResponseBody Maven / Gradle / Ivy
Show all versions of rds20140815 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.rds20140815.models;
import com.aliyun.tea.*;
public class GetDBInstanceTopologyResponseBody extends TeaModel {
/**
* An internal parameter. You can ignore this parameter.
*
* example:
* None
*/
@NameInMap("Code")
public String code;
/**
* The details about the topology.
*/
@NameInMap("Data")
public GetDBInstanceTopologyResponseBodyData data;
/**
* An internal parameter. You can ignore this parameter.
*
* example:
* None
*/
@NameInMap("Message")
public String message;
/**
* The ID of the request.
*
* example:
* 7430AB1A-6D49-5B6D-B9E5-920250076074
*/
@NameInMap("RequestId")
public String requestId;
public static GetDBInstanceTopologyResponseBody build(java.util.Map map) throws Exception {
GetDBInstanceTopologyResponseBody self = new GetDBInstanceTopologyResponseBody();
return TeaModel.build(map, self);
}
public GetDBInstanceTopologyResponseBody setCode(String code) {
this.code = code;
return this;
}
public String getCode() {
return this.code;
}
public GetDBInstanceTopologyResponseBody setData(GetDBInstanceTopologyResponseBodyData data) {
this.data = data;
return this;
}
public GetDBInstanceTopologyResponseBodyData getData() {
return this.data;
}
public GetDBInstanceTopologyResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public GetDBInstanceTopologyResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public static class GetDBInstanceTopologyResponseBodyDataConnections extends TeaModel {
/**
* The endpoint that is used to connect to the database instance.
*
* example:
* rm-m5ezban**********.mysql.rds.aliyuncs.com
*/
@NameInMap("ConnectionString")
public String connectionString;
/**
* The instance ID.
*
* example:
* rm-m5ezban**********
*/
@NameInMap("DBInstanceName")
public String DBInstanceName;
/**
* The network type of the endpoint. Valid values:
*
* - vpc
* - public
*
*
* example:
* vpc
*/
@NameInMap("NetType")
public String netType;
/**
* The zone ID of the instance.
*
* example:
* cn-qingdao-c
*/
@NameInMap("ZoneId")
public String zoneId;
public static GetDBInstanceTopologyResponseBodyDataConnections build(java.util.Map map) throws Exception {
GetDBInstanceTopologyResponseBodyDataConnections self = new GetDBInstanceTopologyResponseBodyDataConnections();
return TeaModel.build(map, self);
}
public GetDBInstanceTopologyResponseBodyDataConnections setConnectionString(String connectionString) {
this.connectionString = connectionString;
return this;
}
public String getConnectionString() {
return this.connectionString;
}
public GetDBInstanceTopologyResponseBodyDataConnections setDBInstanceName(String DBInstanceName) {
this.DBInstanceName = DBInstanceName;
return this;
}
public String getDBInstanceName() {
return this.DBInstanceName;
}
public GetDBInstanceTopologyResponseBodyDataConnections setNetType(String netType) {
this.netType = netType;
return this;
}
public String getNetType() {
return this.netType;
}
public GetDBInstanceTopologyResponseBodyDataConnections setZoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public String getZoneId() {
return this.zoneId;
}
}
public static class GetDBInstanceTopologyResponseBodyDataNodes extends TeaModel {
/**
* The ID of the instance.
*
* example:
* rm-m5ezban**********
*/
@NameInMap("DBInstanceName")
public String DBInstanceName;
/**
* The ID of the dedicated cluster.
*
* : If the instance does not reside in the specified dedicated cluster, no value is returned.
*
*
* example:
* dhg-4n*****
*/
@NameInMap("DedicatedHostGroupId")
public String dedicatedHostGroupId;
/**
* The host ID of the instance in the dedicated cluster.
*
* : If the instance does not reside in the specified dedicated cluster, no value is returned.
*
*
* example:
* i-bpxxxxxxx
*/
@NameInMap("DedicatedHostId")
public String dedicatedHostId;
/**
* The ID of the instance.
*
* : The value \\-1\\ is returned for an instance that does not reside in a dedicated cluster.
*
*
* example:
* 349054
*/
@NameInMap("NodeId")
public String nodeId;
/**
* The type of the node. The following result is returned:
*
* - Master: a primary node
* - Slave: a secondary node
*
*
* example:
* master
*/
@NameInMap("Role")
public String role;
/**
* The zone ID of the instance.
*
* example:
* cn-qingdao-c
*/
@NameInMap("ZoneId")
public String zoneId;
public static GetDBInstanceTopologyResponseBodyDataNodes build(java.util.Map map) throws Exception {
GetDBInstanceTopologyResponseBodyDataNodes self = new GetDBInstanceTopologyResponseBodyDataNodes();
return TeaModel.build(map, self);
}
public GetDBInstanceTopologyResponseBodyDataNodes setDBInstanceName(String DBInstanceName) {
this.DBInstanceName = DBInstanceName;
return this;
}
public String getDBInstanceName() {
return this.DBInstanceName;
}
public GetDBInstanceTopologyResponseBodyDataNodes setDedicatedHostGroupId(String dedicatedHostGroupId) {
this.dedicatedHostGroupId = dedicatedHostGroupId;
return this;
}
public String getDedicatedHostGroupId() {
return this.dedicatedHostGroupId;
}
public GetDBInstanceTopologyResponseBodyDataNodes setDedicatedHostId(String dedicatedHostId) {
this.dedicatedHostId = dedicatedHostId;
return this;
}
public String getDedicatedHostId() {
return this.dedicatedHostId;
}
public GetDBInstanceTopologyResponseBodyDataNodes setNodeId(String nodeId) {
this.nodeId = nodeId;
return this;
}
public String getNodeId() {
return this.nodeId;
}
public GetDBInstanceTopologyResponseBodyDataNodes setRole(String role) {
this.role = role;
return this;
}
public String getRole() {
return this.role;
}
public GetDBInstanceTopologyResponseBodyDataNodes setZoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public String getZoneId() {
return this.zoneId;
}
}
public static class GetDBInstanceTopologyResponseBodyData extends TeaModel {
/**
* The network connection information of the instance.
*/
@NameInMap("Connections")
public java.util.List connections;
/**
* The instance ID.
*
* example:
* rm-m5ezban**********
*/
@NameInMap("DBInstanceName")
public String DBInstanceName;
/**
* The queried nodes.
*/
@NameInMap("Nodes")
public java.util.List nodes;
public static GetDBInstanceTopologyResponseBodyData build(java.util.Map map) throws Exception {
GetDBInstanceTopologyResponseBodyData self = new GetDBInstanceTopologyResponseBodyData();
return TeaModel.build(map, self);
}
public GetDBInstanceTopologyResponseBodyData setConnections(java.util.List connections) {
this.connections = connections;
return this;
}
public java.util.List getConnections() {
return this.connections;
}
public GetDBInstanceTopologyResponseBodyData setDBInstanceName(String DBInstanceName) {
this.DBInstanceName = DBInstanceName;
return this;
}
public String getDBInstanceName() {
return this.DBInstanceName;
}
public GetDBInstanceTopologyResponseBodyData setNodes(java.util.List nodes) {
this.nodes = nodes;
return this;
}
public java.util.List getNodes() {
return this.nodes;
}
}
}