ApplicationGatewayAdvancedRoutingPropertyValueMatcher Class

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

Implements

public final class ApplicationGatewayAdvancedRoutingPropertyValueMatcher
implements JsonSerializable<ApplicationGatewayAdvancedRoutingPropertyValueMatcher>

Matches the value of a request property against a fixed string or regular expression.

Constructor Summary

Constructor Description
ApplicationGatewayAdvancedRoutingPropertyValueMatcher()

Creates an instance of ApplicationGatewayAdvancedRoutingPropertyValueMatcher class.

Method Summary

Modifier and Type Method and Description
static ApplicationGatewayAdvancedRoutingPropertyValueMatcher fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayAdvancedRoutingPropertyValueMatcher from the JsonReader.

Boolean ignoreCase()

Get the ignoreCase property: Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison.

Boolean negate()

Get the negate property: Setting this value as truth will force to check the negation of the condition given by the user in the pattern field.

String pattern()

Get the pattern property: The pattern, either fixed string or regular expression, that the request property value is evaluated against.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationGatewayAdvancedRoutingPropertyValueMatcher withIgnoreCase(Boolean ignoreCase)

Set the ignoreCase property: Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison.

ApplicationGatewayAdvancedRoutingPropertyValueMatcher withNegate(Boolean negate)

Set the negate property: Setting this value as truth will force to check the negation of the condition given by the user in the pattern field.

ApplicationGatewayAdvancedRoutingPropertyValueMatcher withPattern(String pattern)

Set the pattern property: The pattern, either fixed string or regular expression, that the request property value is evaluated against.

Methods inherited from java.lang.Object

Constructor Details

ApplicationGatewayAdvancedRoutingPropertyValueMatcher

public ApplicationGatewayAdvancedRoutingPropertyValueMatcher()

Creates an instance of ApplicationGatewayAdvancedRoutingPropertyValueMatcher class.

Method Details

fromJson

public static ApplicationGatewayAdvancedRoutingPropertyValueMatcher fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayAdvancedRoutingPropertyValueMatcher from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ignoreCase

public Boolean ignoreCase()

Get the ignoreCase property: Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison.

Returns:

the ignoreCase value.

negate

public Boolean negate()

Get the negate property: Setting this value as truth will force to check the negation of the condition given by the user in the pattern field.

Returns:

the negate value.

pattern

public String pattern()

Get the pattern property: The pattern, either fixed string or regular expression, that the request property value is evaluated against.

Returns:

the pattern value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIgnoreCase

public ApplicationGatewayAdvancedRoutingPropertyValueMatcher withIgnoreCase(Boolean ignoreCase)

Set the ignoreCase property: Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison.

Parameters:

ignoreCase - the ignoreCase value to set.

Returns:

the ApplicationGatewayAdvancedRoutingPropertyValueMatcher object itself.

withNegate

public ApplicationGatewayAdvancedRoutingPropertyValueMatcher withNegate(Boolean negate)

Set the negate property: Setting this value as truth will force to check the negation of the condition given by the user in the pattern field.

Parameters:

negate - the negate value to set.

Returns:

the ApplicationGatewayAdvancedRoutingPropertyValueMatcher object itself.

withPattern

public ApplicationGatewayAdvancedRoutingPropertyValueMatcher withPattern(String pattern)

Set the pattern property: The pattern, either fixed string or regular expression, that the request property value is evaluated against.

Parameters:

pattern - the pattern value to set.

Returns:

the ApplicationGatewayAdvancedRoutingPropertyValueMatcher object itself.

Applies to