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

com.aliyun.sdk.service.gpdb20160503.models.CreateAccountRequest Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.gpdb20160503.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link CreateAccountRequest} extends {@link RequestModel}
 *
 * 

CreateAccountRequest

*/ public class CreateAccountRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AccountDescription") private String accountDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AccountName") @com.aliyun.core.annotation.Validation(required = true) private String accountName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AccountPassword") @com.aliyun.core.annotation.Validation(required = true) private String accountPassword; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AccountType") private String accountType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DBInstanceId") @com.aliyun.core.annotation.Validation(required = true) private String DBInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DatabaseName") private String databaseName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; private CreateAccountRequest(Builder builder) { super(builder); this.accountDescription = builder.accountDescription; this.accountName = builder.accountName; this.accountPassword = builder.accountPassword; this.accountType = builder.accountType; this.DBInstanceId = builder.DBInstanceId; this.databaseName = builder.databaseName; this.ownerId = builder.ownerId; this.resourceGroupId = builder.resourceGroupId; } public static Builder builder() { return new Builder(); } public static CreateAccountRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return accountDescription */ public String getAccountDescription() { return this.accountDescription; } /** * @return accountName */ public String getAccountName() { return this.accountName; } /** * @return accountPassword */ public String getAccountPassword() { return this.accountPassword; } /** * @return accountType */ public String getAccountType() { return this.accountType; } /** * @return DBInstanceId */ public String getDBInstanceId() { return this.DBInstanceId; } /** * @return databaseName */ public String getDatabaseName() { return this.databaseName; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } public static final class Builder extends Request.Builder { private String accountDescription; private String accountName; private String accountPassword; private String accountType; private String DBInstanceId; private String databaseName; private Long ownerId; private String resourceGroupId; private Builder() { super(); } private Builder(CreateAccountRequest request) { super(request); this.accountDescription = request.accountDescription; this.accountName = request.accountName; this.accountPassword = request.accountPassword; this.accountType = request.accountType; this.DBInstanceId = request.DBInstanceId; this.databaseName = request.databaseName; this.ownerId = request.ownerId; this.resourceGroupId = request.resourceGroupId; } /** * The description of the initial account. */ public Builder accountDescription(String accountDescription) { this.putQueryParameter("AccountDescription", accountDescription); this.accountDescription = accountDescription; return this; } /** * The name of the initial account. *

* * * The name can contain lowercase letters, digits, and underscores (\_). * * The name must start with a lowercase letter and end with a lowercase letter or a digit. * * The name cannot start with gp. * * The name must be 2 to 16 characters in length. */ public Builder accountName(String accountName) { this.putQueryParameter("AccountName", accountName); this.accountName = accountName; return this; } /** * The password of the initial account. *

* * The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. * * Special characters include `! @ # $ % ^ & * ( ) _ + - =` * * The password must be 8 to 32 characters in length. */ public Builder accountPassword(String accountPassword) { this.putQueryParameter("AccountPassword", accountPassword); this.accountPassword = accountPassword; return this; } /** * The type of the initial account. Default value: Super, which specifies a privileged account. To create a standard account, set the value to Normal. */ public Builder accountType(String accountType) { this.putQueryParameter("AccountType", accountType); this.accountType = accountType; return this; } /** * The ID of the instance. *

* * > You can call the [DescribeDBInstances](~~86911~~) operation to query the details of all AnalyticDB for PostgreSQL instances in a specific region, including instance IDs. */ public Builder DBInstanceId(String DBInstanceId) { this.putQueryParameter("DBInstanceId", DBInstanceId); this.DBInstanceId = DBInstanceId; return this; } /** * The name of the database. */ public Builder databaseName(String databaseName) { this.putQueryParameter("DatabaseName", databaseName); this.databaseName = databaseName; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * This parameter is no longer used. */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } @Override public CreateAccountRequest build() { return new CreateAccountRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy