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 Summary
ConstructorDescriptionCreates an instance of EffectiveNetworkSecurityGroup class. -
Method Summary
Modifier and TypeMethodDescriptionGet the association property: Associated resources.Get the effectiveSecurityRules property: A collection of effective security rules.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of EffectiveNetworkSecurityGroup from the JsonReader.com.azure.core.management.SubResource
Get the networkSecurityGroup property: The ID of network security group that is applied.tagMap()
Get the tagMap property: Mapping of tags to list of IP Addresses included within the tag.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAssociation
(EffectiveNetworkSecurityGroupAssociation association) Set the association property: Associated resources.withEffectiveSecurityRules
(List<EffectiveNetworkSecurityRule> effectiveSecurityRules) Set the effectiveSecurityRules property: A collection of effective security rules.withNetworkSecurityGroup
(com.azure.core.management.SubResource networkSecurityGroup) Set the networkSecurityGroup property: The ID of network security group that is applied.withTagMap
(String tagMap) Set the tagMap property: Mapping of tags to list of IP Addresses included within the tag.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
-
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
public EffectiveNetworkSecurityGroup withAssociation(EffectiveNetworkSecurityGroupAssociation association) Set the association property: Associated resources.- Parameters:
association
- the association value to set.- Returns:
- the EffectiveNetworkSecurityGroup object itself.
-
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
Get the tagMap property: Mapping of tags to list of IP Addresses included within the tag.- Returns:
- the tagMap value.
-
withTagMap
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
- Specified by:
toJson
in interfacecom.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.
-