Class PrivateEndpointAcl
java.lang.Object
com.azure.resourcemanager.webpubsub.models.NetworkAcl
com.azure.resourcemanager.webpubsub.models.PrivateEndpointAcl
ACL for a private endpoint.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionname()
Get the name property: Name of the private endpoint connection.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.Set the name property: Name of the private endpoint connection.Methods inherited from class com.azure.resourcemanager.webpubsub.models.NetworkAcl
allow, deny
-
Constructor Details
-
PrivateEndpointAcl
public PrivateEndpointAcl()Creates an instance of PrivateEndpointAcl class.
-
-
Method Details
-
name
Get the name property: Name of the private endpoint connection.- Returns:
- the name value.
-
withName
Set the name property: Name of the private endpoint connection.- Parameters:
name
- the name value to set.- Returns:
- the PrivateEndpointAcl object itself.
-
withAllow
Set the allow property: Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.- Overrides:
withAllow
in classNetworkAcl
- Parameters:
allow
- the allow value to set.- Returns:
- the NetworkAcl object itself.
-
withDeny
Set the deny property: Denied request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.- Overrides:
withDeny
in classNetworkAcl
- Parameters:
deny
- the deny value to set.- Returns:
- the NetworkAcl object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classNetworkAcl
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-