Class EffectiveNetworkSecurityGroupAssociation
java.lang.Object
com.azure.resourcemanager.network.models.EffectiveNetworkSecurityGroupAssociation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EffectiveNetworkSecurityGroupAssociation>
public final class EffectiveNetworkSecurityGroupAssociation
extends Object
implements com.azure.json.JsonSerializable<EffectiveNetworkSecurityGroupAssociation>
The effective network security group association.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EffectiveNetworkSecurityGroupAssociation class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EffectiveNetworkSecurityGroupAssociation from the JsonReader.com.azure.core.management.SubResourceGet the networkInterface property: The ID of the network interface if assigned.com.azure.core.management.SubResourceGet the networkManager property: The ID of the Azure network manager if assigned.com.azure.core.management.SubResourcesubnet()Get the subnet property: The ID of the subnet if assigned.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withNetworkInterface(com.azure.core.management.SubResource networkInterface) Set the networkInterface property: The ID of the network interface if assigned.withNetworkManager(com.azure.core.management.SubResource networkManager) Set the networkManager property: The ID of the Azure network manager if assigned.withSubnet(com.azure.core.management.SubResource subnet) Set the subnet property: The ID of the subnet if assigned.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EffectiveNetworkSecurityGroupAssociation
public EffectiveNetworkSecurityGroupAssociation()Creates an instance of EffectiveNetworkSecurityGroupAssociation class.
-
-
Method Details
-
networkManager
public com.azure.core.management.SubResource networkManager()Get the networkManager property: The ID of the Azure network manager if assigned.- Returns:
- the networkManager value.
-
withNetworkManager
public EffectiveNetworkSecurityGroupAssociation withNetworkManager(com.azure.core.management.SubResource networkManager) Set the networkManager property: The ID of the Azure network manager if assigned.- Parameters:
networkManager- the networkManager value to set.- Returns:
- the EffectiveNetworkSecurityGroupAssociation object itself.
-
subnet
public com.azure.core.management.SubResource subnet()Get the subnet property: The ID of the subnet if assigned.- Returns:
- the subnet value.
-
withSubnet
public EffectiveNetworkSecurityGroupAssociation withSubnet(com.azure.core.management.SubResource subnet) Set the subnet property: The ID of the subnet if assigned.- Parameters:
subnet- the subnet value to set.- Returns:
- the EffectiveNetworkSecurityGroupAssociation object itself.
-
networkInterface
public com.azure.core.management.SubResource networkInterface()Get the networkInterface property: The ID of the network interface if assigned.- Returns:
- the networkInterface value.
-
withNetworkInterface
public EffectiveNetworkSecurityGroupAssociation withNetworkInterface(com.azure.core.management.SubResource networkInterface) Set the networkInterface property: The ID of the network interface if assigned.- Parameters:
networkInterface- the networkInterface value to set.- Returns:
- the EffectiveNetworkSecurityGroupAssociation object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EffectiveNetworkSecurityGroupAssociation>- Throws:
IOException
-
fromJson
public static EffectiveNetworkSecurityGroupAssociation fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EffectiveNetworkSecurityGroupAssociation from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EffectiveNetworkSecurityGroupAssociation 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 EffectiveNetworkSecurityGroupAssociation.
-