Class OriginGroupProperties
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.OriginGroupUpdatePropertiesParameters
-
- com.azure.resourcemanager.cdn.models.OriginGroupProperties
-
public final class OriginGroupProperties extends OriginGroupUpdatePropertiesParameters
The JSON object that contains the properties of the origin group.
-
-
Constructor Summary
Constructors Constructor Description OriginGroupProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringprovisioningState()Get the provisioningState property: Provisioning status of the origin group.OriginGroupResourceStateresourceState()Get the resourceState property: Resource status of the origin group.voidvalidate()Validates the instance.OriginGroupPropertieswithHealthProbeSettings(HealthProbeParameters healthProbeSettings)Set the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.OriginGroupPropertieswithOrigins(List<ResourceReference> origins)Set the origins property: The source of the content being delivered via CDN within given origin group.OriginGroupPropertieswithResponseBasedOriginErrorDetectionSettings(ResponseBasedOriginErrorDetectionParameters responseBasedOriginErrorDetectionSettings)Set the responseBasedOriginErrorDetectionSettings property: The JSON object that contains the properties to determine origin health using real requests/responses.OriginGroupPropertieswithTrafficRestorationTimeToHealedOrNewEndpointsInMinutes(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.-
Methods inherited from class com.azure.resourcemanager.cdn.models.OriginGroupUpdatePropertiesParameters
healthProbeSettings, origins, responseBasedOriginErrorDetectionSettings, trafficRestorationTimeToHealedOrNewEndpointsInMinutes
-
-
-
-
Method Detail
-
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.
-
withHealthProbeSettings
public OriginGroupProperties withHealthProbeSettings(HealthProbeParameters healthProbeSettings)
Set the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.- Overrides:
withHealthProbeSettingsin classOriginGroupUpdatePropertiesParameters- Parameters:
healthProbeSettings- the healthProbeSettings value to set.- Returns:
- the OriginGroupUpdatePropertiesParameters object itself.
-
withOrigins
public OriginGroupProperties withOrigins(List<ResourceReference> origins)
Set the origins property: The source of the content being delivered via CDN within given origin group.- Overrides:
withOriginsin classOriginGroupUpdatePropertiesParameters- Parameters:
origins- the origins value to set.- Returns:
- the OriginGroupUpdatePropertiesParameters object itself.
-
withTrafficRestorationTimeToHealedOrNewEndpointsInMinutes
public OriginGroupProperties 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.- Overrides:
withTrafficRestorationTimeToHealedOrNewEndpointsInMinutesin classOriginGroupUpdatePropertiesParameters- Parameters:
trafficRestorationTimeToHealedOrNewEndpointsInMinutes- the trafficRestorationTimeToHealedOrNewEndpointsInMinutes value to set.- Returns:
- the OriginGroupUpdatePropertiesParameters object itself.
-
withResponseBasedOriginErrorDetectionSettings
public OriginGroupProperties 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.- Overrides:
withResponseBasedOriginErrorDetectionSettingsin classOriginGroupUpdatePropertiesParameters- Parameters:
responseBasedOriginErrorDetectionSettings- the responseBasedOriginErrorDetectionSettings value to set.- Returns:
- the OriginGroupUpdatePropertiesParameters object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classOriginGroupUpdatePropertiesParameters- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-