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

com.pulumi.azurenative.cdn.AFDOriginGroupArgs 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.EnabledState;
import com.pulumi.azurenative.cdn.inputs.HealthProbeParametersArgs;
import com.pulumi.azurenative.cdn.inputs.LoadBalancingSettingsParametersArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AFDOriginGroupArgs Empty = new AFDOriginGroupArgs();

    /**
     * Health probe settings to the origin that is used to determine the health of the origin.
     * 
     */
    @Import(name="healthProbeSettings")
    private @Nullable Output healthProbeSettings;

    /**
     * @return Health probe settings to the origin that is used to determine the health of the origin.
     * 
     */
    public Optional> healthProbeSettings() {
        return Optional.ofNullable(this.healthProbeSettings);
    }

    /**
     * Load balancing settings for a backend pool
     * 
     */
    @Import(name="loadBalancingSettings")
    private @Nullable Output loadBalancingSettings;

    /**
     * @return Load balancing settings for a backend pool
     * 
     */
    public Optional> loadBalancingSettings() {
        return Optional.ofNullable(this.loadBalancingSettings);
    }

    /**
     * Name of the origin group which is unique within the endpoint.
     * 
     */
    @Import(name="originGroupName")
    private @Nullable Output originGroupName;

    /**
     * @return Name of the origin group which is unique within the endpoint.
     * 
     */
    public Optional> originGroupName() {
        return Optional.ofNullable(this.originGroupName);
    }

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

    /**
     * Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'
     * 
     */
    @Import(name="sessionAffinityState")
    private @Nullable Output> sessionAffinityState;

    /**
     * @return Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'
     * 
     */
    public Optional>> sessionAffinityState() {
        return Optional.ofNullable(this.sessionAffinityState);
    }

    /**
     * Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported.
     * 
     */
    @Import(name="trafficRestorationTimeToHealedOrNewEndpointsInMinutes")
    private @Nullable Output trafficRestorationTimeToHealedOrNewEndpointsInMinutes;

    /**
     * @return Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported.
     * 
     */
    public Optional> trafficRestorationTimeToHealedOrNewEndpointsInMinutes() {
        return Optional.ofNullable(this.trafficRestorationTimeToHealedOrNewEndpointsInMinutes);
    }

    private AFDOriginGroupArgs() {}

    private AFDOriginGroupArgs(AFDOriginGroupArgs $) {
        this.healthProbeSettings = $.healthProbeSettings;
        this.loadBalancingSettings = $.loadBalancingSettings;
        this.originGroupName = $.originGroupName;
        this.profileName = $.profileName;
        this.resourceGroupName = $.resourceGroupName;
        this.sessionAffinityState = $.sessionAffinityState;
        this.trafficRestorationTimeToHealedOrNewEndpointsInMinutes = $.trafficRestorationTimeToHealedOrNewEndpointsInMinutes;
    }

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

    public static final class Builder {
        private AFDOriginGroupArgs $;

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

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

        /**
         * @param healthProbeSettings Health probe settings to the origin that is used to determine the health of the origin.
         * 
         * @return builder
         * 
         */
        public Builder healthProbeSettings(@Nullable Output healthProbeSettings) {
            $.healthProbeSettings = healthProbeSettings;
            return this;
        }

        /**
         * @param healthProbeSettings Health probe settings to the origin that is used to determine the health of the origin.
         * 
         * @return builder
         * 
         */
        public Builder healthProbeSettings(HealthProbeParametersArgs healthProbeSettings) {
            return healthProbeSettings(Output.of(healthProbeSettings));
        }

        /**
         * @param loadBalancingSettings Load balancing settings for a backend pool
         * 
         * @return builder
         * 
         */
        public Builder loadBalancingSettings(@Nullable Output loadBalancingSettings) {
            $.loadBalancingSettings = loadBalancingSettings;
            return this;
        }

        /**
         * @param loadBalancingSettings Load balancing settings for a backend pool
         * 
         * @return builder
         * 
         */
        public Builder loadBalancingSettings(LoadBalancingSettingsParametersArgs loadBalancingSettings) {
            return loadBalancingSettings(Output.of(loadBalancingSettings));
        }

        /**
         * @param originGroupName Name of the origin group which is unique within the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder originGroupName(@Nullable Output originGroupName) {
            $.originGroupName = originGroupName;
            return this;
        }

        /**
         * @param originGroupName Name of the origin group which is unique within the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder originGroupName(String originGroupName) {
            return originGroupName(Output.of(originGroupName));
        }

        /**
         * @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 sessionAffinityState Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'
         * 
         * @return builder
         * 
         */
        public Builder sessionAffinityState(@Nullable Output> sessionAffinityState) {
            $.sessionAffinityState = sessionAffinityState;
            return this;
        }

        /**
         * @param sessionAffinityState Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'
         * 
         * @return builder
         * 
         */
        public Builder sessionAffinityState(Either sessionAffinityState) {
            return sessionAffinityState(Output.of(sessionAffinityState));
        }

        /**
         * @param sessionAffinityState Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'
         * 
         * @return builder
         * 
         */
        public Builder sessionAffinityState(String sessionAffinityState) {
            return sessionAffinityState(Either.ofLeft(sessionAffinityState));
        }

        /**
         * @param sessionAffinityState Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'
         * 
         * @return builder
         * 
         */
        public Builder sessionAffinityState(EnabledState sessionAffinityState) {
            return sessionAffinityState(Either.ofRight(sessionAffinityState));
        }

        /**
         * @param trafficRestorationTimeToHealedOrNewEndpointsInMinutes Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported.
         * 
         * @return builder
         * 
         */
        public Builder trafficRestorationTimeToHealedOrNewEndpointsInMinutes(@Nullable Output trafficRestorationTimeToHealedOrNewEndpointsInMinutes) {
            $.trafficRestorationTimeToHealedOrNewEndpointsInMinutes = trafficRestorationTimeToHealedOrNewEndpointsInMinutes;
            return this;
        }

        /**
         * @param trafficRestorationTimeToHealedOrNewEndpointsInMinutes Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported.
         * 
         * @return builder
         * 
         */
        public Builder trafficRestorationTimeToHealedOrNewEndpointsInMinutes(Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes) {
            return trafficRestorationTimeToHealedOrNewEndpointsInMinutes(Output.of(trafficRestorationTimeToHealedOrNewEndpointsInMinutes));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy