Class AfdOriginGroupProperties
java.lang.Object
com.azure.resourcemanager.cdn.fluent.models.AfdOriginGroupUpdatePropertiesParameters
com.azure.resourcemanager.cdn.fluent.models.AfdOriginGroupProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AfdOriginGroupUpdatePropertiesParameters>
The JSON object that contains the properties of the origin group.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AfdOriginGroupProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the deploymentStatus property: The deploymentStatus property.static AfdOriginGroupPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AfdOriginGroupProperties from the JsonReader.Get the profileName property: The name of the profile which holds the origin group.Get the provisioningState property: Provisioning status.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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.withLoadBalancingSettings(LoadBalancingSettingsParameters loadBalancingSettings) Set the loadBalancingSettings property: Load balancing settings for a backend pool.withSessionAffinityState(EnabledState sessionAffinityState) Set the sessionAffinityState property: Whether to allow session affinity on this host.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.Methods inherited from class com.azure.resourcemanager.cdn.fluent.models.AfdOriginGroupUpdatePropertiesParameters
healthProbeSettings, loadBalancingSettings, sessionAffinityState, trafficRestorationTimeToHealedOrNewEndpointsInMinutesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AfdOriginGroupProperties
public AfdOriginGroupProperties()Creates an instance of AfdOriginGroupProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: Provisioning status.- Returns:
- the provisioningState value.
-
deploymentStatus
Get the deploymentStatus property: The deploymentStatus property.- Returns:
- the deploymentStatus value.
-
profileName
Get the profileName property: The name of the profile which holds the origin group.- Overrides:
profileNamein classAfdOriginGroupUpdatePropertiesParameters- Returns:
- the profileName value.
-
withLoadBalancingSettings
public AfdOriginGroupProperties withLoadBalancingSettings(LoadBalancingSettingsParameters loadBalancingSettings) Set the loadBalancingSettings property: Load balancing settings for a backend pool.- Overrides:
withLoadBalancingSettingsin classAfdOriginGroupUpdatePropertiesParameters- Parameters:
loadBalancingSettings- the loadBalancingSettings value to set.- Returns:
- the AfdOriginGroupUpdatePropertiesParameters object itself.
-
withHealthProbeSettings
Set the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.- Overrides:
withHealthProbeSettingsin classAfdOriginGroupUpdatePropertiesParameters- Parameters:
healthProbeSettings- the healthProbeSettings value to set.- Returns:
- the AfdOriginGroupUpdatePropertiesParameters object itself.
-
withTrafficRestorationTimeToHealedOrNewEndpointsInMinutes
public AfdOriginGroupProperties 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 classAfdOriginGroupUpdatePropertiesParameters- Parameters:
trafficRestorationTimeToHealedOrNewEndpointsInMinutes- the trafficRestorationTimeToHealedOrNewEndpointsInMinutes value to set.- Returns:
- the AfdOriginGroupUpdatePropertiesParameters object itself.
-
withSessionAffinityState
Set the sessionAffinityState property: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'.- Overrides:
withSessionAffinityStatein classAfdOriginGroupUpdatePropertiesParameters- Parameters:
sessionAffinityState- the sessionAffinityState value to set.- Returns:
- the AfdOriginGroupUpdatePropertiesParameters object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classAfdOriginGroupUpdatePropertiesParameters- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AfdOriginGroupUpdatePropertiesParameters>- Overrides:
toJsonin classAfdOriginGroupUpdatePropertiesParameters- Throws:
IOException
-
fromJson
public static AfdOriginGroupProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AfdOriginGroupProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AfdOriginGroupProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the AfdOriginGroupProperties.
-