Class EndpointPropertiesUpdateParametersDeliveryPolicy
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.EndpointPropertiesUpdateParametersDeliveryPolicy
-
public final class EndpointPropertiesUpdateParametersDeliveryPolicy extends Object
A policy that specifies the delivery rules to be used for an endpoint.
-
-
Constructor Summary
Constructors Constructor Description EndpointPropertiesUpdateParametersDeliveryPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()Get the description property: User-friendly description of the policy.List<DeliveryRule>rules()Get the rules property: A list of the delivery rules.voidvalidate()Validates the instance.EndpointPropertiesUpdateParametersDeliveryPolicywithDescription(String description)Set the description property: User-friendly description of the policy.EndpointPropertiesUpdateParametersDeliveryPolicywithRules(List<DeliveryRule> rules)Set the rules property: A list of the delivery rules.
-
-
-
Method Detail
-
description
public String description()
Get the description property: User-friendly description of the policy.- Returns:
- the description value.
-
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.
-
rules
public List<DeliveryRule> rules()
Get the rules property: A list of the delivery rules.- Returns:
- the rules value.
-
withRules
public EndpointPropertiesUpdateParametersDeliveryPolicy withRules(List<DeliveryRule> rules)
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.
-
-