AfdOriginGroupProperties Class

public final class AfdOriginGroupProperties
extends AfdOriginGroupUpdatePropertiesParameters

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

Constructor Summary

Constructor Description
AfdOriginGroupProperties()

Creates an instance of AfdOriginGroupProperties class.

Method Summary

Modifier and Type Method and Description
DeploymentStatus deploymentStatus()

Get the deploymentStatus property: The deploymentStatus property.

static AfdOriginGroupProperties fromJson(JsonReader jsonReader)

Reads an instance of AfdOriginGroupProperties from the JsonReader.

String profileName()

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

AfdProvisioningState provisioningState()

Get the provisioningState property: Provisioning status.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AfdOriginGroupProperties withHealthProbeSettings(HealthProbeParameters healthProbeSettings)

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

AfdOriginGroupProperties withLoadBalancingSettings(LoadBalancingSettingsParameters loadBalancingSettings)

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

AfdOriginGroupProperties withSessionAffinityState(EnabledState sessionAffinityState)

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

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.

Methods inherited from AfdOriginGroupUpdatePropertiesParameters

Methods inherited from java.lang.Object

Constructor Details

AfdOriginGroupProperties

public AfdOriginGroupProperties()

Creates an instance of AfdOriginGroupProperties class.

Method Details

deploymentStatus

public DeploymentStatus deploymentStatus()

Get the deploymentStatus property: The deploymentStatus property.

Returns:

the deploymentStatus value.

fromJson

public static AfdOriginGroupProperties fromJson(JsonReader jsonReader)

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.

profileName

public String profileName()

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

Overrides:

AfdOriginGroupProperties.profileName()

Returns:

the profileName value.

provisioningState

public AfdProvisioningState provisioningState()

Get the provisioningState property: Provisioning status.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AfdOriginGroupProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

AfdOriginGroupProperties.validate()

withHealthProbeSettings

public AfdOriginGroupProperties withHealthProbeSettings(HealthProbeParameters healthProbeSettings)

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

Overrides:

AfdOriginGroupProperties.withHealthProbeSettings(HealthProbeParameters healthProbeSettings)

Parameters:

healthProbeSettings

withLoadBalancingSettings

public AfdOriginGroupProperties withLoadBalancingSettings(LoadBalancingSettingsParameters loadBalancingSettings)

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

Overrides:

AfdOriginGroupProperties.withLoadBalancingSettings(LoadBalancingSettingsParameters loadBalancingSettings)

Parameters:

loadBalancingSettings

withSessionAffinityState

public AfdOriginGroupProperties withSessionAffinityState(EnabledState sessionAffinityState)

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

Overrides:

AfdOriginGroupProperties.withSessionAffinityState(EnabledState sessionAffinityState)

Parameters:

sessionAffinityState

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:

AfdOriginGroupProperties.withTrafficRestorationTimeToHealedOrNewEndpointsInMinutes(Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes)

Parameters:

trafficRestorationTimeToHealedOrNewEndpointsInMinutes

Applies to