WebPubSubNetworkACLs Class

  • java.lang.Object
    • com.azure.resourcemanager.webpubsub.models.WebPubSubNetworkACLs

Implements

public final class WebPubSubNetworkACLs
implements JsonSerializable<WebPubSubNetworkACLs>

Network ACLs for the resource.

Constructor Summary

Constructor Description
WebPubSubNetworkACLs()

Creates an instance of WebPubSubNetworkACLs class.

Method Summary

Modifier and Type Method and Description
AclAction defaultAction()

Get the defaultAction property: Azure Networking ACL Action.

static WebPubSubNetworkACLs fromJson(JsonReader jsonReader)

Reads an instance of WebPubSubNetworkACLs from the JsonReader.

List<IpRule> ipRules()

Get the ipRules property: IP rules for filtering public traffic.

List<PrivateEndpointAcl> privateEndpoints()

Get the privateEndpoints property: ACLs for requests from private endpoints.

NetworkAcl publicNetwork()

Get the publicNetwork property: Network ACL.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WebPubSubNetworkACLs withDefaultAction(AclAction defaultAction)

Set the defaultAction property: Azure Networking ACL Action.

WebPubSubNetworkACLs withIpRules(List<IpRule> ipRules)

Set the ipRules property: IP rules for filtering public traffic.

WebPubSubNetworkACLs withPrivateEndpoints(List<PrivateEndpointAcl> privateEndpoints)

Set the privateEndpoints property: ACLs for requests from private endpoints.

WebPubSubNetworkACLs withPublicNetwork(NetworkAcl publicNetwork)

Set the publicNetwork property: Network ACL.

Methods inherited from java.lang.Object

Constructor Details

WebPubSubNetworkACLs

public WebPubSubNetworkACLs()

Creates an instance of WebPubSubNetworkACLs class.

Method Details

defaultAction

public AclAction defaultAction()

Get the defaultAction property: Azure Networking ACL Action.

Returns:

the defaultAction value.

fromJson

public static WebPubSubNetworkACLs fromJson(JsonReader jsonReader)

Reads an instance of WebPubSubNetworkACLs from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WebPubSubNetworkACLs if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the WebPubSubNetworkACLs.

ipRules

public List<IpRule> ipRules()

Get the ipRules property: IP rules for filtering public traffic.

Returns:

the ipRules value.

privateEndpoints

public List<PrivateEndpointAcl> privateEndpoints()

Get the privateEndpoints property: ACLs for requests from private endpoints.

Returns:

the privateEndpoints value.

publicNetwork

public NetworkAcl publicNetwork()

Get the publicNetwork property: Network ACL.

Returns:

the publicNetwork value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDefaultAction

public WebPubSubNetworkACLs withDefaultAction(AclAction defaultAction)

Set the defaultAction property: Azure Networking ACL Action.

Parameters:

defaultAction - the defaultAction value to set.

Returns:

the WebPubSubNetworkACLs object itself.

withIpRules

public WebPubSubNetworkACLs withIpRules(List<IpRule> ipRules)

Set the ipRules property: IP rules for filtering public traffic.

Parameters:

ipRules - the ipRules value to set.

Returns:

the WebPubSubNetworkACLs object itself.

withPrivateEndpoints

public WebPubSubNetworkACLs withPrivateEndpoints(List<PrivateEndpointAcl> privateEndpoints)

Set the privateEndpoints property: ACLs for requests from private endpoints.

Parameters:

privateEndpoints - the privateEndpoints value to set.

Returns:

the WebPubSubNetworkACLs object itself.

withPublicNetwork

public WebPubSubNetworkACLs withPublicNetwork(NetworkAcl publicNetwork)

Set the publicNetwork property: Network ACL.

Parameters:

publicNetwork - the publicNetwork value to set.

Returns:

the WebPubSubNetworkACLs object itself.

Applies to