Class AccessControl

java.lang.Object
com.azure.resourcemanager.mediaservices.models.AccessControl

public final class AccessControl extends Object
The AccessControl model.
  • Constructor Details

    • AccessControl

      public AccessControl()
      Creates an instance of AccessControl class.
  • Method Details

    • defaultAction

      public DefaultAction defaultAction()
      Get the defaultAction property: The behavior for IP access control in Key Delivery.
      Returns:
      the defaultAction value.
    • withDefaultAction

      public AccessControl withDefaultAction(DefaultAction defaultAction)
      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

      public List<String> 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

      public AccessControl withIpAllowList(List<String> ipAllowList)
      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.