EndpointPropertiesUpdateParametersDeliveryPolicy Class

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

Implements

public final class EndpointPropertiesUpdateParametersDeliveryPolicy
implements JsonSerializable<EndpointPropertiesUpdateParametersDeliveryPolicy>

A policy that specifies the delivery rules to be used for an endpoint.

Constructor Summary

Constructor Description
EndpointPropertiesUpdateParametersDeliveryPolicy()

Creates an instance of EndpointPropertiesUpdateParametersDeliveryPolicy class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: User-friendly description of the policy.

static EndpointPropertiesUpdateParametersDeliveryPolicy fromJson(JsonReader jsonReader)

Reads an instance of EndpointPropertiesUpdateParametersDeliveryPolicy from the JsonReader.

List<DeliveryRule> rules()

Get the rules property: A list of the delivery rules.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EndpointPropertiesUpdateParametersDeliveryPolicy withDescription(String description)

Set the description property: User-friendly description of the policy.

EndpointPropertiesUpdateParametersDeliveryPolicy withRules(List<DeliveryRule> rules)

Set the rules property: A list of the delivery rules.

Methods inherited from java.lang.Object

Constructor Details

EndpointPropertiesUpdateParametersDeliveryPolicy

public EndpointPropertiesUpdateParametersDeliveryPolicy()

Creates an instance of EndpointPropertiesUpdateParametersDeliveryPolicy class.

Method Details

description

public String description()

Get the description property: User-friendly description of the policy.

Returns:

the description value.

fromJson

public static EndpointPropertiesUpdateParametersDeliveryPolicy fromJson(JsonReader jsonReader)

Reads an instance of EndpointPropertiesUpdateParametersDeliveryPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

rules

public List rules()

Get the rules property: A list of the delivery rules.

Returns:

the rules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public EndpointPropertiesUpdateParametersDeliveryPolicy withDescription(String description)

Set the description property: User-friendly description of the policy.

Parameters:

description - the description value to set.

Returns:

the EndpointPropertiesUpdateParametersDeliveryPolicy object itself.

withRules

public EndpointPropertiesUpdateParametersDeliveryPolicy withRules(List rules)

Set the rules property: A list of the delivery rules.

Parameters:

rules - the rules value to set.

Returns:

the EndpointPropertiesUpdateParametersDeliveryPolicy object itself.

Applies to