SecurityGroupNetworkInterface Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. SecurityGroupNetworkInterface
- com.
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 Security |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Security |
fromJson(JsonReader jsonReader)
Reads an instance of Security |
String |
id()
Get the id property: ID of the network interface. |
Security |
securityRuleAssociations()
Get the security |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Security |
withId(String id)
Set the id property: ID of the network interface. |
Security |
withSecurityRuleAssociations(SecurityRuleAssociations securityRuleAssociations)
Set the security |
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:
Returns:
Throws:
id
public String id()
Get the id property: ID of the network interface.
Returns:
securityRuleAssociations
public SecurityRuleAssociations securityRuleAssociations()
Get the securityRuleAssociations property: All security rules associated with the network interface.
Returns:
toJson
validate
public void validate()
Validates the instance.
withId
public SecurityGroupNetworkInterface withId(String id)
Set the id property: ID of the network interface.
Parameters:
Returns:
withSecurityRuleAssociations
public SecurityGroupNetworkInterface withSecurityRuleAssociations(SecurityRuleAssociations securityRuleAssociations)
Set the securityRuleAssociations property: All security rules associated with the network interface.
Parameters:
Returns:
Applies to
Azure SDK for Java