Class OriginGroupInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.cdn.fluent.models.OriginGroupInner
-
public class OriginGroupInner extends com.azure.core.management.ProxyResourceOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.
-
-
Constructor Summary
Constructors Constructor Description OriginGroupInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HealthProbeParametershealthProbeSettings()Get the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.List<ResourceReference>origins()Get the origins property: The source of the content being delivered via CDN within given origin group.StringprovisioningState()Get the provisioningState property: Provisioning status of the origin group.OriginGroupResourceStateresourceState()Get the resourceState property: Resource status of the origin group.ResponseBasedOriginErrorDetectionParametersresponseBasedOriginErrorDetectionSettings()Get the responseBasedOriginErrorDetectionSettings property: The JSON object that contains the properties to determine origin health using real requests/responses.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.OriginGroupInnerwithHealthProbeSettings(HealthProbeParameters healthProbeSettings)Set the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.OriginGroupInnerwithOrigins(List<ResourceReference> origins)Set the origins property: The source of the content being delivered via CDN within given origin group.OriginGroupInnerwithResponseBasedOriginErrorDetectionSettings(ResponseBasedOriginErrorDetectionParameters responseBasedOriginErrorDetectionSettings)Set the responseBasedOriginErrorDetectionSettings property: The JSON object that contains the properties to determine origin health using real requests/responses.OriginGroupInnerwithTrafficRestorationTimeToHealedOrNewEndpointsInMinutes(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
-
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 OriginGroupInner 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 OriginGroupInner object itself.
-
origins
public List<ResourceReference> origins()
Get the origins property: The source of the content being delivered via CDN within given origin group.- Returns:
- the origins value.
-
withOrigins
public OriginGroupInner withOrigins(List<ResourceReference> origins)
Set the origins property: The source of the content being delivered via CDN within given origin group.- Parameters:
origins- the origins value to set.- Returns:
- the OriginGroupInner 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 OriginGroupInner 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 OriginGroupInner object itself.
-
responseBasedOriginErrorDetectionSettings
public ResponseBasedOriginErrorDetectionParameters responseBasedOriginErrorDetectionSettings()
Get the responseBasedOriginErrorDetectionSettings property: The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported.- Returns:
- the responseBasedOriginErrorDetectionSettings value.
-
withResponseBasedOriginErrorDetectionSettings
public OriginGroupInner withResponseBasedOriginErrorDetectionSettings(ResponseBasedOriginErrorDetectionParameters responseBasedOriginErrorDetectionSettings)
Set the responseBasedOriginErrorDetectionSettings property: The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported.- Parameters:
responseBasedOriginErrorDetectionSettings- the responseBasedOriginErrorDetectionSettings value to set.- Returns:
- the OriginGroupInner object itself.
-
resourceState
public OriginGroupResourceState resourceState()
Get the resourceState property: Resource status of the origin group.- Returns:
- the resourceState value.
-
provisioningState
public String provisioningState()
Get the provisioningState property: Provisioning status of the origin group.- Returns:
- the provisioningState 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.
-
-