AfdOriginGroupUpdatePropertiesParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.fluent.models.AfdOriginGroupUpdatePropertiesParameters

Implements

public class AfdOriginGroupUpdatePropertiesParameters
implements JsonSerializable<AfdOriginGroupUpdatePropertiesParameters>

The JSON object that contains the properties of the origin group.

Constructor Summary

Constructor Description
AfdOriginGroupUpdatePropertiesParameters()

Creates an instance of AfdOriginGroupUpdatePropertiesParameters class.

Method Summary

Modifier and Type Method and Description
static AfdOriginGroupUpdatePropertiesParameters fromJson(JsonReader jsonReader)

Reads an instance of AfdOriginGroupUpdatePropertiesParameters from the JsonReader.

HealthProbeParameters healthProbeSettings()

Get the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.

LoadBalancingSettingsParameters loadBalancingSettings()

Get the loadBalancingSettings property: Load balancing settings for a backend pool.

String profileName()

Get the profileName property: The name of the profile which holds the origin group.

EnabledState sessionAffinityState()

Get the sessionAffinityState property: Whether to allow session affinity on this host.

JsonWriter toJson(JsonWriter jsonWriter)
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.

void validate()

Validates the instance.

AfdOriginGroupUpdatePropertiesParameters withHealthProbeSettings(HealthProbeParameters healthProbeSettings)

Set the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.

AfdOriginGroupUpdatePropertiesParameters withLoadBalancingSettings(LoadBalancingSettingsParameters loadBalancingSettings)

Set the loadBalancingSettings property: Load balancing settings for a backend pool.

AfdOriginGroupUpdatePropertiesParameters withSessionAffinityState(EnabledState sessionAffinityState)

Set the sessionAffinityState property: Whether to allow session affinity on this host.

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.

Methods inherited from java.lang.Object

Constructor Details

AfdOriginGroupUpdatePropertiesParameters

public AfdOriginGroupUpdatePropertiesParameters()

Creates an instance of AfdOriginGroupUpdatePropertiesParameters class.

Method Details

fromJson

public static AfdOriginGroupUpdatePropertiesParameters fromJson(JsonReader jsonReader)

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.

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.

loadBalancingSettings

public LoadBalancingSettingsParameters loadBalancingSettings()

Get the loadBalancingSettings property: Load balancing settings for a backend pool.

Returns:

the loadBalancingSettings value.

profileName

public String profileName()

Get the profileName property: The name of the profile which holds the origin group.

Returns:

the profileName value.

sessionAffinityState

public EnabledState sessionAffinityState()

Get the sessionAffinityState property: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'.

Returns:

the sessionAffinityState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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.

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

Applies to