Class AccessControl
java.lang.Object
com.azure.resourcemanager.mediaservices.models.AccessControl
The AccessControl model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the defaultAction property: The behavior for IP access control in Key Delivery.Get the ipAllowList property: The IP allow list for access control in Key Delivery.void
validate()
Validates the instance.withDefaultAction
(DefaultAction defaultAction) Set the defaultAction property: The behavior for IP access control in Key Delivery.withIpAllowList
(List<String> ipAllowList) Set the ipAllowList property: The IP allow list for access control in Key Delivery.
-
Constructor Details
-
AccessControl
public AccessControl()Creates an instance of AccessControl class.
-
-
Method Details
-
defaultAction
Get the defaultAction property: The behavior for IP access control in Key Delivery.- Returns:
- the defaultAction value.
-
withDefaultAction
Set the defaultAction property: The behavior for IP access control in Key Delivery.- Parameters:
defaultAction
- the defaultAction value to set.- Returns:
- the AccessControl object itself.
-
ipAllowList
Get the ipAllowList property: The IP allow list for access control in Key Delivery. If the default action is set to 'Allow', the IP allow list must be empty.- Returns:
- the ipAllowList value.
-
withIpAllowList
Set the ipAllowList property: The IP allow list for access control in Key Delivery. If the default action is set to 'Allow', the IP allow list must be empty.- Parameters:
ipAllowList
- the ipAllowList value to set.- Returns:
- the AccessControl object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-