Class PrivateEndpointAcl

java.lang.Object
com.azure.resourcemanager.webpubsub.models.NetworkAcl
com.azure.resourcemanager.webpubsub.models.PrivateEndpointAcl

public final class PrivateEndpointAcl extends NetworkAcl
ACL for a private endpoint.
  • Constructor Details

    • PrivateEndpointAcl

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

    • name

      public String name()
      Get the name property: Name of the private endpoint connection.
      Returns:
      the name value.
    • withName

      public PrivateEndpointAcl withName(String name)
      Set the name property: Name of the private endpoint connection.
      Parameters:
      name - the name value to set.
      Returns:
      the PrivateEndpointAcl object itself.
    • withAllow

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

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

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