Class DataCollectionEndpointNetworkAcls
java.lang.Object
com.azure.resourcemanager.monitor.models.NetworkRuleSet
com.azure.resourcemanager.monitor.models.DataCollectionEndpointNetworkAcls
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkRuleSet>
Network access control rules for the endpoints.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DataCollectionEndpointNetworkAcls class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DataCollectionEndpointNetworkAcls from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.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 class com.azure.resourcemanager.monitor.models.NetworkRuleSet
publicNetworkAccess
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DataCollectionEndpointNetworkAcls
public DataCollectionEndpointNetworkAcls()Creates an instance of DataCollectionEndpointNetworkAcls class.
-
-
Method Details
-
withPublicNetworkAccess
public DataCollectionEndpointNetworkAcls withPublicNetworkAccess(KnownPublicNetworkAccessOptions publicNetworkAccess) Set the publicNetworkAccess property: The configuration to set whether network access from public internet to the endpoints are allowed.- Overrides:
withPublicNetworkAccess
in classNetworkRuleSet
- Parameters:
publicNetworkAccess
- the publicNetworkAccess value to set.- Returns:
- the NetworkRuleSet object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classNetworkRuleSet
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<NetworkRuleSet>
- Overrides:
toJson
in classNetworkRuleSet
- Throws:
IOException
-
fromJson
public static DataCollectionEndpointNetworkAcls fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DataCollectionEndpointNetworkAcls from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DataCollectionEndpointNetworkAcls 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 DataCollectionEndpointNetworkAcls.
-