com.pulumi.alicloud.polardb.inputs.GetDatabasesPlainArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
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.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 GetDatabasesPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetDatabasesPlainArgs Empty = new GetDatabasesPlainArgs();
/**
* The polarDB cluster ID.
*
*/
@Import(name="dbClusterId", required=true)
private String dbClusterId;
/**
* @return The polarDB cluster ID.
*
*/
public String dbClusterId() {
return this.dbClusterId;
}
/**
* A regex string to filter results by database name.
*
*/
@Import(name="nameRegex")
private @Nullable String nameRegex;
/**
* @return A regex string to filter results by database name.
*
*/
public Optional nameRegex() {
return Optional.ofNullable(this.nameRegex);
}
private GetDatabasesPlainArgs() {}
private GetDatabasesPlainArgs(GetDatabasesPlainArgs $) {
this.dbClusterId = $.dbClusterId;
this.nameRegex = $.nameRegex;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDatabasesPlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetDatabasesPlainArgs $;
public Builder() {
$ = new GetDatabasesPlainArgs();
}
public Builder(GetDatabasesPlainArgs defaults) {
$ = new GetDatabasesPlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param dbClusterId The polarDB cluster ID.
*
* @return builder
*
*/
public Builder dbClusterId(String dbClusterId) {
$.dbClusterId = dbClusterId;
return this;
}
/**
* @param nameRegex A regex string to filter results by database name.
*
* @return builder
*
*/
public Builder nameRegex(@Nullable String nameRegex) {
$.nameRegex = nameRegex;
return this;
}
public GetDatabasesPlainArgs build() {
if ($.dbClusterId == null) {
throw new MissingRequiredPropertyException("GetDatabasesPlainArgs", "dbClusterId");
}
return $;
}
}
}