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

com.pulumi.azurenative.azurearcdata.PostgresInstanceArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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;

import com.pulumi.azurenative.azurearcdata.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.azurearcdata.inputs.PostgresInstancePropertiesArgs;
import com.pulumi.azurenative.azurearcdata.inputs.PostgresInstanceSkuArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class PostgresInstanceArgs extends com.pulumi.resources.ResourceArgs {

    public static final PostgresInstanceArgs Empty = new PostgresInstanceArgs();

    /**
     * The extendedLocation of the resource.
     * 
     */
    @Import(name="extendedLocation")
    private @Nullable Output extendedLocation;

    /**
     * @return The extendedLocation of the resource.
     * 
     */
    public Optional> extendedLocation() {
        return Optional.ofNullable(this.extendedLocation);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

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

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

    /**
     * null
     * 
     */
    @Import(name="properties", required=true)
    private Output properties;

    /**
     * @return null
     * 
     */
    public Output properties() {
        return this.properties;
    }

    /**
     * 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;
    }

    /**
     * Resource sku.
     * 
     */
    @Import(name="sku")
    private @Nullable Output sku;

    /**
     * @return Resource sku.
     * 
     */
    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private PostgresInstanceArgs() {}

    private PostgresInstanceArgs(PostgresInstanceArgs $) {
        this.extendedLocation = $.extendedLocation;
        this.location = $.location;
        this.postgresInstanceName = $.postgresInstanceName;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private PostgresInstanceArgs $;

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

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

        /**
         * @param extendedLocation The extendedLocation of the resource.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(@Nullable Output extendedLocation) {
            $.extendedLocation = extendedLocation;
            return this;
        }

        /**
         * @param extendedLocation The extendedLocation of the resource.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(ExtendedLocationArgs extendedLocation) {
            return extendedLocation(Output.of(extendedLocation));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param postgresInstanceName Name of Postgres Instance
         * 
         * @return builder
         * 
         */
        public Builder postgresInstanceName(@Nullable 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 properties null
         * 
         * @return builder
         * 
         */
        public Builder properties(Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties null
         * 
         * @return builder
         * 
         */
        public Builder properties(PostgresInstancePropertiesArgs properties) {
            return properties(Output.of(properties));
        }

        /**
         * @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));
        }

        /**
         * @param sku Resource sku.
         * 
         * @return builder
         * 
         */
        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku Resource sku.
         * 
         * @return builder
         * 
         */
        public Builder sku(PostgresInstanceSkuArgs sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy