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

com.pulumi.azurenative.cdn.AFDEndpointArgs 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.enums.AutoGeneratedDomainNameLabelScope;
import com.pulumi.azurenative.cdn.enums.EnabledState;
import com.pulumi.core.Either;
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 AFDEndpointArgs extends com.pulumi.resources.ResourceArgs {

    public static final AFDEndpointArgs Empty = new AFDEndpointArgs();

    /**
     * Indicates the endpoint name reuse scope. The default value is TenantReuse.
     * 
     */
    @Import(name="autoGeneratedDomainNameLabelScope")
    private @Nullable Output> autoGeneratedDomainNameLabelScope;

    /**
     * @return Indicates the endpoint name reuse scope. The default value is TenantReuse.
     * 
     */
    public Optional>> autoGeneratedDomainNameLabelScope() {
        return Optional.ofNullable(this.autoGeneratedDomainNameLabelScope);
    }

    /**
     * Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
     * 
     */
    @Import(name="enabledState")
    private @Nullable Output> enabledState;

    /**
     * @return Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
     * 
     */
    public Optional>> enabledState() {
        return Optional.ofNullable(this.enabledState);
    }

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

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

    /**
     * Resource location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Resource location.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * 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;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private AFDEndpointArgs() {}

    private AFDEndpointArgs(AFDEndpointArgs $) {
        this.autoGeneratedDomainNameLabelScope = $.autoGeneratedDomainNameLabelScope;
        this.enabledState = $.enabledState;
        this.endpointName = $.endpointName;
        this.location = $.location;
        this.profileName = $.profileName;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private AFDEndpointArgs $;

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

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

        /**
         * @param autoGeneratedDomainNameLabelScope Indicates the endpoint name reuse scope. The default value is TenantReuse.
         * 
         * @return builder
         * 
         */
        public Builder autoGeneratedDomainNameLabelScope(@Nullable Output> autoGeneratedDomainNameLabelScope) {
            $.autoGeneratedDomainNameLabelScope = autoGeneratedDomainNameLabelScope;
            return this;
        }

        /**
         * @param autoGeneratedDomainNameLabelScope Indicates the endpoint name reuse scope. The default value is TenantReuse.
         * 
         * @return builder
         * 
         */
        public Builder autoGeneratedDomainNameLabelScope(Either autoGeneratedDomainNameLabelScope) {
            return autoGeneratedDomainNameLabelScope(Output.of(autoGeneratedDomainNameLabelScope));
        }

        /**
         * @param autoGeneratedDomainNameLabelScope Indicates the endpoint name reuse scope. The default value is TenantReuse.
         * 
         * @return builder
         * 
         */
        public Builder autoGeneratedDomainNameLabelScope(String autoGeneratedDomainNameLabelScope) {
            return autoGeneratedDomainNameLabelScope(Either.ofLeft(autoGeneratedDomainNameLabelScope));
        }

        /**
         * @param autoGeneratedDomainNameLabelScope Indicates the endpoint name reuse scope. The default value is TenantReuse.
         * 
         * @return builder
         * 
         */
        public Builder autoGeneratedDomainNameLabelScope(AutoGeneratedDomainNameLabelScope autoGeneratedDomainNameLabelScope) {
            return autoGeneratedDomainNameLabelScope(Either.ofRight(autoGeneratedDomainNameLabelScope));
        }

        /**
         * @param enabledState Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
         * 
         * @return builder
         * 
         */
        public Builder enabledState(@Nullable Output> enabledState) {
            $.enabledState = enabledState;
            return this;
        }

        /**
         * @param enabledState Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
         * 
         * @return builder
         * 
         */
        public Builder enabledState(Either enabledState) {
            return enabledState(Output.of(enabledState));
        }

        /**
         * @param enabledState Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
         * 
         * @return builder
         * 
         */
        public Builder enabledState(String enabledState) {
            return enabledState(Either.ofLeft(enabledState));
        }

        /**
         * @param enabledState Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
         * 
         * @return builder
         * 
         */
        public Builder enabledState(EnabledState enabledState) {
            return enabledState(Either.ofRight(enabledState));
        }

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

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

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @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 tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy