Partilhar via


AfdOriginGroupInner Class

public final class AfdOriginGroupInner
extends ProxyResource

AFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from Azure Front Door.

Constructor Summary

Constructor Description
AfdOriginGroupInner()

Creates an instance of AfdOriginGroupInner class.

Method Summary

Modifier and Type Method and Description
DeploymentStatus deploymentStatus()

Get the deploymentStatus property: The deploymentStatus property.

static AfdOriginGroupInner fromJson(JsonReader jsonReader)

Reads an instance of AfdOriginGroupInner 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.

String id()

Get the id property: Fully qualified resource Id for the resource.

LoadBalancingSettingsParameters loadBalancingSettings()

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

String name()

Get the name property: The name of the resource.

String profileName()

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

AfdProvisioningState provisioningState()

Get the provisioningState property: Provisioning status.

EnabledState sessionAffinityState()

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

SystemData systemData()

Get the systemData property: Read only system data.

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.

String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

AfdOriginGroupInner withHealthProbeSettings(HealthProbeParameters healthProbeSettings)

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

AfdOriginGroupInner withLoadBalancingSettings(LoadBalancingSettingsParameters loadBalancingSettings)

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

AfdOriginGroupInner withSessionAffinityState(EnabledState sessionAffinityState)

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

AfdOriginGroupInner 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 ProxyResource

Methods inherited from java.lang.Object

Constructor Details

AfdOriginGroupInner

public AfdOriginGroupInner()

Creates an instance of AfdOriginGroupInner class.

Method Details

deploymentStatus

public DeploymentStatus deploymentStatus()

Get the deploymentStatus property: The deploymentStatus property.

Returns:

the deploymentStatus value.

fromJson

public static AfdOriginGroupInner fromJson(JsonReader jsonReader)

Reads an instance of AfdOriginGroupInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AfdOriginGroupInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

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.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

AfdOriginGroupInner.id()

Returns:

the id value.

loadBalancingSettings

public LoadBalancingSettingsParameters loadBalancingSettings()

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

Returns:

the loadBalancingSettings value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

AfdOriginGroupInner.name()

Returns:

the name value.

profileName

public String profileName()

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

Returns:

the profileName value.

provisioningState

public AfdProvisioningState provisioningState()

Get the provisioningState property: Provisioning status.

Returns:

the provisioningState 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.

systemData

public SystemData systemData()

Get the systemData property: Read only system data.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AfdOriginGroupInner.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.

type

public String type()

Get the type property: The type of the resource.

Overrides:

AfdOriginGroupInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withHealthProbeSettings

public AfdOriginGroupInner 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 AfdOriginGroupInner object itself.

withLoadBalancingSettings

public AfdOriginGroupInner withLoadBalancingSettings(LoadBalancingSettingsParameters loadBalancingSettings)

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

Parameters:

loadBalancingSettings - the loadBalancingSettings value to set.

Returns:

the AfdOriginGroupInner object itself.

withSessionAffinityState

public AfdOriginGroupInner 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 AfdOriginGroupInner object itself.

withTrafficRestorationTimeToHealedOrNewEndpointsInMinutes

public AfdOriginGroupInner 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 AfdOriginGroupInner object itself.

Applies to