Class AfdOriginGroupInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.cdn.fluent.models.AfdOriginGroupInner
-
public class AfdOriginGroupInner extends com.azure.core.management.ProxyResourceAFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.
-
-
Constructor Summary
Constructors Constructor Description AfdOriginGroupInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeploymentStatusdeploymentStatus()Get the deploymentStatus property: The deploymentStatus property.HealthProbeParametershealthProbeSettings()Get the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.LoadBalancingSettingsParametersloadBalancingSettings()Get the loadBalancingSettings property: Load balancing settings for a backend pool.AfdProvisioningStateprovisioningState()Get the provisioningState property: Provisioning status.ResponseBasedOriginErrorDetectionParametersresponseBasedAfdOriginErrorDetectionSettings()Get the responseBasedAfdOriginErrorDetectionSettings property: The JSON object that contains the properties to determine origin health using real requests/responses.EnabledStatesessionAffinityState()Get the sessionAffinityState property: Whether to allow session affinity on this host.SystemDatasystemData()Get the systemData property: Read only system data.IntegertrafficRestorationTimeToHealedOrNewEndpointsInMinutes()Get the trafficRestorationTimeToHealedOrNewEndpointsInMinutes property: Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added.voidvalidate()Validates the instance.AfdOriginGroupInnerwithHealthProbeSettings(HealthProbeParameters healthProbeSettings)Set the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.AfdOriginGroupInnerwithLoadBalancingSettings(LoadBalancingSettingsParameters loadBalancingSettings)Set the loadBalancingSettings property: Load balancing settings for a backend pool.AfdOriginGroupInnerwithResponseBasedAfdOriginErrorDetectionSettings(ResponseBasedOriginErrorDetectionParameters responseBasedAfdOriginErrorDetectionSettings)Set the responseBasedAfdOriginErrorDetectionSettings property: The JSON object that contains the properties to determine origin health using real requests/responses.AfdOriginGroupInnerwithSessionAffinityState(EnabledState sessionAffinityState)Set the sessionAffinityState property: Whether to allow session affinity on this host.AfdOriginGroupInnerwithTrafficRestorationTimeToHealedOrNewEndpointsInMinutes(Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes)Set the trafficRestorationTimeToHealedOrNewEndpointsInMinutes property: Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added.
-
-
-
Method Detail
-
loadBalancingSettings
public LoadBalancingSettingsParameters loadBalancingSettings()
Get the loadBalancingSettings property: Load balancing settings for a backend pool.- Returns:
- the loadBalancingSettings value.
-
withLoadBalancingSettings
public AfdOriginGroupInner withLoadBalancingSettings(LoadBalancingSettingsParameters loadBalancingSettings)
Set the loadBalancingSettings property: Load balancing settings for a backend pool.- Parameters:
loadBalancingSettings- the loadBalancingSettings value to set.- Returns:
- the AfdOriginGroupInner object itself.
-
healthProbeSettings
public HealthProbeParameters healthProbeSettings()
Get the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.- Returns:
- the healthProbeSettings value.
-
withHealthProbeSettings
public AfdOriginGroupInner withHealthProbeSettings(HealthProbeParameters healthProbeSettings)
Set the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.- Parameters:
healthProbeSettings- the healthProbeSettings value to set.- Returns:
- the AfdOriginGroupInner object itself.
-
trafficRestorationTimeToHealedOrNewEndpointsInMinutes
public Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes()
Get the trafficRestorationTimeToHealedOrNewEndpointsInMinutes property: 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.- Returns:
- the trafficRestorationTimeToHealedOrNewEndpointsInMinutes value.
-
withTrafficRestorationTimeToHealedOrNewEndpointsInMinutes
public AfdOriginGroupInner withTrafficRestorationTimeToHealedOrNewEndpointsInMinutes(Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes)
Set the trafficRestorationTimeToHealedOrNewEndpointsInMinutes property: 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.- Parameters:
trafficRestorationTimeToHealedOrNewEndpointsInMinutes- the trafficRestorationTimeToHealedOrNewEndpointsInMinutes value to set.- Returns:
- the AfdOriginGroupInner object itself.
-
responseBasedAfdOriginErrorDetectionSettings
public ResponseBasedOriginErrorDetectionParameters responseBasedAfdOriginErrorDetectionSettings()
Get the responseBasedAfdOriginErrorDetectionSettings property: The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported.- Returns:
- the responseBasedAfdOriginErrorDetectionSettings value.
-
withResponseBasedAfdOriginErrorDetectionSettings
public AfdOriginGroupInner withResponseBasedAfdOriginErrorDetectionSettings(ResponseBasedOriginErrorDetectionParameters responseBasedAfdOriginErrorDetectionSettings)
Set the responseBasedAfdOriginErrorDetectionSettings property: The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported.- Parameters:
responseBasedAfdOriginErrorDetectionSettings- the responseBasedAfdOriginErrorDetectionSettings value to set.- Returns:
- the AfdOriginGroupInner object itself.
-
sessionAffinityState
public EnabledState sessionAffinityState()
Get the sessionAffinityState property: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'.- Returns:
- the sessionAffinityState value.
-
withSessionAffinityState
public AfdOriginGroupInner withSessionAffinityState(EnabledState sessionAffinityState)
Set the sessionAffinityState property: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'.- Parameters:
sessionAffinityState- the sessionAffinityState value to set.- Returns:
- the AfdOriginGroupInner object itself.
-
provisioningState
public AfdProvisioningState provisioningState()
Get the provisioningState property: Provisioning status.- Returns:
- the provisioningState value.
-
deploymentStatus
public DeploymentStatus deploymentStatus()
Get the deploymentStatus property: The deploymentStatus property.- Returns:
- the deploymentStatus value.
-
systemData
public SystemData systemData()
Get the systemData property: Read only system data.- Returns:
- the systemData value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-