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

com.pulumi.azurenative.cdn.AFDCustomDomainArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.azurenative.cdn;

import com.pulumi.azurenative.cdn.inputs.AFDDomainHttpsParametersArgs;
import com.pulumi.azurenative.cdn.inputs.ResourceReferenceArgs;
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 AFDCustomDomainArgs extends com.pulumi.resources.ResourceArgs {

    public static final AFDCustomDomainArgs Empty = new AFDCustomDomainArgs();

    /**
     * Resource reference to the Azure DNS zone
     * 
     */
    @Import(name="azureDnsZone")
    private @Nullable Output azureDnsZone;

    /**
     * @return Resource reference to the Azure DNS zone
     * 
     */
    public Optional> azureDnsZone() {
        return Optional.ofNullable(this.azureDnsZone);
    }

    /**
     * Name of the domain under the profile which is unique globally
     * 
     */
    @Import(name="customDomainName")
    private @Nullable Output customDomainName;

    /**
     * @return Name of the domain under the profile which is unique globally
     * 
     */
    public Optional> customDomainName() {
        return Optional.ofNullable(this.customDomainName);
    }

    /**
     * Key-Value pair representing migration properties for domains.
     * 
     */
    @Import(name="extendedProperties")
    private @Nullable Output> extendedProperties;

    /**
     * @return Key-Value pair representing migration properties for domains.
     * 
     */
    public Optional>> extendedProperties() {
        return Optional.ofNullable(this.extendedProperties);
    }

    /**
     * The host name of the domain. Must be a domain name.
     * 
     */
    @Import(name="hostName", required=true)
    private Output hostName;

    /**
     * @return The host name of the domain. Must be a domain name.
     * 
     */
    public Output hostName() {
        return this.hostName;
    }

    /**
     * Resource reference to the Azure resource where custom domain ownership was prevalidated
     * 
     */
    @Import(name="preValidatedCustomDomainResourceId")
    private @Nullable Output preValidatedCustomDomainResourceId;

    /**
     * @return Resource reference to the Azure resource where custom domain ownership was prevalidated
     * 
     */
    public Optional> preValidatedCustomDomainResourceId() {
        return Optional.ofNullable(this.preValidatedCustomDomainResourceId);
    }

    /**
     * Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group.
     * 
     */
    @Import(name="profileName", required=true)
    private Output profileName;

    /**
     * @return Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group.
     * 
     */
    public Output profileName() {
        return this.profileName;
    }

    /**
     * Name of the Resource group within the Azure subscription.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the Resource group within the Azure subscription.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default.
     * 
     */
    @Import(name="tlsSettings")
    private @Nullable Output tlsSettings;

    /**
     * @return The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default.
     * 
     */
    public Optional> tlsSettings() {
        return Optional.ofNullable(this.tlsSettings);
    }

    private AFDCustomDomainArgs() {}

    private AFDCustomDomainArgs(AFDCustomDomainArgs $) {
        this.azureDnsZone = $.azureDnsZone;
        this.customDomainName = $.customDomainName;
        this.extendedProperties = $.extendedProperties;
        this.hostName = $.hostName;
        this.preValidatedCustomDomainResourceId = $.preValidatedCustomDomainResourceId;
        this.profileName = $.profileName;
        this.resourceGroupName = $.resourceGroupName;
        this.tlsSettings = $.tlsSettings;
    }

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

    public static final class Builder {
        private AFDCustomDomainArgs $;

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

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

        /**
         * @param azureDnsZone Resource reference to the Azure DNS zone
         * 
         * @return builder
         * 
         */
        public Builder azureDnsZone(@Nullable Output azureDnsZone) {
            $.azureDnsZone = azureDnsZone;
            return this;
        }

        /**
         * @param azureDnsZone Resource reference to the Azure DNS zone
         * 
         * @return builder
         * 
         */
        public Builder azureDnsZone(ResourceReferenceArgs azureDnsZone) {
            return azureDnsZone(Output.of(azureDnsZone));
        }

        /**
         * @param customDomainName Name of the domain under the profile which is unique globally
         * 
         * @return builder
         * 
         */
        public Builder customDomainName(@Nullable Output customDomainName) {
            $.customDomainName = customDomainName;
            return this;
        }

        /**
         * @param customDomainName Name of the domain under the profile which is unique globally
         * 
         * @return builder
         * 
         */
        public Builder customDomainName(String customDomainName) {
            return customDomainName(Output.of(customDomainName));
        }

        /**
         * @param extendedProperties Key-Value pair representing migration properties for domains.
         * 
         * @return builder
         * 
         */
        public Builder extendedProperties(@Nullable Output> extendedProperties) {
            $.extendedProperties = extendedProperties;
            return this;
        }

        /**
         * @param extendedProperties Key-Value pair representing migration properties for domains.
         * 
         * @return builder
         * 
         */
        public Builder extendedProperties(Map extendedProperties) {
            return extendedProperties(Output.of(extendedProperties));
        }

        /**
         * @param hostName The host name of the domain. Must be a domain name.
         * 
         * @return builder
         * 
         */
        public Builder hostName(Output hostName) {
            $.hostName = hostName;
            return this;
        }

        /**
         * @param hostName The host name of the domain. Must be a domain name.
         * 
         * @return builder
         * 
         */
        public Builder hostName(String hostName) {
            return hostName(Output.of(hostName));
        }

        /**
         * @param preValidatedCustomDomainResourceId Resource reference to the Azure resource where custom domain ownership was prevalidated
         * 
         * @return builder
         * 
         */
        public Builder preValidatedCustomDomainResourceId(@Nullable Output preValidatedCustomDomainResourceId) {
            $.preValidatedCustomDomainResourceId = preValidatedCustomDomainResourceId;
            return this;
        }

        /**
         * @param preValidatedCustomDomainResourceId Resource reference to the Azure resource where custom domain ownership was prevalidated
         * 
         * @return builder
         * 
         */
        public Builder preValidatedCustomDomainResourceId(ResourceReferenceArgs preValidatedCustomDomainResourceId) {
            return preValidatedCustomDomainResourceId(Output.of(preValidatedCustomDomainResourceId));
        }

        /**
         * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group.
         * 
         * @return builder
         * 
         */
        public Builder profileName(Output profileName) {
            $.profileName = profileName;
            return this;
        }

        /**
         * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group.
         * 
         * @return builder
         * 
         */
        public Builder profileName(String profileName) {
            return profileName(Output.of(profileName));
        }

        /**
         * @param resourceGroupName Name of the Resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the Resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tlsSettings The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default.
         * 
         * @return builder
         * 
         */
        public Builder tlsSettings(@Nullable Output tlsSettings) {
            $.tlsSettings = tlsSettings;
            return this;
        }

        /**
         * @param tlsSettings The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default.
         * 
         * @return builder
         * 
         */
        public Builder tlsSettings(AFDDomainHttpsParametersArgs tlsSettings) {
            return tlsSettings(Output.of(tlsSettings));
        }

        public AFDCustomDomainArgs build() {
            if ($.hostName == null) {
                throw new MissingRequiredPropertyException("AFDCustomDomainArgs", "hostName");
            }
            if ($.profileName == null) {
                throw new MissingRequiredPropertyException("AFDCustomDomainArgs", "profileName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("AFDCustomDomainArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy