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

com.pulumi.aws.apigatewayv2.DomainNameArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The 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.aws.apigatewayv2;

import com.pulumi.aws.apigatewayv2.inputs.DomainNameDomainNameConfigurationArgs;
import com.pulumi.aws.apigatewayv2.inputs.DomainNameMutualTlsAuthenticationArgs;
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 DomainNameArgs extends com.pulumi.resources.ResourceArgs {

    public static final DomainNameArgs Empty = new DomainNameArgs();

    /**
     * Domain name. Must be between 1 and 512 characters in length.
     * 
     */
    @Import(name="domainName", required=true)
    private Output domainName;

    /**
     * @return Domain name. Must be between 1 and 512 characters in length.
     * 
     */
    public Output domainName() {
        return this.domainName;
    }

    /**
     * Domain name configuration. See below.
     * 
     */
    @Import(name="domainNameConfiguration", required=true)
    private Output domainNameConfiguration;

    /**
     * @return Domain name configuration. See below.
     * 
     */
    public Output domainNameConfiguration() {
        return this.domainNameConfiguration;
    }

    /**
     * Mutual TLS authentication configuration for the domain name.
     * 
     */
    @Import(name="mutualTlsAuthentication")
    private @Nullable Output mutualTlsAuthentication;

    /**
     * @return Mutual TLS authentication configuration for the domain name.
     * 
     */
    public Optional> mutualTlsAuthentication() {
        return Optional.ofNullable(this.mutualTlsAuthentication);
    }

    /**
     * Map of tags to assign to the domain name. 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 Map of tags to assign to the domain name. 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);
    }

    private DomainNameArgs() {}

    private DomainNameArgs(DomainNameArgs $) {
        this.domainName = $.domainName;
        this.domainNameConfiguration = $.domainNameConfiguration;
        this.mutualTlsAuthentication = $.mutualTlsAuthentication;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private DomainNameArgs $;

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

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

        /**
         * @param domainName Domain name. Must be between 1 and 512 characters in length.
         * 
         * @return builder
         * 
         */
        public Builder domainName(Output domainName) {
            $.domainName = domainName;
            return this;
        }

        /**
         * @param domainName Domain name. Must be between 1 and 512 characters in length.
         * 
         * @return builder
         * 
         */
        public Builder domainName(String domainName) {
            return domainName(Output.of(domainName));
        }

        /**
         * @param domainNameConfiguration Domain name configuration. See below.
         * 
         * @return builder
         * 
         */
        public Builder domainNameConfiguration(Output domainNameConfiguration) {
            $.domainNameConfiguration = domainNameConfiguration;
            return this;
        }

        /**
         * @param domainNameConfiguration Domain name configuration. See below.
         * 
         * @return builder
         * 
         */
        public Builder domainNameConfiguration(DomainNameDomainNameConfigurationArgs domainNameConfiguration) {
            return domainNameConfiguration(Output.of(domainNameConfiguration));
        }

        /**
         * @param mutualTlsAuthentication Mutual TLS authentication configuration for the domain name.
         * 
         * @return builder
         * 
         */
        public Builder mutualTlsAuthentication(@Nullable Output mutualTlsAuthentication) {
            $.mutualTlsAuthentication = mutualTlsAuthentication;
            return this;
        }

        /**
         * @param mutualTlsAuthentication Mutual TLS authentication configuration for the domain name.
         * 
         * @return builder
         * 
         */
        public Builder mutualTlsAuthentication(DomainNameMutualTlsAuthenticationArgs mutualTlsAuthentication) {
            return mutualTlsAuthentication(Output.of(mutualTlsAuthentication));
        }

        /**
         * @param tags Map of tags to assign to the domain name. 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 Map of tags to assign to the domain name. 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));
        }

        public DomainNameArgs build() {
            if ($.domainName == null) {
                throw new MissingRequiredPropertyException("DomainNameArgs", "domainName");
            }
            if ($.domainNameConfiguration == null) {
                throw new MissingRequiredPropertyException("DomainNameArgs", "domainNameConfiguration");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy