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

com.pulumi.azurenative.cdn.inputs.DeepCreatedOriginGroupArgs 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.inputs;

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;


/**
 * The origin group for CDN content which is added when creating a CDN endpoint. Traffic is sent to the origins within the origin group based on origin health.
 * 
 */
public final class DeepCreatedOriginGroupArgs extends com.pulumi.resources.ResourceArgs {

    public static final DeepCreatedOriginGroupArgs Empty = new DeepCreatedOriginGroupArgs();

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

    /**
     * Origin group name which must be unique within the endpoint.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Origin group name which must be unique within the endpoint.
     * 
     */
    public Output name() {
        return this.name;
    }

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

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

    private DeepCreatedOriginGroupArgs(DeepCreatedOriginGroupArgs $) {
        this.healthProbeSettings = $.healthProbeSettings;
        this.name = $.name;
        this.origins = $.origins;
        this.responseBasedOriginErrorDetectionSettings = $.responseBasedOriginErrorDetectionSettings;
        this.trafficRestorationTimeToHealedOrNewEndpointsInMinutes = $.trafficRestorationTimeToHealedOrNewEndpointsInMinutes;
    }

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

    public static final class Builder {
        private DeepCreatedOriginGroupArgs $;

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

        public Builder(DeepCreatedOriginGroupArgs defaults) {
            $ = new DeepCreatedOriginGroupArgs(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 name Origin group name which must be unique within the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Origin group name which must be unique within the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy