All Downloads are FREE. Search and download functionalities are using the official Maven repository.
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.mongodb.AccountArgs 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.mongodb;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class AccountArgs extends com.pulumi.resources.ResourceArgs {
public static final AccountArgs Empty = new AccountArgs();
/**
* The description of the account.
* * The description must start with a letter, and cannot start with `http://` or `https://`.
* * It must be `2` to `256` characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
*
*/
@Import(name="accountDescription")
private @Nullable Output accountDescription;
/**
* @return The description of the account.
* * The description must start with a letter, and cannot start with `http://` or `https://`.
* * It must be `2` to `256` characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
*
*/
public Optional> accountDescription() {
return Optional.ofNullable(this.accountDescription);
}
/**
* The name of the account. Valid values: `root`.
*
*/
@Import(name="accountName", required=true)
private Output accountName;
/**
* @return The name of the account. Valid values: `root`.
*
*/
public Output accountName() {
return this.accountName;
}
/**
* The Password of the 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.
*
*/
@Import(name="accountPassword", required=true)
private Output accountPassword;
/**
* @return The Password of the 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 Output accountPassword() {
return this.accountPassword;
}
/**
* The ID of the instance.
*
*/
@Import(name="instanceId", required=true)
private Output instanceId;
/**
* @return The ID of the instance.
*
*/
public Output instanceId() {
return this.instanceId;
}
private AccountArgs() {}
private AccountArgs(AccountArgs $) {
this.accountDescription = $.accountDescription;
this.accountName = $.accountName;
this.accountPassword = $.accountPassword;
this.instanceId = $.instanceId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AccountArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private AccountArgs $;
public Builder() {
$ = new AccountArgs();
}
public Builder(AccountArgs defaults) {
$ = new AccountArgs(Objects.requireNonNull(defaults));
}
/**
* @param accountDescription The description of the account.
* * The description must start with a letter, and cannot start with `http://` or `https://`.
* * It must be `2` to `256` characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
*
* @return builder
*
*/
public Builder accountDescription(@Nullable Output accountDescription) {
$.accountDescription = accountDescription;
return this;
}
/**
* @param accountDescription The description of the account.
* * The description must start with a letter, and cannot start with `http://` or `https://`.
* * It must be `2` to `256` characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
*
* @return builder
*
*/
public Builder accountDescription(String accountDescription) {
return accountDescription(Output.of(accountDescription));
}
/**
* @param accountName The name of the account. Valid values: `root`.
*
* @return builder
*
*/
public Builder accountName(Output accountName) {
$.accountName = accountName;
return this;
}
/**
* @param accountName The name of the account. Valid values: `root`.
*
* @return builder
*
*/
public Builder accountName(String accountName) {
return accountName(Output.of(accountName));
}
/**
* @param accountPassword The Password of the 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.
*
* @return builder
*
*/
public Builder accountPassword(Output accountPassword) {
$.accountPassword = accountPassword;
return this;
}
/**
* @param accountPassword The Password of the 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.
*
* @return builder
*
*/
public Builder accountPassword(String accountPassword) {
return accountPassword(Output.of(accountPassword));
}
/**
* @param instanceId The ID of the instance.
*
* @return builder
*
*/
public Builder instanceId(Output instanceId) {
$.instanceId = instanceId;
return this;
}
/**
* @param instanceId The ID of the instance.
*
* @return builder
*
*/
public Builder instanceId(String instanceId) {
return instanceId(Output.of(instanceId));
}
public AccountArgs build() {
if ($.accountName == null) {
throw new MissingRequiredPropertyException("AccountArgs", "accountName");
}
if ($.accountPassword == null) {
throw new MissingRequiredPropertyException("AccountArgs", "accountPassword");
}
if ($.instanceId == null) {
throw new MissingRequiredPropertyException("AccountArgs", "instanceId");
}
return $;
}
}
}