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

com.pulumi.azure.appservice.inputs.StaticWebAppCustomDomainState 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.azure.appservice.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final StaticWebAppCustomDomainState Empty = new StaticWebAppCustomDomainState();

    /**
     * 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")
    private @Nullable 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 Optional> domainName() {
        return Optional.ofNullable(this.domainName);
    }

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

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

    /**
     * Token to be used with `dns-txt-token` validation.
     * 
     */
    @Import(name="validationToken")
    private @Nullable Output validationToken;

    /**
     * @return Token to be used with `dns-txt-token` validation.
     * 
     */
    public Optional> validationToken() {
        return Optional.ofNullable(this.validationToken);
    }

    @Import(name="validationType")
    private @Nullable Output validationType;

    public Optional> validationType() {
        return Optional.ofNullable(this.validationType);
    }

    private StaticWebAppCustomDomainState() {}

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

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

    public static final class Builder {
        private StaticWebAppCustomDomainState $;

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

        public Builder(StaticWebAppCustomDomainState defaults) {
            $ = new StaticWebAppCustomDomainState(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(@Nullable 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(@Nullable 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));
        }

        /**
         * @param validationToken Token to be used with `dns-txt-token` validation.
         * 
         * @return builder
         * 
         */
        public Builder validationToken(@Nullable Output validationToken) {
            $.validationToken = validationToken;
            return this;
        }

        /**
         * @param validationToken Token to be used with `dns-txt-token` validation.
         * 
         * @return builder
         * 
         */
        public Builder validationToken(String validationToken) {
            return validationToken(Output.of(validationToken));
        }

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

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

        public StaticWebAppCustomDomainState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy