Compartilhar via


NetworkRuleSet Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.NetworkRuleSet

Implements

public class NetworkRuleSet
implements JsonSerializable<NetworkRuleSet>

Definition of the network rules.

Constructor Summary

Constructor Description
NetworkRuleSet()

Creates an instance of NetworkRuleSet class.

Method Summary

Modifier and Type Method and Description
static NetworkRuleSet fromJson(JsonReader jsonReader)

Reads an instance of NetworkRuleSet from the JsonReader.

KnownPublicNetworkAccessOptions publicNetworkAccess()

Get the publicNetworkAccess property: The configuration to set whether network access from public internet to the endpoints are allowed.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkRuleSet withPublicNetworkAccess(KnownPublicNetworkAccessOptions publicNetworkAccess)

Set the publicNetworkAccess property: The configuration to set whether network access from public internet to the endpoints are allowed.

Methods inherited from java.lang.Object

Constructor Details

NetworkRuleSet

public NetworkRuleSet()

Creates an instance of NetworkRuleSet class.

Method Details

fromJson

public static NetworkRuleSet fromJson(JsonReader jsonReader)

Reads an instance of NetworkRuleSet from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

publicNetworkAccess

public KnownPublicNetworkAccessOptions publicNetworkAccess()

Get the publicNetworkAccess property: The configuration to set whether network access from public internet to the endpoints are allowed.

Returns:

the publicNetworkAccess value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPublicNetworkAccess

public NetworkRuleSet withPublicNetworkAccess(KnownPublicNetworkAccessOptions publicNetworkAccess)

Set the publicNetworkAccess property: The configuration to set whether network access from public internet to the endpoints are allowed.

Parameters:

publicNetworkAccess - the publicNetworkAccess value to set.

Returns:

the NetworkRuleSet object itself.

Applies to