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

com.pulumi.azurenative.cdn.outputs.DeepCreatedOriginGroupResponse Maven / Gradle / Ivy

There is a newer version: 2.82.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.outputs;

import com.pulumi.azurenative.cdn.outputs.HealthProbeParametersResponse;
import com.pulumi.azurenative.cdn.outputs.ResourceReferenceResponse;
import com.pulumi.azurenative.cdn.outputs.ResponseBasedOriginErrorDetectionParametersResponse;
import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class DeepCreatedOriginGroupResponse {
    /**
     * @return Health probe settings to the origin that is used to determine the health of the origin.
     * 
     */
    private @Nullable HealthProbeParametersResponse healthProbeSettings;
    /**
     * @return Origin group name which must be unique within the endpoint.
     * 
     */
    private String name;
    /**
     * @return The source of the content being delivered via CDN within given origin group.
     * 
     */
    private List origins;
    /**
     * @return The JSON object that contains the properties to determine origin health using real requests/responses.This property is currently not supported.
     * 
     */
    private @Nullable ResponseBasedOriginErrorDetectionParametersResponse responseBasedOriginErrorDetectionSettings;
    /**
     * @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.
     * 
     */
    private @Nullable Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes;

    private DeepCreatedOriginGroupResponse() {}
    /**
     * @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);
    }
    /**
     * @return Origin group name which must be unique within the endpoint.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The source of the content being delivered via CDN within given origin group.
     * 
     */
    public List origins() {
        return this.origins;
    }
    /**
     * @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);
    }
    /**
     * @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);
    }

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

    public static Builder builder(DeepCreatedOriginGroupResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable HealthProbeParametersResponse healthProbeSettings;
        private String name;
        private List origins;
        private @Nullable ResponseBasedOriginErrorDetectionParametersResponse responseBasedOriginErrorDetectionSettings;
        private @Nullable Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes;
        public Builder() {}
        public Builder(DeepCreatedOriginGroupResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.healthProbeSettings = defaults.healthProbeSettings;
    	      this.name = defaults.name;
    	      this.origins = defaults.origins;
    	      this.responseBasedOriginErrorDetectionSettings = defaults.responseBasedOriginErrorDetectionSettings;
    	      this.trafficRestorationTimeToHealedOrNewEndpointsInMinutes = defaults.trafficRestorationTimeToHealedOrNewEndpointsInMinutes;
        }

        @CustomType.Setter
        public Builder healthProbeSettings(@Nullable HealthProbeParametersResponse healthProbeSettings) {

            this.healthProbeSettings = healthProbeSettings;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("DeepCreatedOriginGroupResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder origins(List origins) {
            if (origins == null) {
              throw new MissingRequiredPropertyException("DeepCreatedOriginGroupResponse", "origins");
            }
            this.origins = origins;
            return this;
        }
        public Builder origins(ResourceReferenceResponse... origins) {
            return origins(List.of(origins));
        }
        @CustomType.Setter
        public Builder responseBasedOriginErrorDetectionSettings(@Nullable ResponseBasedOriginErrorDetectionParametersResponse responseBasedOriginErrorDetectionSettings) {

            this.responseBasedOriginErrorDetectionSettings = responseBasedOriginErrorDetectionSettings;
            return this;
        }
        @CustomType.Setter
        public Builder trafficRestorationTimeToHealedOrNewEndpointsInMinutes(@Nullable Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes) {

            this.trafficRestorationTimeToHealedOrNewEndpointsInMinutes = trafficRestorationTimeToHealedOrNewEndpointsInMinutes;
            return this;
        }
        public DeepCreatedOriginGroupResponse build() {
            final var _resultValue = new DeepCreatedOriginGroupResponse();
            _resultValue.healthProbeSettings = healthProbeSettings;
            _resultValue.name = name;
            _resultValue.origins = origins;
            _resultValue.responseBasedOriginErrorDetectionSettings = responseBasedOriginErrorDetectionSettings;
            _resultValue.trafficRestorationTimeToHealedOrNewEndpointsInMinutes = trafficRestorationTimeToHealedOrNewEndpointsInMinutes;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy