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

com.pulumi.azurenative.cdn.outputs.GetOriginGroupResult 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.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.azurenative.cdn.outputs.SystemDataResponse;
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 GetOriginGroupResult {
    /**
     * @return Health probe settings to the origin that is used to determine the health of the origin.
     * 
     */
    private @Nullable HealthProbeParametersResponse healthProbeSettings;
    /**
     * @return Resource ID.
     * 
     */
    private String id;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return The source of the content being delivered via CDN within given origin group.
     * 
     */
    private List origins;
    /**
     * @return Provisioning status of the origin group.
     * 
     */
    private String provisioningState;
    /**
     * @return Resource status of the origin group.
     * 
     */
    private String resourceState;
    /**
     * @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 Read only system data
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @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;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private GetOriginGroupResult() {}
    /**
     * @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 Resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Resource name.
     * 
     */
    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 Provisioning status of the origin group.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Resource status of the origin group.
     * 
     */
    public String resourceState() {
        return this.resourceState;
    }
    /**
     * @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 Read only system data
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @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);
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

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

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

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

            this.responseBasedOriginErrorDetectionSettings = responseBasedOriginErrorDetectionSettings;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetOriginGroupResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder trafficRestorationTimeToHealedOrNewEndpointsInMinutes(@Nullable Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes) {

            this.trafficRestorationTimeToHealedOrNewEndpointsInMinutes = trafficRestorationTimeToHealedOrNewEndpointsInMinutes;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetOriginGroupResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetOriginGroupResult build() {
            final var _resultValue = new GetOriginGroupResult();
            _resultValue.healthProbeSettings = healthProbeSettings;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.origins = origins;
            _resultValue.provisioningState = provisioningState;
            _resultValue.resourceState = resourceState;
            _resultValue.responseBasedOriginErrorDetectionSettings = responseBasedOriginErrorDetectionSettings;
            _resultValue.systemData = systemData;
            _resultValue.trafficRestorationTimeToHealedOrNewEndpointsInMinutes = trafficRestorationTimeToHealedOrNewEndpointsInMinutes;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy