Class UrlFileNameMatchConditionParameters
java.lang.Object
com.azure.resourcemanager.cdn.models.UrlFileNameMatchConditionParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UrlFileNameMatchConditionParameters>
public final class UrlFileNameMatchConditionParameters
extends Object
implements com.azure.json.JsonSerializable<UrlFileNameMatchConditionParameters>
Defines the parameters for UrlFilename match conditions.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of UrlFileNameMatchConditionParameters class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UrlFileNameMatchConditionParameters from the JsonReader.Get the matchValues property: The match value for the condition of the delivery rule.Get the negateCondition property: Describes if this is negate condition or not.operator()Get the operator property: Describes operator to be matched.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the transforms property: List of transforms.typeName()Get the typeName property: The typeName property.voidvalidate()Validates the instance.withMatchValues(List<String> matchValues) Set the matchValues property: The match value for the condition of the delivery rule.withNegateCondition(Boolean negateCondition) Set the negateCondition property: Describes if this is negate condition or not.withOperator(UrlFileNameOperator operator) Set the operator property: Describes operator to be matched.withTransforms(List<Transform> transforms) Set the transforms property: List of transforms.withTypeName(String typeName) Set the typeName property: The typeName property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
UrlFileNameMatchConditionParameters
public UrlFileNameMatchConditionParameters()Creates an instance of UrlFileNameMatchConditionParameters class.
-
-
Method Details
-
typeName
Get the typeName property: The typeName property.- Returns:
- the typeName value.
-
withTypeName
Set the typeName property: The typeName property.- Parameters:
typeName- the typeName value to set.- Returns:
- the UrlFileNameMatchConditionParameters object itself.
-
operator
Get the operator property: Describes operator to be matched.- Returns:
- the operator value.
-
withOperator
Set the operator property: Describes operator to be matched.- Parameters:
operator- the operator value to set.- Returns:
- the UrlFileNameMatchConditionParameters object itself.
-
negateCondition
Get the negateCondition property: Describes if this is negate condition or not.- Returns:
- the negateCondition value.
-
withNegateCondition
Set the negateCondition property: Describes if this is negate condition or not.- Parameters:
negateCondition- the negateCondition value to set.- Returns:
- the UrlFileNameMatchConditionParameters object itself.
-
matchValues
Get the matchValues property: The match value for the condition of the delivery rule.- Returns:
- the matchValues value.
-
withMatchValues
Set the matchValues property: The match value for the condition of the delivery rule.- Parameters:
matchValues- the matchValues value to set.- Returns:
- the UrlFileNameMatchConditionParameters object itself.
-
transforms
Get the transforms property: List of transforms.- Returns:
- the transforms value.
-
withTransforms
Set the transforms property: List of transforms.- Parameters:
transforms- the transforms value to set.- Returns:
- the UrlFileNameMatchConditionParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<UrlFileNameMatchConditionParameters>- Throws:
IOException
-
fromJson
public static UrlFileNameMatchConditionParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UrlFileNameMatchConditionParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UrlFileNameMatchConditionParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the UrlFileNameMatchConditionParameters.
-