ApplicationGatewayAdvancedRoutingCondition Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ApplicationGatewayAdvancedRoutingCondition

Implements

public final class ApplicationGatewayAdvancedRoutingCondition
implements JsonSerializable<ApplicationGatewayAdvancedRoutingCondition>

A condition evaluated as part of an advanced routing condition set.

Constructor Summary

Constructor Description
ApplicationGatewayAdvancedRoutingCondition()

Creates an instance of ApplicationGatewayAdvancedRoutingCondition class.

Method Summary

Modifier and Type Method and Description
ApplicationGatewayAdvancedRoutingConditionType conditionType()

Get the conditionType property: The type of request property the condition is evaluated against.

static ApplicationGatewayAdvancedRoutingCondition fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayAdvancedRoutingCondition from the JsonReader.

String propertyName()

Get the propertyName property: Name of the request property the condition is evaluated against.

ApplicationGatewayAdvancedRoutingPropertyValueMatcher propertyValueMatcher()

Get the propertyValueMatcher property: Pattern the request property is matched against.

List<String> propertyValues()

Get the propertyValues property: Values the request property is matched against.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationGatewayAdvancedRoutingCondition withConditionType(ApplicationGatewayAdvancedRoutingConditionType conditionType)

Set the conditionType property: The type of request property the condition is evaluated against.

ApplicationGatewayAdvancedRoutingCondition withPropertyName(String propertyName)

Set the propertyName property: Name of the request property the condition is evaluated against.

ApplicationGatewayAdvancedRoutingCondition withPropertyValueMatcher(ApplicationGatewayAdvancedRoutingPropertyValueMatcher propertyValueMatcher)

Set the propertyValueMatcher property: Pattern the request property is matched against.

ApplicationGatewayAdvancedRoutingCondition withPropertyValues(List<String> propertyValues)

Set the propertyValues property: Values the request property is matched against.

Methods inherited from java.lang.Object

Constructor Details

ApplicationGatewayAdvancedRoutingCondition

public ApplicationGatewayAdvancedRoutingCondition()

Creates an instance of ApplicationGatewayAdvancedRoutingCondition class.

Method Details

conditionType

public ApplicationGatewayAdvancedRoutingConditionType conditionType()

Get the conditionType property: The type of request property the condition is evaluated against.

Returns:

the conditionType value.

fromJson

public static ApplicationGatewayAdvancedRoutingCondition fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayAdvancedRoutingCondition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

propertyName

public String propertyName()

Get the propertyName property: Name of the request property the condition is evaluated against. Required when conditionType is Header or QueryString, and not applicable when conditionType is Path, ClientIP or Method.

Returns:

the propertyName value.

propertyValueMatcher

public ApplicationGatewayAdvancedRoutingPropertyValueMatcher propertyValueMatcher()

Get the propertyValueMatcher property: Pattern the request property is matched against. Exactly one of propertyValues or propertyValueMatcher must be specified. Not applicable when conditionType is ClientIP or Method.

Returns:

the propertyValueMatcher value.

propertyValues

public List<String> propertyValues()

Get the propertyValues property: Values the request property is matched against. Exactly one of propertyValues or propertyValueMatcher must be specified.

Returns:

the propertyValues value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withConditionType

public ApplicationGatewayAdvancedRoutingCondition withConditionType(ApplicationGatewayAdvancedRoutingConditionType conditionType)

Set the conditionType property: The type of request property the condition is evaluated against.

Parameters:

conditionType - the conditionType value to set.

Returns:

the ApplicationGatewayAdvancedRoutingCondition object itself.

withPropertyName

public ApplicationGatewayAdvancedRoutingCondition withPropertyName(String propertyName)

Set the propertyName property: Name of the request property the condition is evaluated against. Required when conditionType is Header or QueryString, and not applicable when conditionType is Path, ClientIP or Method.

Parameters:

propertyName - the propertyName value to set.

Returns:

the ApplicationGatewayAdvancedRoutingCondition object itself.

withPropertyValueMatcher

public ApplicationGatewayAdvancedRoutingCondition withPropertyValueMatcher(ApplicationGatewayAdvancedRoutingPropertyValueMatcher propertyValueMatcher)

Set the propertyValueMatcher property: Pattern the request property is matched against. Exactly one of propertyValues or propertyValueMatcher must be specified. Not applicable when conditionType is ClientIP or Method.

Parameters:

propertyValueMatcher - the propertyValueMatcher value to set.

Returns:

the ApplicationGatewayAdvancedRoutingCondition object itself.

withPropertyValues

public ApplicationGatewayAdvancedRoutingCondition withPropertyValues(List<String> propertyValues)

Set the propertyValues property: Values the request property is matched against. Exactly one of propertyValues or propertyValueMatcher must be specified.

Parameters:

propertyValues - the propertyValues value to set.

Returns:

the ApplicationGatewayAdvancedRoutingCondition object itself.

Applies to