Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.alicloud.polardb.inputs.DatabaseState Maven / Gradle / Ivy
Go to download
A Pulumi package for creating and managing AliCloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.alicloud.polardb.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class DatabaseState extends com.pulumi.resources.ResourceArgs {
public static final DatabaseState Empty = new DatabaseState();
/**
* Account name authorized to access the database. Only supports PostgreSQL.
*
*/
@Import(name="accountName")
private @Nullable Output accountName;
/**
* @return Account name authorized to access the database. Only supports PostgreSQL.
*
*/
public Optional> accountName() {
return Optional.ofNullable(this.accountName);
}
/**
* Character set. The value range is limited to the following: [ utf8, gbk, latin1, utf8mb4, Chinese_PRC_CI_AS, Chinese_PRC_CS_AS, SQL_Latin1_General_CP1_CI_AS, SQL_Latin1_General_CP1_CS_AS, Chinese_PRC_BIN ], default is "utf8" \(`utf8mb4` only supports versions 5.5 and 5.6\).
*
*/
@Import(name="characterSetName")
private @Nullable Output characterSetName;
/**
* @return Character set. The value range is limited to the following: [ utf8, gbk, latin1, utf8mb4, Chinese_PRC_CI_AS, Chinese_PRC_CS_AS, SQL_Latin1_General_CP1_CI_AS, SQL_Latin1_General_CP1_CS_AS, Chinese_PRC_BIN ], default is "utf8" \(`utf8mb4` only supports versions 5.5 and 5.6\).
*
*/
public Optional> characterSetName() {
return Optional.ofNullable(this.characterSetName);
}
/**
* The Id of cluster that can run database.
*
*/
@Import(name="dbClusterId")
private @Nullable Output dbClusterId;
/**
* @return The Id of cluster that can run database.
*
*/
public Optional> dbClusterId() {
return Optional.ofNullable(this.dbClusterId);
}
/**
* Database description. It must start with a Chinese character or English letter, cannot start with "http://" or "https://". It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length must be 2-256 characters.
*
*/
@Import(name="dbDescription")
private @Nullable Output dbDescription;
/**
* @return Database description. It must start with a Chinese character or English letter, cannot start with "http://" or "https://". It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length must be 2-256 characters.
*
*/
public Optional> dbDescription() {
return Optional.ofNullable(this.dbDescription);
}
/**
* Name of the database requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letterand have no more than 64 characters.
*
*/
@Import(name="dbName")
private @Nullable Output dbName;
/**
* @return Name of the database requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letterand have no more than 64 characters.
*
*/
public Optional> dbName() {
return Optional.ofNullable(this.dbName);
}
private DatabaseState() {}
private DatabaseState(DatabaseState $) {
this.accountName = $.accountName;
this.characterSetName = $.characterSetName;
this.dbClusterId = $.dbClusterId;
this.dbDescription = $.dbDescription;
this.dbName = $.dbName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DatabaseState defaults) {
return new Builder(defaults);
}
public static final class Builder {
private DatabaseState $;
public Builder() {
$ = new DatabaseState();
}
public Builder(DatabaseState defaults) {
$ = new DatabaseState(Objects.requireNonNull(defaults));
}
/**
* @param accountName Account name authorized to access the database. Only supports PostgreSQL.
*
* @return builder
*
*/
public Builder accountName(@Nullable Output accountName) {
$.accountName = accountName;
return this;
}
/**
* @param accountName Account name authorized to access the database. Only supports PostgreSQL.
*
* @return builder
*
*/
public Builder accountName(String accountName) {
return accountName(Output.of(accountName));
}
/**
* @param characterSetName Character set. The value range is limited to the following: [ utf8, gbk, latin1, utf8mb4, Chinese_PRC_CI_AS, Chinese_PRC_CS_AS, SQL_Latin1_General_CP1_CI_AS, SQL_Latin1_General_CP1_CS_AS, Chinese_PRC_BIN ], default is "utf8" \(`utf8mb4` only supports versions 5.5 and 5.6\).
*
* @return builder
*
*/
public Builder characterSetName(@Nullable Output characterSetName) {
$.characterSetName = characterSetName;
return this;
}
/**
* @param characterSetName Character set. The value range is limited to the following: [ utf8, gbk, latin1, utf8mb4, Chinese_PRC_CI_AS, Chinese_PRC_CS_AS, SQL_Latin1_General_CP1_CI_AS, SQL_Latin1_General_CP1_CS_AS, Chinese_PRC_BIN ], default is "utf8" \(`utf8mb4` only supports versions 5.5 and 5.6\).
*
* @return builder
*
*/
public Builder characterSetName(String characterSetName) {
return characterSetName(Output.of(characterSetName));
}
/**
* @param dbClusterId The Id of cluster that can run database.
*
* @return builder
*
*/
public Builder dbClusterId(@Nullable Output dbClusterId) {
$.dbClusterId = dbClusterId;
return this;
}
/**
* @param dbClusterId The Id of cluster that can run database.
*
* @return builder
*
*/
public Builder dbClusterId(String dbClusterId) {
return dbClusterId(Output.of(dbClusterId));
}
/**
* @param dbDescription Database description. It must start with a Chinese character or English letter, cannot start with "http://" or "https://". It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length must be 2-256 characters.
*
* @return builder
*
*/
public Builder dbDescription(@Nullable Output dbDescription) {
$.dbDescription = dbDescription;
return this;
}
/**
* @param dbDescription Database description. It must start with a Chinese character or English letter, cannot start with "http://" or "https://". It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length must be 2-256 characters.
*
* @return builder
*
*/
public Builder dbDescription(String dbDescription) {
return dbDescription(Output.of(dbDescription));
}
/**
* @param dbName Name of the database requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letterand have no more than 64 characters.
*
* @return builder
*
*/
public Builder dbName(@Nullable Output dbName) {
$.dbName = dbName;
return this;
}
/**
* @param dbName Name of the database requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letterand have no more than 64 characters.
*
* @return builder
*
*/
public Builder dbName(String dbName) {
return dbName(Output.of(dbName));
}
public DatabaseState build() {
return $;
}
}
}