Class EffectiveNetworkSecurityGroup

java.lang.Object
com.azure.resourcemanager.network.models.EffectiveNetworkSecurityGroup
All Implemented Interfaces:
com.azure.json.JsonSerializable<EffectiveNetworkSecurityGroup>

public final class EffectiveNetworkSecurityGroup extends Object implements com.azure.json.JsonSerializable<EffectiveNetworkSecurityGroup>
Effective network security group.
  • Constructor Details

    • EffectiveNetworkSecurityGroup

      public EffectiveNetworkSecurityGroup()
      Creates an instance of EffectiveNetworkSecurityGroup class.
  • Method Details

    • networkSecurityGroup

      public com.azure.core.management.SubResource networkSecurityGroup()
      Get the networkSecurityGroup property: The ID of network security group that is applied.
      Returns:
      the networkSecurityGroup value.
    • withNetworkSecurityGroup

      public EffectiveNetworkSecurityGroup withNetworkSecurityGroup(com.azure.core.management.SubResource networkSecurityGroup)
      Set the networkSecurityGroup property: The ID of network security group that is applied.
      Parameters:
      networkSecurityGroup - the networkSecurityGroup value to set.
      Returns:
      the EffectiveNetworkSecurityGroup object itself.
    • association

      Get the association property: Associated resources.
      Returns:
      the association value.
    • withAssociation

      Set the association property: Associated resources.
      Parameters:
      association - the association value to set.
      Returns:
      the EffectiveNetworkSecurityGroup object itself.
    • effectiveSecurityRules

      public List<EffectiveNetworkSecurityRule> effectiveSecurityRules()
      Get the effectiveSecurityRules property: A collection of effective security rules.
      Returns:
      the effectiveSecurityRules value.
    • withEffectiveSecurityRules

      public EffectiveNetworkSecurityGroup withEffectiveSecurityRules(List<EffectiveNetworkSecurityRule> effectiveSecurityRules)
      Set the effectiveSecurityRules property: A collection of effective security rules.
      Parameters:
      effectiveSecurityRules - the effectiveSecurityRules value to set.
      Returns:
      the EffectiveNetworkSecurityGroup object itself.
    • tagMap

      public String tagMap()
      Get the tagMap property: Mapping of tags to list of IP Addresses included within the tag.
      Returns:
      the tagMap value.
    • withTagMap

      public EffectiveNetworkSecurityGroup withTagMap(String tagMap)
      Set the tagMap property: Mapping of tags to list of IP Addresses included within the tag.
      Parameters:
      tagMap - the tagMap value to set.
      Returns:
      the EffectiveNetworkSecurityGroup object itself.
    • validate

      public void validate()
      Validates the instance.
      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<EffectiveNetworkSecurityGroup>
      Throws:
      IOException
    • fromJson

      public static EffectiveNetworkSecurityGroup fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of EffectiveNetworkSecurityGroup from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of EffectiveNetworkSecurityGroup 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 EffectiveNetworkSecurityGroup.