ApplicationGatewayAdvancedRoutingCondition Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ApplicationGatewayAdvancedRoutingCondition
- com.
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 Application |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Application |
conditionType()
Get the condition |
|
static
Application |
fromJson(JsonReader jsonReader)
Reads an instance of Application |
| String |
propertyName()
Get the property |
|
Application |
propertyValueMatcher()
Get the property |
| List<String> |
propertyValues()
Get the property |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Application |
withConditionType(ApplicationGatewayAdvancedRoutingConditionType conditionType)
Set the condition |
|
Application |
withPropertyName(String propertyName)
Set the property |
|
Application |
withPropertyValueMatcher(ApplicationGatewayAdvancedRoutingPropertyValueMatcher propertyValueMatcher)
Set the property |
|
Application |
withPropertyValues(List<String> propertyValues)
Set the property |
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:
fromJson
public static ApplicationGatewayAdvancedRoutingCondition fromJson(JsonReader jsonReader)
Reads an instance of ApplicationGatewayAdvancedRoutingCondition from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
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:
toJson
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:
Returns:
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:
Returns:
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:
Returns:
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:
Returns: