ApplicationGatewayLoadDistributionTarget Class

public final class ApplicationGatewayLoadDistributionTarget
extends SubResource

Load Distribution Target of an application gateway.

Constructor Summary

Constructor Description
ApplicationGatewayLoadDistributionTarget()

Creates an instance of ApplicationGatewayLoadDistributionTarget class.

Method Summary

Modifier and Type Method and Description
SubResource backendAddressPool()

Get the backendAddressPool property: Backend address pool resource of the application gateway.

String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static ApplicationGatewayLoadDistributionTarget fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayLoadDistributionTarget from the JsonReader.

String name()

Get the name property: Name of the load distribution policy that is unique within an Application Gateway.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of the resource.

void validate()

Validates the instance.

Integer weightPerServer()

Get the weightPerServer property: Weight per server.

ApplicationGatewayLoadDistributionTarget withBackendAddressPool(SubResource backendAddressPool)

Set the backendAddressPool property: Backend address pool resource of the application gateway.

ApplicationGatewayLoadDistributionTarget withId(String id)
ApplicationGatewayLoadDistributionTarget withName(String name)

Set the name property: Name of the load distribution policy that is unique within an Application Gateway.

ApplicationGatewayLoadDistributionTarget withWeightPerServer(Integer weightPerServer)

Set the weightPerServer property: Weight per server.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

ApplicationGatewayLoadDistributionTarget

public ApplicationGatewayLoadDistributionTarget()

Creates an instance of ApplicationGatewayLoadDistributionTarget class.

Method Details

backendAddressPool

public SubResource backendAddressPool()

Get the backendAddressPool property: Backend address pool resource of the application gateway.

Returns:

the backendAddressPool value.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

fromJson

public static ApplicationGatewayLoadDistributionTarget fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayLoadDistributionTarget from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ApplicationGatewayLoadDistributionTarget 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 ApplicationGatewayLoadDistributionTarget.

name

public String name()

Get the name property: Name of the load distribution policy that is unique within an Application Gateway.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ApplicationGatewayLoadDistributionTarget.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of the resource.

Returns:

the type value.

validate

public void validate()

Validates the instance.

weightPerServer

public Integer weightPerServer()

Get the weightPerServer property: Weight per server. Range between 1 and 100.

Returns:

the weightPerServer value.

withBackendAddressPool

public ApplicationGatewayLoadDistributionTarget withBackendAddressPool(SubResource backendAddressPool)

Set the backendAddressPool property: Backend address pool resource of the application gateway.

Parameters:

backendAddressPool - the backendAddressPool value to set.

Returns:

the ApplicationGatewayLoadDistributionTarget object itself.

withId

public ApplicationGatewayLoadDistributionTarget withId(String id)

Overrides:

ApplicationGatewayLoadDistributionTarget.withId(String id)

Parameters:

id

withName

public ApplicationGatewayLoadDistributionTarget withName(String name)

Set the name property: Name of the load distribution policy that is unique within an Application Gateway.

Parameters:

name - the name value to set.

Returns:

the ApplicationGatewayLoadDistributionTarget object itself.

withWeightPerServer

public ApplicationGatewayLoadDistributionTarget withWeightPerServer(Integer weightPerServer)

Set the weightPerServer property: Weight per server. Range between 1 and 100.

Parameters:

weightPerServer - the weightPerServer value to set.

Returns:

the ApplicationGatewayLoadDistributionTarget object itself.

Applies to