Class OriginGroupUpdateParameters
java.lang.Object
com.azure.resourcemanager.cdn.models.OriginGroupUpdateParameters
Origin group properties needed for origin group creation or update.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OriginGroupUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.origins()Get the origins property: The source of the content being delivered via CDN within given origin group.Get the responseBasedOriginErrorDetectionSettings property: The JSON object that contains the properties to determine origin health using real requests/responses.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.withHealthProbeSettings(HealthProbeParameters healthProbeSettings) Set the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.withOrigins(List<ResourceReference> origins) Set the origins property: The source of the content being delivered via CDN within given origin group.withResponseBasedOriginErrorDetectionSettings(ResponseBasedOriginErrorDetectionParameters responseBasedOriginErrorDetectionSettings) Set the responseBasedOriginErrorDetectionSettings property: The JSON object that contains the properties to determine origin health using real requests/responses.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.
-
Constructor Details
-
OriginGroupUpdateParameters
public OriginGroupUpdateParameters()Creates an instance of OriginGroupUpdateParameters class.
-
-
Method Details
-
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 OriginGroupUpdateParameters 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 OriginGroupUpdateParameters object itself.
-
origins
Get the origins property: The source of the content being delivered via CDN within given origin group.- Returns:
- the origins value.
-
withOrigins
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 OriginGroupUpdateParameters object itself.
-
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 OriginGroupUpdateParameters 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 OriginGroupUpdateParameters object itself.
-
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 OriginGroupUpdateParameters 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 OriginGroupUpdateParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-