Share via


HeaderMatch Class

  • java.lang.Object
    • com.azure.resourcemanager.appcontainers.models.HeaderMatch

Implements

public final class HeaderMatch
implements JsonSerializable<HeaderMatch>

Conditions required to match a header.

Constructor Summary

Constructor Description
HeaderMatch()

Creates an instance of HeaderMatch class.

Method Summary

Modifier and Type Method and Description
String exactMatch()

Get the exactMatch property: Exact value of the header.

static HeaderMatch fromJson(JsonReader jsonReader)

Reads an instance of HeaderMatch from the JsonReader.

String headerProperty()

Get the headerProperty property: Name of the header.

String prefixMatch()

Get the prefixMatch property: Prefix value of the header.

String regexMatch()

Get the regexMatch property: Regex value of the header.

String suffixMatch()

Get the suffixMatch property: Suffix value of the header.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

HeaderMatch withExactMatch(String exactMatch)

Set the exactMatch property: Exact value of the header.

HeaderMatch withHeaderProperty(String headerProperty)

Set the headerProperty property: Name of the header.

HeaderMatch withPrefixMatch(String prefixMatch)

Set the prefixMatch property: Prefix value of the header.

HeaderMatch withRegexMatch(String regexMatch)

Set the regexMatch property: Regex value of the header.

HeaderMatch withSuffixMatch(String suffixMatch)

Set the suffixMatch property: Suffix value of the header.

Methods inherited from java.lang.Object

Constructor Details

HeaderMatch

public HeaderMatch()

Creates an instance of HeaderMatch class.

Method Details

exactMatch

public String exactMatch()

Get the exactMatch property: Exact value of the header.

Returns:

the exactMatch value.

fromJson

public static HeaderMatch fromJson(JsonReader jsonReader)

Reads an instance of HeaderMatch from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

headerProperty

public String headerProperty()

Get the headerProperty property: Name of the header.

Returns:

the headerProperty value.

prefixMatch

public String prefixMatch()

Get the prefixMatch property: Prefix value of the header.

Returns:

the prefixMatch value.

regexMatch

public String regexMatch()

Get the regexMatch property: Regex value of the header.

Returns:

the regexMatch value.

suffixMatch

public String suffixMatch()

Get the suffixMatch property: Suffix value of the header.

Returns:

the suffixMatch value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withExactMatch

public HeaderMatch withExactMatch(String exactMatch)

Set the exactMatch property: Exact value of the header.

Parameters:

exactMatch - the exactMatch value to set.

Returns:

the HeaderMatch object itself.

withHeaderProperty

public HeaderMatch withHeaderProperty(String headerProperty)

Set the headerProperty property: Name of the header.

Parameters:

headerProperty - the headerProperty value to set.

Returns:

the HeaderMatch object itself.

withPrefixMatch

public HeaderMatch withPrefixMatch(String prefixMatch)

Set the prefixMatch property: Prefix value of the header.

Parameters:

prefixMatch - the prefixMatch value to set.

Returns:

the HeaderMatch object itself.

withRegexMatch

public HeaderMatch withRegexMatch(String regexMatch)

Set the regexMatch property: Regex value of the header.

Parameters:

regexMatch - the regexMatch value to set.

Returns:

the HeaderMatch object itself.

withSuffixMatch

public HeaderMatch withSuffixMatch(String suffixMatch)

Set the suffixMatch property: Suffix value of the header.

Parameters:

suffixMatch - the suffixMatch value to set.

Returns:

the HeaderMatch object itself.

Applies to