All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.polardb20170801.models.ModifyDBEndpointAddressRequest 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 ModifyDBEndpointAddressRequest} extends {@link RequestModel}
 *
 * 

ModifyDBEndpointAddressRequest

*/ public class ModifyDBEndpointAddressRequest 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("Port") private String port; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PrivateZoneAddressPrefix") private String privateZoneAddressPrefix; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PrivateZoneName") private String privateZoneName; @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; private ModifyDBEndpointAddressRequest(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.port = builder.port; this.privateZoneAddressPrefix = builder.privateZoneAddressPrefix; this.privateZoneName = builder.privateZoneName; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyDBEndpointAddressRequest 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 port */ public String getPort() { return this.port; } /** * @return privateZoneAddressPrefix */ public String getPrivateZoneAddressPrefix() { return this.privateZoneAddressPrefix; } /** * @return privateZoneName */ public String getPrivateZoneName() { return this.privateZoneName; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } 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 port; private String privateZoneAddressPrefix; private String privateZoneName; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyDBEndpointAddressRequest 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.port = request.port; this.privateZoneAddressPrefix = request.privateZoneAddressPrefix; this.privateZoneName = request.privateZoneName; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** *

The prefix of the new endpoint. The prefix must meet the following requirements:

*
    *
  • It can contain lowercase letters, digits, and hyphens (-).
  • *
  • It must start with a letter and end with a digit or a letter.
  • *
  • It must be 6 to 30 characters in length.
  • *
* * example: *

example

*/ public Builder connectionStringPrefix(String connectionStringPrefix) { this.putQueryParameter("ConnectionStringPrefix", connectionStringPrefix); this.connectionStringPrefix = connectionStringPrefix; return this; } /** *

The ID of cluster.

*
*

You can call the DescribeDBClusters operation to query the details of the clusters that belong to your Alibaba Cloud account, such as cluster IDs.

*
*

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 IDs.

*
*

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. Valid values:

*
    *
  • Public
  • *
  • Private
  • *
*

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; } /** *

The port number. Valid values: 3000 to 5999.

*
*

This parameter is valid only for PolarDB for MySQL clusters. If you leave this parameter empty, the default port 3306 is used.

*
* * example: *

3306

*/ public Builder port(String port) { this.putQueryParameter("Port", port); this.port = port; return this; } /** *

The prefix of the private domain name. The prefix 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 30 characters in length.
  • *
*
*
    *
  • You can bind each internal endpoint of PolarDB to a private domain name. The private domain name takes effect only in the specified virtual private clouds (VPCs) in the current region. Private domain names are managed by using PrivateZone. You can use the CNAME record of PrivateZone to map domain names to PolarDB. You are charged a small fee for this feature. For more information, see Pricing.
  • *
  • This parameter takes effect only if you set NetType to Private.
  • *
*
* * example: *

aliyundoc

*/ public Builder privateZoneAddressPrefix(String privateZoneAddressPrefix) { this.putQueryParameter("PrivateZoneAddressPrefix", privateZoneAddressPrefix); this.privateZoneAddressPrefix = privateZoneAddressPrefix; return this; } /** *

The name of the private zone.

*
*

This parameter takes effect only when NetType is set to Private.

*
* * example: *

aliyundoc.com

*/ public Builder privateZoneName(String privateZoneName) { this.putQueryParameter("PrivateZoneName", privateZoneName); this.privateZoneName = privateZoneName; 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; } @Override public ModifyDBEndpointAddressRequest build() { return new ModifyDBEndpointAddressRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy