Share via


RateLimitRuleList Class

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

Implements

public final class RateLimitRuleList
implements JsonSerializable<RateLimitRuleList>

Defines contents of rate limit rules.

Constructor Summary

Constructor Description
RateLimitRuleList()

Creates an instance of RateLimitRuleList class.

Method Summary

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

Reads an instance of RateLimitRuleList from the JsonReader.

List<RateLimitRule> rules()

Get the rules property: List of rules.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RateLimitRuleList withRules(List<RateLimitRule> rules)

Set the rules property: List of rules.

Methods inherited from java.lang.Object

Constructor Details

RateLimitRuleList

public RateLimitRuleList()

Creates an instance of RateLimitRuleList class.

Method Details

fromJson

public static RateLimitRuleList fromJson(JsonReader jsonReader)

Reads an instance of RateLimitRuleList from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

rules

public List<RateLimitRule> rules()

Get the rules property: List of rules.

Returns:

the rules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withRules

public RateLimitRuleList withRules(List<RateLimitRule> rules)

Set the rules property: List of rules.

Parameters:

rules - the rules value to set.

Returns:

the RateLimitRuleList object itself.

Applies to