
com.aliyun.sdk.service.polardb20170801.models.CreateDBEndpointAddressRequest Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.polardb20170801.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDBEndpointAddressRequest} extends {@link RequestModel}
*
* CreateDBEndpointAddressRequest
*/
public class CreateDBEndpointAddressRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ConnectionStringPrefix")
private String connectionStringPrefix;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBClusterId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBClusterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBEndpointId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBEndpointId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NetType")
@com.aliyun.core.annotation.Validation(required = true)
private String netType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityGroupId")
private String securityGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VPCId")
private String VPCId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ZoneInfo")
private java.util.List zoneInfo;
private CreateDBEndpointAddressRequest(Builder builder) {
super(builder);
this.connectionStringPrefix = builder.connectionStringPrefix;
this.DBClusterId = builder.DBClusterId;
this.DBEndpointId = builder.DBEndpointId;
this.netType = builder.netType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.securityGroupId = builder.securityGroupId;
this.VPCId = builder.VPCId;
this.zoneInfo = builder.zoneInfo;
}
public static Builder builder() {
return new Builder();
}
public static CreateDBEndpointAddressRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return connectionStringPrefix
*/
public String getConnectionStringPrefix() {
return this.connectionStringPrefix;
}
/**
* @return DBClusterId
*/
public String getDBClusterId() {
return this.DBClusterId;
}
/**
* @return DBEndpointId
*/
public String getDBEndpointId() {
return this.DBEndpointId;
}
/**
* @return netType
*/
public String getNetType() {
return this.netType;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return securityGroupId
*/
public String getSecurityGroupId() {
return this.securityGroupId;
}
/**
* @return VPCId
*/
public String getVPCId() {
return this.VPCId;
}
/**
* @return zoneInfo
*/
public java.util.List getZoneInfo() {
return this.zoneInfo;
}
public static final class Builder extends Request.Builder {
private String connectionStringPrefix;
private String DBClusterId;
private String DBEndpointId;
private String netType;
private String ownerAccount;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String securityGroupId;
private String VPCId;
private java.util.List zoneInfo;
private Builder() {
super();
}
private Builder(CreateDBEndpointAddressRequest request) {
super(request);
this.connectionStringPrefix = request.connectionStringPrefix;
this.DBClusterId = request.DBClusterId;
this.DBEndpointId = request.DBEndpointId;
this.netType = request.netType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.securityGroupId = request.securityGroupId;
this.VPCId = request.VPCId;
this.zoneInfo = request.zoneInfo;
}
/**
* The prefix of the new endpoint. The prefix of the endpoint must meet the following requirements:
*
* - The prefix can contain lowercase letters, digits, and hyphens (-).
* - The prefix must start with a letter and end with a digit or a letter.
* - The prefix must be 6 to 40 characters in length.
*
*
* example:
* test-1
*/
public Builder connectionStringPrefix(String connectionStringPrefix) {
this.putQueryParameter("ConnectionStringPrefix", connectionStringPrefix);
this.connectionStringPrefix = connectionStringPrefix;
return this;
}
/**
* The ID of the cluster.
* This parameter is required.
*
* example:
* pc-**************
*/
public Builder DBClusterId(String DBClusterId) {
this.putQueryParameter("DBClusterId", DBClusterId);
this.DBClusterId = DBClusterId;
return this;
}
/**
* The ID of the endpoint.
*
* You can call the DescribeDBClusterEndpoints operation to query endpoint details.
*
* This parameter is required.
*
* example:
* pe-**************
*/
public Builder DBEndpointId(String DBEndpointId) {
this.putQueryParameter("DBEndpointId", DBEndpointId);
this.DBEndpointId = DBEndpointId;
return this;
}
/**
* The network type of the endpoint. Set the value to Public.
* This parameter is required.
*
* example:
* Public
*/
public Builder netType(String netType) {
this.putQueryParameter("NetType", netType);
this.netType = netType;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* The ID of the ECS security group.
*
* example:
* sg-bp**************
*/
public Builder securityGroupId(String securityGroupId) {
this.putQueryParameter("SecurityGroupId", securityGroupId);
this.securityGroupId = securityGroupId;
return this;
}
/**
* The ID of the virtual private cloud (VPC).
*
* example:
* vpc-**********
*/
public Builder VPCId(String VPCId) {
this.putQueryParameter("VPCId", VPCId);
this.VPCId = VPCId;
return this;
}
/**
* The details of the zones.
*/
public Builder zoneInfo(java.util.List zoneInfo) {
this.putQueryParameter("ZoneInfo", zoneInfo);
this.zoneInfo = zoneInfo;
return this;
}
@Override
public CreateDBEndpointAddressRequest build() {
return new CreateDBEndpointAddressRequest(this);
}
}
/**
*
* {@link CreateDBEndpointAddressRequest} extends {@link TeaModel}
*
* CreateDBEndpointAddressRequest
*/
public static class ZoneInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
private ZoneInfo(Builder builder) {
this.vSwitchId = builder.vSwitchId;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static ZoneInfo create() {
return builder().build();
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder {
private String vSwitchId;
private String zoneId;
/**
* The ID of the vSwitch.
*
* example:
* vsw-**********
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* The ID of the zone.
*
* example:
* cn-hangzhou-b
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public ZoneInfo build() {
return new ZoneInfo(this);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy