HeaderMatch Class
- java.
lang. Object - com.
azure. resourcemanager. appcontainers. models. HeaderMatch
- com.
Implements
public final class HeaderMatch
implements JsonSerializable<HeaderMatch>
Conditions required to match a header.
Constructor Summary
| Constructor | Description |
|---|---|
| HeaderMatch() |
Creates an instance of Header |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
exactMatch()
Get the exact |
|
static
Header |
fromJson(JsonReader jsonReader)
Reads an instance of Header |
| String |
headerProperty()
Get the header |
| String |
prefixMatch()
Get the prefix |
| String |
regexMatch()
Get the regex |
| String |
suffixMatch()
Get the suffix |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Header |
withExactMatch(String exactMatch)
Set the exact |
|
Header |
withHeaderProperty(String headerProperty)
Set the header |
|
Header |
withPrefixMatch(String prefixMatch)
Set the prefix |
|
Header |
withRegexMatch(String regexMatch)
Set the regex |
|
Header |
withSuffixMatch(String suffixMatch)
Set the suffix |
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:
fromJson
public static HeaderMatch fromJson(JsonReader jsonReader)
Reads an instance of HeaderMatch from the JsonReader.
Parameters:
Returns:
Throws:
headerProperty
public String headerProperty()
Get the headerProperty property: Name of the header.
Returns:
prefixMatch
public String prefixMatch()
Get the prefixMatch property: Prefix value of the header.
Returns:
regexMatch
public String regexMatch()
Get the regexMatch property: Regex value of the header.
Returns:
suffixMatch
public String suffixMatch()
Get the suffixMatch property: Suffix value of the header.
Returns:
toJson
validate
public void validate()
Validates the instance.
withExactMatch
public HeaderMatch withExactMatch(String exactMatch)
Set the exactMatch property: Exact value of the header.
Parameters:
Returns:
withHeaderProperty
public HeaderMatch withHeaderProperty(String headerProperty)
Set the headerProperty property: Name of the header.
Parameters:
Returns:
withPrefixMatch
public HeaderMatch withPrefixMatch(String prefixMatch)
Set the prefixMatch property: Prefix value of the header.
Parameters:
Returns:
withRegexMatch
public HeaderMatch withRegexMatch(String regexMatch)
Set the regexMatch property: Regex value of the header.
Parameters:
Returns:
withSuffixMatch
public HeaderMatch withSuffixMatch(String suffixMatch)
Set the suffixMatch property: Suffix value of the header.
Parameters:
Returns: