SecurityGroupNetworkInterface Class

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

Implements

public final class SecurityGroupNetworkInterface
implements JsonSerializable<SecurityGroupNetworkInterface>

Network interface and all its associated security rules.

Constructor Summary

Constructor Description
SecurityGroupNetworkInterface()

Creates an instance of SecurityGroupNetworkInterface class.

Method Summary

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

Reads an instance of SecurityGroupNetworkInterface from the JsonReader.

String id()

Get the id property: ID of the network interface.

SecurityRuleAssociations securityRuleAssociations()

Get the securityRuleAssociations property: All security rules associated with the network interface.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SecurityGroupNetworkInterface withId(String id)

Set the id property: ID of the network interface.

SecurityGroupNetworkInterface withSecurityRuleAssociations(SecurityRuleAssociations securityRuleAssociations)

Set the securityRuleAssociations property: All security rules associated with the network interface.

Methods inherited from java.lang.Object

Constructor Details

SecurityGroupNetworkInterface

public SecurityGroupNetworkInterface()

Creates an instance of SecurityGroupNetworkInterface class.

Method Details

fromJson

public static SecurityGroupNetworkInterface fromJson(JsonReader jsonReader)

Reads an instance of SecurityGroupNetworkInterface from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SecurityGroupNetworkInterface 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 SecurityGroupNetworkInterface.

id

public String id()

Get the id property: ID of the network interface.

Returns:

the id value.

securityRuleAssociations

public SecurityRuleAssociations securityRuleAssociations()

Get the securityRuleAssociations property: All security rules associated with the network interface.

Returns:

the securityRuleAssociations value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public SecurityGroupNetworkInterface withId(String id)

Set the id property: ID of the network interface.

Parameters:

id - the id value to set.

Returns:

the SecurityGroupNetworkInterface object itself.

withSecurityRuleAssociations

public SecurityGroupNetworkInterface withSecurityRuleAssociations(SecurityRuleAssociations securityRuleAssociations)

Set the securityRuleAssociations property: All security rules associated with the network interface.

Parameters:

securityRuleAssociations - the securityRuleAssociations value to set.

Returns:

the SecurityGroupNetworkInterface object itself.

Applies to