共用方式為


DeliveryRuleCondition Class

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

Implements

public class DeliveryRuleCondition
implements JsonSerializable<DeliveryRuleCondition>

A condition for the delivery rule.

Constructor Summary

Constructor Description
DeliveryRuleCondition()

Creates an instance of DeliveryRuleCondition class.

Method Summary

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

Reads an instance of DeliveryRuleCondition from the JsonReader.

MatchVariable name()

Get the name property: The name of the condition for the delivery rule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

DeliveryRuleCondition

public DeliveryRuleCondition()

Creates an instance of DeliveryRuleCondition class.

Method Details

fromJson

public static DeliveryRuleCondition fromJson(JsonReader jsonReader)

Reads an instance of DeliveryRuleCondition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public MatchVariable name()

Get the name property: The name of the condition for the delivery rule.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to