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

com.pulumi.azurenative.cdn.outputs.GetAFDOriginGroupResult 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.LoadBalancingSettingsParametersResponse;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetAFDOriginGroupResult {
    private String deploymentStatus;
    /**
     * @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 Load balancing settings for a backend pool
     * 
     */
    private @Nullable LoadBalancingSettingsParametersResponse loadBalancingSettings;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return The name of the profile which holds the origin group.
     * 
     */
    private String profileName;
    /**
     * @return Provisioning status
     * 
     */
    private String provisioningState;
    /**
     * @return Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'
     * 
     */
    private @Nullable String sessionAffinityState;
    /**
     * @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 GetAFDOriginGroupResult() {}
    public String deploymentStatus() {
        return this.deploymentStatus;
    }
    /**
     * @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 Load balancing settings for a backend pool
     * 
     */
    public Optional loadBalancingSettings() {
        return Optional.ofNullable(this.loadBalancingSettings);
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The name of the profile which holds the origin group.
     * 
     */
    public String profileName() {
        return this.profileName;
    }
    /**
     * @return Provisioning status
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'
     * 
     */
    public Optional sessionAffinityState() {
        return Optional.ofNullable(this.sessionAffinityState);
    }
    /**
     * @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(GetAFDOriginGroupResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String deploymentStatus;
        private @Nullable HealthProbeParametersResponse healthProbeSettings;
        private String id;
        private @Nullable LoadBalancingSettingsParametersResponse loadBalancingSettings;
        private String name;
        private String profileName;
        private String provisioningState;
        private @Nullable String sessionAffinityState;
        private SystemDataResponse systemData;
        private @Nullable Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes;
        private String type;
        public Builder() {}
        public Builder(GetAFDOriginGroupResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.deploymentStatus = defaults.deploymentStatus;
    	      this.healthProbeSettings = defaults.healthProbeSettings;
    	      this.id = defaults.id;
    	      this.loadBalancingSettings = defaults.loadBalancingSettings;
    	      this.name = defaults.name;
    	      this.profileName = defaults.profileName;
    	      this.provisioningState = defaults.provisioningState;
    	      this.sessionAffinityState = defaults.sessionAffinityState;
    	      this.systemData = defaults.systemData;
    	      this.trafficRestorationTimeToHealedOrNewEndpointsInMinutes = defaults.trafficRestorationTimeToHealedOrNewEndpointsInMinutes;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder deploymentStatus(String deploymentStatus) {
            if (deploymentStatus == null) {
              throw new MissingRequiredPropertyException("GetAFDOriginGroupResult", "deploymentStatus");
            }
            this.deploymentStatus = deploymentStatus;
            return this;
        }
        @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("GetAFDOriginGroupResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder loadBalancingSettings(@Nullable LoadBalancingSettingsParametersResponse loadBalancingSettings) {

            this.loadBalancingSettings = loadBalancingSettings;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetAFDOriginGroupResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder profileName(String profileName) {
            if (profileName == null) {
              throw new MissingRequiredPropertyException("GetAFDOriginGroupResult", "profileName");
            }
            this.profileName = profileName;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetAFDOriginGroupResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder sessionAffinityState(@Nullable String sessionAffinityState) {

            this.sessionAffinityState = sessionAffinityState;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetAFDOriginGroupResult", "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("GetAFDOriginGroupResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetAFDOriginGroupResult build() {
            final var _resultValue = new GetAFDOriginGroupResult();
            _resultValue.deploymentStatus = deploymentStatus;
            _resultValue.healthProbeSettings = healthProbeSettings;
            _resultValue.id = id;
            _resultValue.loadBalancingSettings = loadBalancingSettings;
            _resultValue.name = name;
            _resultValue.profileName = profileName;
            _resultValue.provisioningState = provisioningState;
            _resultValue.sessionAffinityState = sessionAffinityState;
            _resultValue.systemData = systemData;
            _resultValue.trafficRestorationTimeToHealedOrNewEndpointsInMinutes = trafficRestorationTimeToHealedOrNewEndpointsInMinutes;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy