Class NetworkAcl

java.lang.Object
com.azure.resourcemanager.webpubsub.models.NetworkAcl
Direct Known Subclasses:
PrivateEndpointAcl

public class NetworkAcl extends Object
Network ACL.
  • Constructor Details

    • NetworkAcl

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

    • allow

      public List<WebPubSubRequestType> allow()
      Get the allow property: Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
      Returns:
      the allow value.
    • withAllow

      public NetworkAcl withAllow(List<WebPubSubRequestType> allow)
      Set the allow property: Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
      Parameters:
      allow - the allow value to set.
      Returns:
      the NetworkAcl object itself.
    • deny

      public List<WebPubSubRequestType> deny()
      Get the deny property: Denied request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
      Returns:
      the deny value.
    • withDeny

      public NetworkAcl withDeny(List<WebPubSubRequestType> deny)
      Set the deny property: Denied request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
      Parameters:
      deny - the deny value to set.
      Returns:
      the NetworkAcl object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.