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

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

CreateSecretRequest

*/ public class CreateSecretRequest extends Request { @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("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Password") @com.aliyun.core.annotation.Validation(required = true) private String password; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SecretName") private String secretName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TestConnection") private Boolean testConnection; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Username") @com.aliyun.core.annotation.Validation(required = true) private String username; private CreateSecretRequest(Builder builder) { super(builder); this.DBInstanceId = builder.DBInstanceId; this.description = builder.description; this.ownerId = builder.ownerId; this.password = builder.password; this.regionId = builder.regionId; this.secretName = builder.secretName; this.testConnection = builder.testConnection; this.username = builder.username; } public static Builder builder() { return new Builder(); } public static CreateSecretRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return DBInstanceId */ public String getDBInstanceId() { return this.DBInstanceId; } /** * @return description */ public String getDescription() { return this.description; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return password */ public String getPassword() { return this.password; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return secretName */ public String getSecretName() { return this.secretName; } /** * @return testConnection */ public Boolean getTestConnection() { return this.testConnection; } /** * @return username */ public String getUsername() { return this.username; } public static final class Builder extends Request.Builder { private String DBInstanceId; private String description; private Long ownerId; private String password; private String regionId; private String secretName; private Boolean testConnection; private String username; private Builder() { super(); } private Builder(CreateSecretRequest request) { super(request); this.DBInstanceId = request.DBInstanceId; this.description = request.description; this.ownerId = request.ownerId; this.password = request.password; this.regionId = request.regionId; this.secretName = request.secretName; this.testConnection = request.testConnection; this.username = request.username; } /** * The instance ID. *

* * > You can call the [DescribeDBInstances](~~86911~~) operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs. */ public Builder DBInstanceId(String DBInstanceId) { this.putQueryParameter("DBInstanceId", DBInstanceId); this.DBInstanceId = DBInstanceId; return this; } /** * The description of the access credential. */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * The password of the database account that is used to access the instance. */ public Builder password(String password) { this.putQueryParameter("Password", password); this.password = password; return this; } /** * The region ID of the instance. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * The name of the access credential. The name must be 1 to 16 characters in length and can contain letters, digits, and underscores (\_). If you leave this parameter empty, the value of the Username parameter is used. */ public Builder secretName(String secretName) { this.putQueryParameter("SecretName", secretName); this.secretName = secretName; return this; } /** * Specifies whether to check the connectivity to the instance by using the name and password of the database account. */ public Builder testConnection(Boolean testConnection) { this.putQueryParameter("TestConnection", testConnection); this.testConnection = testConnection; return this; } /** * The name of the database account that is used to access the instance. */ public Builder username(String username) { this.putQueryParameter("Username", username); this.username = username; return this; } @Override public CreateSecretRequest build() { return new CreateSecretRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy