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

com.pulumi.azurenative.azurearcdata.inputs.GetPostgresInstanceArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.azurenative.azurearcdata.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


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

    public static final GetPostgresInstanceArgs Empty = new GetPostgresInstanceArgs();

    /**
     * Name of Postgres Instance
     * 
     */
    @Import(name="postgresInstanceName", required=true)
    private Output postgresInstanceName;

    /**
     * @return Name of Postgres Instance
     * 
     */
    public Output postgresInstanceName() {
        return this.postgresInstanceName;
    }

    /**
     * The name of the Azure resource group
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the Azure resource group
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private GetPostgresInstanceArgs() {}

    private GetPostgresInstanceArgs(GetPostgresInstanceArgs $) {
        this.postgresInstanceName = $.postgresInstanceName;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private GetPostgresInstanceArgs $;

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

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

        /**
         * @param postgresInstanceName Name of Postgres Instance
         * 
         * @return builder
         * 
         */
        public Builder postgresInstanceName(Output postgresInstanceName) {
            $.postgresInstanceName = postgresInstanceName;
            return this;
        }

        /**
         * @param postgresInstanceName Name of Postgres Instance
         * 
         * @return builder
         * 
         */
        public Builder postgresInstanceName(String postgresInstanceName) {
            return postgresInstanceName(Output.of(postgresInstanceName));
        }

        /**
         * @param resourceGroupName The name of the Azure resource group
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the Azure resource group
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public GetPostgresInstanceArgs build() {
            if ($.postgresInstanceName == null) {
                throw new MissingRequiredPropertyException("GetPostgresInstanceArgs", "postgresInstanceName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("GetPostgresInstanceArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy