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>

public final class DataCollectionEndpointNetworkAcls extends NetworkRuleSet
Network access control rules for the endpoints.
  • 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 class NetworkRuleSet
      Parameters:
      publicNetworkAccess - the publicNetworkAccess value to set.
      Returns:
      the NetworkRuleSet object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class NetworkRuleSet
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<NetworkRuleSet>
      Overrides:
      toJson in class NetworkRuleSet
      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.