com.aliyun.rds20140815.models.DescribeDBProxyEndpointResponseBody 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 DescribeDBProxyEndpointResponseBody extends TeaModel {
/**
* The proxy endpoint queried.
*
* example:
* testproxy****.rwlb.rds.aliyuncs.com
*/
@NameInMap("DBProxyConnectString")
public String DBProxyConnectString;
/**
* The network type of the proxy endpoint. Valid values:
*
* - InnerString: internal network
* - OuterString: Internet
*
*
* example:
* InnerString
*/
@NameInMap("DBProxyConnectStringNetType")
public String DBProxyConnectStringNetType;
/**
* The port number that is associated with the proxy endpoint.
*
* example:
* 3306
*/
@NameInMap("DBProxyConnectStringPort")
public String DBProxyConnectStringPort;
/**
* The ID of the proxy endpoint.
*
* example:
* keaxncrjluwu0gue****
*/
@NameInMap("DBProxyEndpointId")
public String DBProxyEndpointId;
/**
* An internal parameter. You can ignore this parameter.
*
* example:
* normal
*/
@NameInMap("DBProxyEngineType")
public String DBProxyEngineType;
/**
* The configuration of the proxy terminal. The value of this parameter is a JSON string that consists of the following fields:
*
* - TransactionReadSqlRouteOptimizeStatus: the status of the transaction splitting feature. Valid values: 0 and 1. The value 0 indicates that the feature is disabled. The value 1 indicates that the feature is enabled.
* - ConnectionPersist: the status of the connection pooling feature. Valid values: 0, 1, and 2. The value 0 indicates that the connection pooling feature is disabled. The value 1 indicates that the session connection pooling feature is enabled. The value 2 indicates that the transaction connection pooling feature is enabled.
* - ReadWriteSpliting: the status of the read/write splitting feature. Valid values: 0 and 1. The value 0 indicates that the feature is disabled. The value 1 indicates that the feature is enabled.
* - PinPreparedStmt: an internal field that is available only for ApsaraDB RDS for PostgreSQL instances.
*
*
* If the instance runs PostgreSQL, you can change only the value of the ReadWriteSpliting field. The TransactionReadSqlRouteOptimizeStatus and PinPreparedStmt fields are set to their default values 1.
*
*
* example:
* TransactionReadSqlRouteOptimizeStatus:1;ConnectionPersist:0;ReadWriteSpliting:1
*/
@NameInMap("DBProxyFeatures")
public String DBProxyFeatures;
/**
* The description of the proxy terminal.
*
* example:
* proxyterminal-test
*/
@NameInMap("DbProxyEndpointAliases")
public String dbProxyEndpointAliases;
/**
* The read and write attributes of the proxy terminal. Valid values:
*
* - ReadWrite: The proxy terminal supports read and write requests.
* - ReadOnly: The proxy terminal supports only read requests.
*
*
* example:
* ReadWrite
*/
@NameInMap("DbProxyEndpointReadWriteMode")
public String dbProxyEndpointReadWriteMode;
/**
* An array that consists of the information about the proxy endpoint.
*/
@NameInMap("EndpointConnectItems")
public DescribeDBProxyEndpointResponseBodyEndpointConnectItems endpointConnectItems;
/**
* The method that is used to assign read weights. For more information, see Modify the latency threshold and read weights of ApsaraDB RDS for MySQL instances. Valid values:
*
* - Standard: The system automatically assigns read weights to the instance and its read-only instances based on the specifications of these instances.
* - Custom: You must manually assign read weights to the instance and its read-only instances.
*
*
* example:
* Standard
*/
@NameInMap("ReadOnlyInstanceDistributionType")
public String readOnlyInstanceDistributionType;
/**
* The latency threshold that is allowed for read/write splitting. If the latency on a read-only instance exceeds the specified threshold, ApsaraDB RDS no longer forwards read requests to the read-only instance.
*
* example:
* 30
*/
@NameInMap("ReadOnlyInstanceMaxDelayTime")
public String readOnlyInstanceMaxDelayTime;
/**
* The read weights of the instance and its read-only instances. The value of this parameter is a JSON string that consists of the following parameters:
*
* - DBInstanceId: the ID of the instance.
* - DBInstanceType: the role of the instance. Valid values: Master and ReadOnly.
* - NodeID: The IDs of the primary and secondary nodes of the cluster. An instance that runs RDS Cluster Edition refers to a cluster.
* - NodeType: The node type. Valid values: Primary and Secondary.
* - Weight: the read weight of the instance. The read weight increases in increments of 100 and cannot exceed 10000.
*
*
* example:
* [{\"Availability\":\"Available\",\"DBInstanceId\":\"rr-bp176984qewd8****\",\"DBInstanceType\":\"ReadOnly\",\"Weight\":400},{\"Availability\":\"Available\",\"DBInstanceId\":\"rm-bp1ja4f56s7us****\",\"DBInstanceType\":\"Master\",\"Weight\":0}]
*/
@NameInMap("ReadOnlyInstanceWeight")
public String readOnlyInstanceWeight;
/**
* The request ID.
*
* example:
* 847BA085-B377-4BFA-8267-F82345ECE1D2
*/
@NameInMap("RequestId")
public String requestId;
public static DescribeDBProxyEndpointResponseBody build(java.util.Map map) throws Exception {
DescribeDBProxyEndpointResponseBody self = new DescribeDBProxyEndpointResponseBody();
return TeaModel.build(map, self);
}
public DescribeDBProxyEndpointResponseBody setDBProxyConnectString(String DBProxyConnectString) {
this.DBProxyConnectString = DBProxyConnectString;
return this;
}
public String getDBProxyConnectString() {
return this.DBProxyConnectString;
}
public DescribeDBProxyEndpointResponseBody setDBProxyConnectStringNetType(String DBProxyConnectStringNetType) {
this.DBProxyConnectStringNetType = DBProxyConnectStringNetType;
return this;
}
public String getDBProxyConnectStringNetType() {
return this.DBProxyConnectStringNetType;
}
public DescribeDBProxyEndpointResponseBody setDBProxyConnectStringPort(String DBProxyConnectStringPort) {
this.DBProxyConnectStringPort = DBProxyConnectStringPort;
return this;
}
public String getDBProxyConnectStringPort() {
return this.DBProxyConnectStringPort;
}
public DescribeDBProxyEndpointResponseBody setDBProxyEndpointId(String DBProxyEndpointId) {
this.DBProxyEndpointId = DBProxyEndpointId;
return this;
}
public String getDBProxyEndpointId() {
return this.DBProxyEndpointId;
}
public DescribeDBProxyEndpointResponseBody setDBProxyEngineType(String DBProxyEngineType) {
this.DBProxyEngineType = DBProxyEngineType;
return this;
}
public String getDBProxyEngineType() {
return this.DBProxyEngineType;
}
public DescribeDBProxyEndpointResponseBody setDBProxyFeatures(String DBProxyFeatures) {
this.DBProxyFeatures = DBProxyFeatures;
return this;
}
public String getDBProxyFeatures() {
return this.DBProxyFeatures;
}
public DescribeDBProxyEndpointResponseBody setDbProxyEndpointAliases(String dbProxyEndpointAliases) {
this.dbProxyEndpointAliases = dbProxyEndpointAliases;
return this;
}
public String getDbProxyEndpointAliases() {
return this.dbProxyEndpointAliases;
}
public DescribeDBProxyEndpointResponseBody setDbProxyEndpointReadWriteMode(String dbProxyEndpointReadWriteMode) {
this.dbProxyEndpointReadWriteMode = dbProxyEndpointReadWriteMode;
return this;
}
public String getDbProxyEndpointReadWriteMode() {
return this.dbProxyEndpointReadWriteMode;
}
public DescribeDBProxyEndpointResponseBody setEndpointConnectItems(DescribeDBProxyEndpointResponseBodyEndpointConnectItems endpointConnectItems) {
this.endpointConnectItems = endpointConnectItems;
return this;
}
public DescribeDBProxyEndpointResponseBodyEndpointConnectItems getEndpointConnectItems() {
return this.endpointConnectItems;
}
public DescribeDBProxyEndpointResponseBody setReadOnlyInstanceDistributionType(String readOnlyInstanceDistributionType) {
this.readOnlyInstanceDistributionType = readOnlyInstanceDistributionType;
return this;
}
public String getReadOnlyInstanceDistributionType() {
return this.readOnlyInstanceDistributionType;
}
public DescribeDBProxyEndpointResponseBody setReadOnlyInstanceMaxDelayTime(String readOnlyInstanceMaxDelayTime) {
this.readOnlyInstanceMaxDelayTime = readOnlyInstanceMaxDelayTime;
return this;
}
public String getReadOnlyInstanceMaxDelayTime() {
return this.readOnlyInstanceMaxDelayTime;
}
public DescribeDBProxyEndpointResponseBody setReadOnlyInstanceWeight(String readOnlyInstanceWeight) {
this.readOnlyInstanceWeight = readOnlyInstanceWeight;
return this;
}
public String getReadOnlyInstanceWeight() {
return this.readOnlyInstanceWeight;
}
public DescribeDBProxyEndpointResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public static class DescribeDBProxyEndpointResponseBodyEndpointConnectItemsEndpointConnectItems extends TeaModel {
/**
* The proxy endpoint queried.
*
* example:
* testproxy****.rwlb.rds.aliyuncs.com
*/
@NameInMap("DbProxyEndpointConnectString")
public String dbProxyEndpointConnectString;
/**
* The network type of the instance. Valid values:
*
* - 0: Internet
* - 1: classic network
* - 2: virtual private cloud (VPC)
*
*
* example:
* 2
*/
@NameInMap("DbProxyEndpointNetType")
public String dbProxyEndpointNetType;
/**
* The port number that is associated with the proxy endpoint. Default value: 3306.
*
* example:
* 3306
*/
@NameInMap("DbProxyEndpointPort")
public String dbProxyEndpointPort;
public static DescribeDBProxyEndpointResponseBodyEndpointConnectItemsEndpointConnectItems build(java.util.Map map) throws Exception {
DescribeDBProxyEndpointResponseBodyEndpointConnectItemsEndpointConnectItems self = new DescribeDBProxyEndpointResponseBodyEndpointConnectItemsEndpointConnectItems();
return TeaModel.build(map, self);
}
public DescribeDBProxyEndpointResponseBodyEndpointConnectItemsEndpointConnectItems setDbProxyEndpointConnectString(String dbProxyEndpointConnectString) {
this.dbProxyEndpointConnectString = dbProxyEndpointConnectString;
return this;
}
public String getDbProxyEndpointConnectString() {
return this.dbProxyEndpointConnectString;
}
public DescribeDBProxyEndpointResponseBodyEndpointConnectItemsEndpointConnectItems setDbProxyEndpointNetType(String dbProxyEndpointNetType) {
this.dbProxyEndpointNetType = dbProxyEndpointNetType;
return this;
}
public String getDbProxyEndpointNetType() {
return this.dbProxyEndpointNetType;
}
public DescribeDBProxyEndpointResponseBodyEndpointConnectItemsEndpointConnectItems setDbProxyEndpointPort(String dbProxyEndpointPort) {
this.dbProxyEndpointPort = dbProxyEndpointPort;
return this;
}
public String getDbProxyEndpointPort() {
return this.dbProxyEndpointPort;
}
}
public static class DescribeDBProxyEndpointResponseBodyEndpointConnectItems extends TeaModel {
@NameInMap("EndpointConnectItems")
public java.util.List endpointConnectItems;
public static DescribeDBProxyEndpointResponseBodyEndpointConnectItems build(java.util.Map map) throws Exception {
DescribeDBProxyEndpointResponseBodyEndpointConnectItems self = new DescribeDBProxyEndpointResponseBodyEndpointConnectItems();
return TeaModel.build(map, self);
}
public DescribeDBProxyEndpointResponseBodyEndpointConnectItems setEndpointConnectItems(java.util.List endpointConnectItems) {
this.endpointConnectItems = endpointConnectItems;
return this;
}
public java.util.List getEndpointConnectItems() {
return this.endpointConnectItems;
}
}
}