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

com.pulumi.linode.inputs.GetDatabasePostgresqlArgs Maven / Gradle / Ivy

There is a newer version: 4.31.0-alpha.1732773076
Show newest version
// *** 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.linode.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetDatabasePostgresqlArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetDatabasePostgresqlArgs Empty = new GetDatabasePostgresqlArgs();

    /**
     * The ID of the PostgreSQL database. Deprecated: Use id instead.
     * 
     * @deprecated
     * Configure `id` instead. This attribute will be removed in the next major version of the provider.
     * 
     */
    @Deprecated /* Configure `id` instead. This attribute will be removed in the next major version of the provider. */
    @Import(name="databaseId")
    private @Nullable Output databaseId;

    /**
     * @return The ID of the PostgreSQL database. Deprecated: Use id instead.
     * 
     * @deprecated
     * Configure `id` instead. This attribute will be removed in the next major version of the provider.
     * 
     */
    @Deprecated /* Configure `id` instead. This attribute will be removed in the next major version of the provider. */
    public Optional> databaseId() {
        return Optional.ofNullable(this.databaseId);
    }

    /**
     * The ID of the PostgreSQL database. Mutually exclusive with `database_id`.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return The ID of the PostgreSQL database. Mutually exclusive with `database_id`.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    private GetDatabasePostgresqlArgs() {}

    private GetDatabasePostgresqlArgs(GetDatabasePostgresqlArgs $) {
        this.databaseId = $.databaseId;
        this.id = $.id;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(GetDatabasePostgresqlArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private GetDatabasePostgresqlArgs $;

        public Builder() {
            $ = new GetDatabasePostgresqlArgs();
        }

        public Builder(GetDatabasePostgresqlArgs defaults) {
            $ = new GetDatabasePostgresqlArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param databaseId The ID of the PostgreSQL database. Deprecated: Use id instead.
         * 
         * @return builder
         * 
         * @deprecated
         * Configure `id` instead. This attribute will be removed in the next major version of the provider.
         * 
         */
        @Deprecated /* Configure `id` instead. This attribute will be removed in the next major version of the provider. */
        public Builder databaseId(@Nullable Output databaseId) {
            $.databaseId = databaseId;
            return this;
        }

        /**
         * @param databaseId The ID of the PostgreSQL database. Deprecated: Use id instead.
         * 
         * @return builder
         * 
         * @deprecated
         * Configure `id` instead. This attribute will be removed in the next major version of the provider.
         * 
         */
        @Deprecated /* Configure `id` instead. This attribute will be removed in the next major version of the provider. */
        public Builder databaseId(Integer databaseId) {
            return databaseId(Output.of(databaseId));
        }

        /**
         * @param id The ID of the PostgreSQL database. Mutually exclusive with `database_id`.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id The ID of the PostgreSQL database. Mutually exclusive with `database_id`.
         * 
         * @return builder
         * 
         */
        public Builder id(Integer id) {
            return id(Output.of(id));
        }

        public GetDatabasePostgresqlArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy