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

com.pulumi.azurenative.storage.inputs.CustomDomainArgs Maven / Gradle / Ivy

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.azurenative.storage.inputs;

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


/**
 * The custom domain assigned to this storage account. This can be set via Update.
 * 
 */
public final class CustomDomainArgs extends com.pulumi.resources.ResourceArgs {

    public static final CustomDomainArgs Empty = new CustomDomainArgs();

    /**
     * Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates.
     * 
     */
    @Import(name="useSubDomainName")
    private @Nullable Output useSubDomainName;

    /**
     * @return Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates.
     * 
     */
    public Optional> useSubDomainName() {
        return Optional.ofNullable(this.useSubDomainName);
    }

    private CustomDomainArgs() {}

    private CustomDomainArgs(CustomDomainArgs $) {
        this.name = $.name;
        this.useSubDomainName = $.useSubDomainName;
    }

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

    public static final class Builder {
        private CustomDomainArgs $;

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

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

        /**
         * @param name Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param useSubDomainName Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates.
         * 
         * @return builder
         * 
         */
        public Builder useSubDomainName(@Nullable Output useSubDomainName) {
            $.useSubDomainName = useSubDomainName;
            return this;
        }

        /**
         * @param useSubDomainName Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates.
         * 
         * @return builder
         * 
         */
        public Builder useSubDomainName(Boolean useSubDomainName) {
            return useSubDomainName(Output.of(useSubDomainName));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy