EffectiveNetworkSecurityGroup Class

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

Implements

public final class EffectiveNetworkSecurityGroup
implements JsonSerializable<EffectiveNetworkSecurityGroup>

Effective network security group.

Constructor Summary

Constructor Description
EffectiveNetworkSecurityGroup()

Creates an instance of EffectiveNetworkSecurityGroup class.

Method Summary

Modifier and Type Method and Description
EffectiveNetworkSecurityGroupAssociation association()

Get the association property: Associated resources.

List<EffectiveNetworkSecurityRule> effectiveSecurityRules()

Get the effectiveSecurityRules property: A collection of effective security rules.

static EffectiveNetworkSecurityGroup fromJson(JsonReader jsonReader)

Reads an instance of EffectiveNetworkSecurityGroup from the JsonReader.

SubResource networkSecurityGroup()

Get the networkSecurityGroup property: The ID of network security group that is applied.

String tagMap()

Get the tagMap property: Mapping of tags to list of IP Addresses included within the tag.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EffectiveNetworkSecurityGroup withAssociation(EffectiveNetworkSecurityGroupAssociation association)

Set the association property: Associated resources.

EffectiveNetworkSecurityGroup withEffectiveSecurityRules(List<EffectiveNetworkSecurityRule> effectiveSecurityRules)

Set the effectiveSecurityRules property: A collection of effective security rules.

EffectiveNetworkSecurityGroup withNetworkSecurityGroup(SubResource networkSecurityGroup)

Set the networkSecurityGroup property: The ID of network security group that is applied.

EffectiveNetworkSecurityGroup withTagMap(String tagMap)

Set the tagMap property: Mapping of tags to list of IP Addresses included within the tag.

Methods inherited from java.lang.Object

Constructor Details

EffectiveNetworkSecurityGroup

public EffectiveNetworkSecurityGroup()

Creates an instance of EffectiveNetworkSecurityGroup class.

Method Details

association

public EffectiveNetworkSecurityGroupAssociation association()

Get the association property: Associated resources.

Returns:

the association value.

effectiveSecurityRules

public List effectiveSecurityRules()

Get the effectiveSecurityRules property: A collection of effective security rules.

Returns:

the effectiveSecurityRules value.

fromJson

public static EffectiveNetworkSecurityGroup fromJson(JsonReader jsonReader)

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.

networkSecurityGroup

public SubResource networkSecurityGroup()

Get the networkSecurityGroup property: The ID of network security group that is applied.

Returns:

the networkSecurityGroup value.

tagMap

public String tagMap()

Get the tagMap property: Mapping of tags to list of IP Addresses included within the tag.

Returns:

the tagMap value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAssociation

public EffectiveNetworkSecurityGroup withAssociation(EffectiveNetworkSecurityGroupAssociation association)

Set the association property: Associated resources.

Parameters:

association - the association value to set.

Returns:

the EffectiveNetworkSecurityGroup object itself.

withEffectiveSecurityRules

public EffectiveNetworkSecurityGroup withEffectiveSecurityRules(List effectiveSecurityRules)

Set the effectiveSecurityRules property: A collection of effective security rules.

Parameters:

effectiveSecurityRules - the effectiveSecurityRules value to set.

Returns:

the EffectiveNetworkSecurityGroup object itself.

withNetworkSecurityGroup

public EffectiveNetworkSecurityGroup withNetworkSecurityGroup(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.

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.

Applies to