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

com.pulumi.azure.appservice.StaticWebAppCustomDomainArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.appservice;

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

    public static final StaticWebAppCustomDomainArgs Empty = new StaticWebAppCustomDomainArgs();

    /**
     * The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created.
     * 
     */
    @Import(name="domainName", required=true)
    private Output domainName;

    /**
     * @return The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created.
     * 
     */
    public Output domainName() {
        return this.domainName;
    }

    /**
     * The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
     * 
     */
    @Import(name="staticWebAppId", required=true)
    private Output staticWebAppId;

    /**
     * @return The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
     * 
     */
    public Output staticWebAppId() {
        return this.staticWebAppId;
    }

    @Import(name="validationType", required=true)
    private Output validationType;

    public Output validationType() {
        return this.validationType;
    }

    private StaticWebAppCustomDomainArgs() {}

    private StaticWebAppCustomDomainArgs(StaticWebAppCustomDomainArgs $) {
        this.domainName = $.domainName;
        this.staticWebAppId = $.staticWebAppId;
        this.validationType = $.validationType;
    }

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

    public static final class Builder {
        private StaticWebAppCustomDomainArgs $;

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

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

        /**
         * @param domainName The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created.
         * 
         * @return builder
         * 
         */
        public Builder domainName(Output domainName) {
            $.domainName = domainName;
            return this;
        }

        /**
         * @param domainName The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created.
         * 
         * @return builder
         * 
         */
        public Builder domainName(String domainName) {
            return domainName(Output.of(domainName));
        }

        /**
         * @param staticWebAppId The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
         * 
         * @return builder
         * 
         */
        public Builder staticWebAppId(Output staticWebAppId) {
            $.staticWebAppId = staticWebAppId;
            return this;
        }

        /**
         * @param staticWebAppId The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
         * 
         * @return builder
         * 
         */
        public Builder staticWebAppId(String staticWebAppId) {
            return staticWebAppId(Output.of(staticWebAppId));
        }

        public Builder validationType(Output validationType) {
            $.validationType = validationType;
            return this;
        }

        public Builder validationType(String validationType) {
            return validationType(Output.of(validationType));
        }

        public StaticWebAppCustomDomainArgs build() {
            if ($.domainName == null) {
                throw new MissingRequiredPropertyException("StaticWebAppCustomDomainArgs", "domainName");
            }
            if ($.staticWebAppId == null) {
                throw new MissingRequiredPropertyException("StaticWebAppCustomDomainArgs", "staticWebAppId");
            }
            if ($.validationType == null) {
                throw new MissingRequiredPropertyException("StaticWebAppCustomDomainArgs", "validationType");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy