RequestMethodMatchConditionParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.models.RequestMethodMatchConditionParameters

Implements

public final class RequestMethodMatchConditionParameters
implements JsonSerializable<RequestMethodMatchConditionParameters>

Defines the parameters for RequestMethod match conditions.

Constructor Summary

Constructor Description
RequestMethodMatchConditionParameters()

Creates an instance of RequestMethodMatchConditionParameters class.

Method Summary

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

Reads an instance of RequestMethodMatchConditionParameters from the JsonReader.

List<RequestMethodMatchConditionParametersMatchValuesItem> matchValues()

Get the matchValues property: The match value for the condition of the delivery rule.

Boolean negateCondition()

Get the negateCondition property: Describes if this is negate condition or not.

RequestMethodOperator operator()

Get the operator property: Describes operator to be matched.

JsonWriter toJson(JsonWriter jsonWriter)
List<Transform> transforms()

Get the transforms property: List of transforms.

String typeName()

Get the typeName property: The typeName property.

void validate()

Validates the instance.

RequestMethodMatchConditionParameters withMatchValues(List<RequestMethodMatchConditionParametersMatchValuesItem> matchValues)

Set the matchValues property: The match value for the condition of the delivery rule.

RequestMethodMatchConditionParameters withNegateCondition(Boolean negateCondition)

Set the negateCondition property: Describes if this is negate condition or not.

RequestMethodMatchConditionParameters withOperator(RequestMethodOperator operator)

Set the operator property: Describes operator to be matched.

RequestMethodMatchConditionParameters withTransforms(List<Transform> transforms)

Set the transforms property: List of transforms.

RequestMethodMatchConditionParameters withTypeName(String typeName)

Set the typeName property: The typeName property.

Methods inherited from java.lang.Object

Constructor Details

RequestMethodMatchConditionParameters

public RequestMethodMatchConditionParameters()

Creates an instance of RequestMethodMatchConditionParameters class.

Method Details

fromJson

public static RequestMethodMatchConditionParameters fromJson(JsonReader jsonReader)

Reads an instance of RequestMethodMatchConditionParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

matchValues

public List<RequestMethodMatchConditionParametersMatchValuesItem> matchValues()

Get the matchValues property: The match value for the condition of the delivery rule.

Returns:

the matchValues value.

negateCondition

public Boolean negateCondition()

Get the negateCondition property: Describes if this is negate condition or not.

Returns:

the negateCondition value.

operator

public RequestMethodOperator operator()

Get the operator property: Describes operator to be matched.

Returns:

the operator value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

transforms

public List<Transform> transforms()

Get the transforms property: List of transforms.

Returns:

the transforms value.

typeName

public String typeName()

Get the typeName property: The typeName property.

Returns:

the typeName value.

validate

public void validate()

Validates the instance.

withMatchValues

public RequestMethodMatchConditionParameters withMatchValues(List<RequestMethodMatchConditionParametersMatchValuesItem> matchValues)

Set the matchValues property: The match value for the condition of the delivery rule.

Parameters:

matchValues - the matchValues value to set.

Returns:

the RequestMethodMatchConditionParameters object itself.

withNegateCondition

public RequestMethodMatchConditionParameters withNegateCondition(Boolean negateCondition)

Set the negateCondition property: Describes if this is negate condition or not.

Parameters:

negateCondition - the negateCondition value to set.

Returns:

the RequestMethodMatchConditionParameters object itself.

withOperator

public RequestMethodMatchConditionParameters withOperator(RequestMethodOperator operator)

Set the operator property: Describes operator to be matched.

Parameters:

operator - the operator value to set.

Returns:

the RequestMethodMatchConditionParameters object itself.

withTransforms

public RequestMethodMatchConditionParameters withTransforms(List<Transform> transforms)

Set the transforms property: List of transforms.

Parameters:

transforms - the transforms value to set.

Returns:

the RequestMethodMatchConditionParameters object itself.

withTypeName

public RequestMethodMatchConditionParameters withTypeName(String typeName)

Set the typeName property: The typeName property.

Parameters:

typeName - the typeName value to set.

Returns:

the RequestMethodMatchConditionParameters object itself.

Applies to