Class NetworkAcl
java.lang.Object
com.azure.resourcemanager.webpubsub.models.NetworkAcl
- Direct Known Subclasses:
PrivateEndpointAcl
Network ACL.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallow()
Get the allow property: Allowed request types.deny()
Get the deny property: Denied request types.void
validate()
Validates the instance.withAllow
(List<WebPubSubRequestType> allow) Set the allow property: Allowed request types.withDeny
(List<WebPubSubRequestType> deny) Set the deny property: Denied request types.
-
Constructor Details
-
NetworkAcl
public NetworkAcl()Creates an instance of NetworkAcl class.
-
-
Method Details
-
allow
Get the allow property: Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.- Returns:
- the allow value.
-
withAllow
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
Get the deny property: Denied request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.- Returns:
- the deny value.
-
withDeny
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.
-