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

com.pulumi.aws.servicediscovery.PrivateDnsNamespaceArgs Maven / Gradle / Ivy

// *** 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.aws.servicediscovery;

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 PrivateDnsNamespaceArgs extends com.pulumi.resources.ResourceArgs {

    public static final PrivateDnsNamespaceArgs Empty = new PrivateDnsNamespaceArgs();

    /**
     * The description that you specify for the namespace when you create it.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description that you specify for the namespace when you create it.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

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

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

    /**
     * A map of tags to assign to the namespace. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A map of tags to assign to the namespace. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The ID of VPC that you want to associate the namespace with.
     * 
     */
    @Import(name="vpc", required=true)
    private Output vpc;

    /**
     * @return The ID of VPC that you want to associate the namespace with.
     * 
     */
    public Output vpc() {
        return this.vpc;
    }

    private PrivateDnsNamespaceArgs() {}

    private PrivateDnsNamespaceArgs(PrivateDnsNamespaceArgs $) {
        this.description = $.description;
        this.name = $.name;
        this.tags = $.tags;
        this.vpc = $.vpc;
    }

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

    public static final class Builder {
        private PrivateDnsNamespaceArgs $;

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

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

        /**
         * @param description The description that you specify for the namespace when you create it.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description that you specify for the namespace when you create it.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

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

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

        /**
         * @param tags A map of tags to assign to the namespace. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A map of tags to assign to the namespace. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param vpc The ID of VPC that you want to associate the namespace with.
         * 
         * @return builder
         * 
         */
        public Builder vpc(Output vpc) {
            $.vpc = vpc;
            return this;
        }

        /**
         * @param vpc The ID of VPC that you want to associate the namespace with.
         * 
         * @return builder
         * 
         */
        public Builder vpc(String vpc) {
            return vpc(Output.of(vpc));
        }

        public PrivateDnsNamespaceArgs build() {
            if ($.vpc == null) {
                throw new MissingRequiredPropertyException("PrivateDnsNamespaceArgs", "vpc");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy