Class EndpointPropertiesUpdateParametersDeliveryPolicy
java.lang.Object
com.azure.resourcemanager.cdn.models.EndpointPropertiesUpdateParametersDeliveryPolicy
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EndpointPropertiesUpdateParametersDeliveryPolicy>
public final class EndpointPropertiesUpdateParametersDeliveryPolicy
extends Object
implements com.azure.json.JsonSerializable<EndpointPropertiesUpdateParametersDeliveryPolicy>
A policy that specifies the delivery rules to be used for an endpoint.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EndpointPropertiesUpdateParametersDeliveryPolicy class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: User-friendly description of the policy.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EndpointPropertiesUpdateParametersDeliveryPolicy from the JsonReader.rules()Get the rules property: A list of the delivery rules.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDescription(String description) Set the description property: User-friendly description of the policy.withRules(List<DeliveryRule> rules) Set the rules property: A list of the delivery rules.Methods inherited from class 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
-
EndpointPropertiesUpdateParametersDeliveryPolicy
public EndpointPropertiesUpdateParametersDeliveryPolicy()Creates an instance of EndpointPropertiesUpdateParametersDeliveryPolicy class.
-
-
Method Details
-
description
Get the description property: User-friendly description of the policy.- Returns:
- the description value.
-
withDescription
Set the description property: User-friendly description of the policy.- Parameters:
description- the description value to set.- Returns:
- the EndpointPropertiesUpdateParametersDeliveryPolicy object itself.
-
rules
Get the rules property: A list of the delivery rules.- Returns:
- the rules value.
-
withRules
Set the rules property: A list of the delivery rules.- Parameters:
rules- the rules value to set.- Returns:
- the EndpointPropertiesUpdateParametersDeliveryPolicy 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<EndpointPropertiesUpdateParametersDeliveryPolicy>- Throws:
IOException
-
fromJson
public static EndpointPropertiesUpdateParametersDeliveryPolicy fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the EndpointPropertiesUpdateParametersDeliveryPolicy.
-