EffectiveNetworkSecurityGroupAssociation Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.EffectiveNetworkSecurityGroupAssociation

Implements

public final class EffectiveNetworkSecurityGroupAssociation
implements JsonSerializable<EffectiveNetworkSecurityGroupAssociation>

The effective network security group association.

Constructor Summary

Constructor Description
EffectiveNetworkSecurityGroupAssociation()

Creates an instance of EffectiveNetworkSecurityGroupAssociation class.

Method Summary

Modifier and Type Method and Description
static EffectiveNetworkSecurityGroupAssociation fromJson(JsonReader jsonReader)

Reads an instance of EffectiveNetworkSecurityGroupAssociation from the JsonReader.

SubResource networkInterface()

Get the networkInterface property: The ID of the network interface if assigned.

SubResource networkManager()

Get the networkManager property: The ID of the Azure network manager if assigned.

SubResource subnet()

Get the subnet property: The ID of the subnet if assigned.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EffectiveNetworkSecurityGroupAssociation withNetworkInterface(SubResource networkInterface)

Set the networkInterface property: The ID of the network interface if assigned.

EffectiveNetworkSecurityGroupAssociation withNetworkManager(SubResource networkManager)

Set the networkManager property: The ID of the Azure network manager if assigned.

EffectiveNetworkSecurityGroupAssociation withSubnet(SubResource subnet)

Set the subnet property: The ID of the subnet if assigned.

Methods inherited from java.lang.Object

Constructor Details

EffectiveNetworkSecurityGroupAssociation

public EffectiveNetworkSecurityGroupAssociation()

Creates an instance of EffectiveNetworkSecurityGroupAssociation class.

Method Details

fromJson

public static EffectiveNetworkSecurityGroupAssociation fromJson(JsonReader jsonReader)

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.

networkInterface

public SubResource networkInterface()

Get the networkInterface property: The ID of the network interface if assigned.

Returns:

the networkInterface value.

networkManager

public SubResource networkManager()

Get the networkManager property: The ID of the Azure network manager if assigned.

Returns:

the networkManager value.

subnet

public SubResource subnet()

Get the subnet property: The ID of the subnet if assigned.

Returns:

the subnet value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withNetworkInterface

public EffectiveNetworkSecurityGroupAssociation withNetworkInterface(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.

withNetworkManager

public EffectiveNetworkSecurityGroupAssociation withNetworkManager(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.

withSubnet

public EffectiveNetworkSecurityGroupAssociation withSubnet(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.

Applies to