com.aliyun.rds20140815.models.CreateDBProxyEndpointAddressRequest 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 CreateDBProxyEndpointAddressRequest extends TeaModel {
/**
* The prefix of the proxy endpoint Enter a custom prefix.
* This parameter is required.
*
* example:
* test1234
*/
@NameInMap("ConnectionStringPrefix")
public String connectionStringPrefix;
/**
* The instance ID. You can call the DescribeDBInstances operation to query the instance ID.
* This parameter is required.
*
* example:
* rm-t4n3axxxxx
*/
@NameInMap("DBInstanceId")
public String DBInstanceId;
/**
* The network type of the proxy endpoint. Valid values:
*
* - Public: Internet
* - VPC: Virtual Private Cloud (VPC)
* - Classic: classic network
*
* Default value: Classic
* This parameter is required.
*
* example:
* Public
*/
@NameInMap("DBProxyConnectStringNetType")
public String DBProxyConnectStringNetType;
/**
* The proxy endpoint ID. You can call the DescribeDBProxyEndpoint operation to query the proxy endpoint ID.
* This parameter is required.
*
* example:
* ta9um4xxxxx
*/
@NameInMap("DBProxyEndpointId")
public String DBProxyEndpointId;
/**
* A reserved parameter. You do not need to specify this parameter.
*
* example:
* normal
*/
@NameInMap("DBProxyEngineType")
public String DBProxyEngineType;
/**
* The port number that is associated with the proxy endpoint.
*
* - If the instance runs MySQL, the default value is 3306.
* - If the instance runs PostgreSQL, the default value is 5432.
*
*
* example:
* 3306
*/
@NameInMap("DBProxyNewConnectStringPort")
public String DBProxyNewConnectStringPort;
/**
* The region ID. You can call the DescribeRegions operation to query the most recent region list.
*
* example:
* cn-hangzhou
*/
@NameInMap("RegionId")
public String regionId;
/**
* The ID of the resource group.
*
* example:
* rg-acfmy*****
*/
@NameInMap("ResourceGroupId")
public String resourceGroupId;
/**
* The ID of the VPC to which the proxy endpoint belongs. You can call the DescribeDBInstanceAttribute operation to query the information.
*
* This parameter must be specified when DBProxyConnectStringNetType is set to VPC.
*
*
* example:
* vpc-bpxxxxxx
*/
@NameInMap("VPCId")
public String VPCId;
/**
* The ID of the vSwitch that is associated with the specified VPC. You can call the DescribeDBInstanceAttribute operation to query the vSwitch ID.
*
* This parameter must be specified when DBProxyConnectStringNetType is set to VPC.
*
*
* example:
* vsw-bpxxxxxx
*/
@NameInMap("VSwitchId")
public String vSwitchId;
public static CreateDBProxyEndpointAddressRequest build(java.util.Map map) throws Exception {
CreateDBProxyEndpointAddressRequest self = new CreateDBProxyEndpointAddressRequest();
return TeaModel.build(map, self);
}
public CreateDBProxyEndpointAddressRequest setConnectionStringPrefix(String connectionStringPrefix) {
this.connectionStringPrefix = connectionStringPrefix;
return this;
}
public String getConnectionStringPrefix() {
return this.connectionStringPrefix;
}
public CreateDBProxyEndpointAddressRequest setDBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
public String getDBInstanceId() {
return this.DBInstanceId;
}
public CreateDBProxyEndpointAddressRequest setDBProxyConnectStringNetType(String DBProxyConnectStringNetType) {
this.DBProxyConnectStringNetType = DBProxyConnectStringNetType;
return this;
}
public String getDBProxyConnectStringNetType() {
return this.DBProxyConnectStringNetType;
}
public CreateDBProxyEndpointAddressRequest setDBProxyEndpointId(String DBProxyEndpointId) {
this.DBProxyEndpointId = DBProxyEndpointId;
return this;
}
public String getDBProxyEndpointId() {
return this.DBProxyEndpointId;
}
public CreateDBProxyEndpointAddressRequest setDBProxyEngineType(String DBProxyEngineType) {
this.DBProxyEngineType = DBProxyEngineType;
return this;
}
public String getDBProxyEngineType() {
return this.DBProxyEngineType;
}
public CreateDBProxyEndpointAddressRequest setDBProxyNewConnectStringPort(String DBProxyNewConnectStringPort) {
this.DBProxyNewConnectStringPort = DBProxyNewConnectStringPort;
return this;
}
public String getDBProxyNewConnectStringPort() {
return this.DBProxyNewConnectStringPort;
}
public CreateDBProxyEndpointAddressRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public CreateDBProxyEndpointAddressRequest setResourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
public String getResourceGroupId() {
return this.resourceGroupId;
}
public CreateDBProxyEndpointAddressRequest setVPCId(String VPCId) {
this.VPCId = VPCId;
return this;
}
public String getVPCId() {
return this.VPCId;
}
public CreateDBProxyEndpointAddressRequest setVSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
public String getVSwitchId() {
return this.vSwitchId;
}
}