NetworkAcl Class

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

Implements

public class NetworkAcl
implements JsonSerializable<NetworkAcl>

Network ACL.

Constructor Summary

Constructor Description
NetworkAcl()

Creates an instance of NetworkAcl class.

Method Summary

Modifier and Type Method and Description
List<WebPubSubRequestType> allow()

Get the allow property: Allowed request types.

List<WebPubSubRequestType> deny()

Get the deny property: Denied request types.

static NetworkAcl fromJson(JsonReader jsonReader)

Reads an instance of NetworkAcl from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkAcl withAllow(List<WebPubSubRequestType> allow)

Set the allow property: Allowed request types.

NetworkAcl withDeny(List<WebPubSubRequestType> deny)

Set the deny property: Denied request types.

Methods inherited from java.lang.Object

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.

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.

fromJson

public static NetworkAcl fromJson(JsonReader jsonReader)

Reads an instance of NetworkAcl from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NetworkAcl 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 NetworkAcl.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to