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

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

There is a newer version: 2.72.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.HealthProbeParametersArgs;
import com.pulumi.azurenative.cdn.inputs.ResourceReferenceArgs;
import com.pulumi.azurenative.cdn.inputs.ResponseBasedOriginErrorDetectionParametersArgs;
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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final OriginGroupArgs Empty = new OriginGroupArgs();

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

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

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

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

    /**
     * The source of the content being delivered via CDN within given origin group.
     * 
     */
    @Import(name="origins", required=true)
    private Output> origins;

    /**
     * @return The source of the content being delivered via CDN within given origin group.
     * 
     */
    public Output> origins() {
        return this.origins;
    }

    /**
     * Name of the CDN profile which is unique within the resource group.
     * 
     */
    @Import(name="profileName", required=true)
    private Output profileName;

    /**
     * @return Name of the CDN 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 JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported.
     * 
     */
    @Import(name="responseBasedOriginErrorDetectionSettings")
    private @Nullable Output responseBasedOriginErrorDetectionSettings;

    /**
     * @return The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported.
     * 
     */
    public Optional> responseBasedOriginErrorDetectionSettings() {
        return Optional.ofNullable(this.responseBasedOriginErrorDetectionSettings);
    }

    /**
     * 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 OriginGroupArgs() {}

    private OriginGroupArgs(OriginGroupArgs $) {
        this.endpointName = $.endpointName;
        this.healthProbeSettings = $.healthProbeSettings;
        this.originGroupName = $.originGroupName;
        this.origins = $.origins;
        this.profileName = $.profileName;
        this.resourceGroupName = $.resourceGroupName;
        this.responseBasedOriginErrorDetectionSettings = $.responseBasedOriginErrorDetectionSettings;
        this.trafficRestorationTimeToHealedOrNewEndpointsInMinutes = $.trafficRestorationTimeToHealedOrNewEndpointsInMinutes;
    }

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

    public static final class Builder {
        private OriginGroupArgs $;

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

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

        /**
         * @param endpointName Name of the endpoint under the profile which is unique globally.
         * 
         * @return builder
         * 
         */
        public Builder endpointName(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 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 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 origins The source of the content being delivered via CDN within given origin group.
         * 
         * @return builder
         * 
         */
        public Builder origins(Output> origins) {
            $.origins = origins;
            return this;
        }

        /**
         * @param origins The source of the content being delivered via CDN within given origin group.
         * 
         * @return builder
         * 
         */
        public Builder origins(List origins) {
            return origins(Output.of(origins));
        }

        /**
         * @param origins The source of the content being delivered via CDN within given origin group.
         * 
         * @return builder
         * 
         */
        public Builder origins(ResourceReferenceArgs... origins) {
            return origins(List.of(origins));
        }

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

        /**
         * @param profileName Name of the CDN 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 responseBasedOriginErrorDetectionSettings The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported.
         * 
         * @return builder
         * 
         */
        public Builder responseBasedOriginErrorDetectionSettings(@Nullable Output responseBasedOriginErrorDetectionSettings) {
            $.responseBasedOriginErrorDetectionSettings = responseBasedOriginErrorDetectionSettings;
            return this;
        }

        /**
         * @param responseBasedOriginErrorDetectionSettings The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported.
         * 
         * @return builder
         * 
         */
        public Builder responseBasedOriginErrorDetectionSettings(ResponseBasedOriginErrorDetectionParametersArgs responseBasedOriginErrorDetectionSettings) {
            return responseBasedOriginErrorDetectionSettings(Output.of(responseBasedOriginErrorDetectionSettings));
        }

        /**
         * @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 OriginGroupArgs build() {
            if ($.endpointName == null) {
                throw new MissingRequiredPropertyException("OriginGroupArgs", "endpointName");
            }
            if ($.origins == null) {
                throw new MissingRequiredPropertyException("OriginGroupArgs", "origins");
            }
            if ($.profileName == null) {
                throw new MissingRequiredPropertyException("OriginGroupArgs", "profileName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("OriginGroupArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy