Class AfdOriginGroupUpdatePropertiesParameters
java.lang.Object
com.azure.resourcemanager.cdn.fluent.models.AfdOriginGroupUpdatePropertiesParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AfdOriginGroupUpdatePropertiesParameters>
- Direct Known Subclasses:
AfdOriginGroupProperties
public class AfdOriginGroupUpdatePropertiesParameters
extends Object
implements com.azure.json.JsonSerializable<AfdOriginGroupUpdatePropertiesParameters>
The JSON object that contains the properties of the origin group.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AfdOriginGroupUpdatePropertiesParameters class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AfdOriginGroupUpdatePropertiesParameters from the JsonReader.Get the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.Get the loadBalancingSettings property: Load balancing settings for a backend pool.Get the profileName property: The name of the profile which holds the origin group.Get the sessionAffinityState property: Whether to allow session affinity on this host.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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.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 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
-
AfdOriginGroupUpdatePropertiesParameters
public AfdOriginGroupUpdatePropertiesParameters()Creates an instance of AfdOriginGroupUpdatePropertiesParameters class.
-
-
Method Details
-
profileName
Get the profileName property: The name of the profile which holds the origin group.- Returns:
- the profileName value.
-
loadBalancingSettings
Get the loadBalancingSettings property: Load balancing settings for a backend pool.- Returns:
- the loadBalancingSettings value.
-
withLoadBalancingSettings
public AfdOriginGroupUpdatePropertiesParameters withLoadBalancingSettings(LoadBalancingSettingsParameters loadBalancingSettings) Set the loadBalancingSettings property: Load balancing settings for a backend pool.- Parameters:
loadBalancingSettings- the loadBalancingSettings value to set.- Returns:
- the AfdOriginGroupUpdatePropertiesParameters object itself.
-
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 AfdOriginGroupUpdatePropertiesParameters 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 AfdOriginGroupUpdatePropertiesParameters 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 AfdOriginGroupUpdatePropertiesParameters 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 AfdOriginGroupUpdatePropertiesParameters object itself.
-
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 AfdOriginGroupUpdatePropertiesParameters 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 AfdOriginGroupUpdatePropertiesParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AfdOriginGroupUpdatePropertiesParameters>- Throws:
IOException
-
fromJson
public static AfdOriginGroupUpdatePropertiesParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AfdOriginGroupUpdatePropertiesParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AfdOriginGroupUpdatePropertiesParameters 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 AfdOriginGroupUpdatePropertiesParameters.
-