### YamlMime:JavaType
uid: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference"
fullName: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference"
name: "NetworkInterfaceReference"
nameWithType: "NetworkInterfaceReference"
summary: "Describes a network interface reference."
inheritances:
- ""
- ""
inheritedClassMethods:
- classRef: ""
methodsRef:
- ""
- ""
- ""
- ""
- classRef: "java.lang.Object"
methodsRef:
- "clone"
- "equals"
- "finalize"
- "getClass"
- "hashCode"
- "notify"
- "notifyAll"
- "toString"
- "wait"
- "wait"
- "wait"
syntax: "public final class **NetworkInterfaceReference** extends "
constructors:
- uid: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference.NetworkInterfaceReference()"
fullName: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference.NetworkInterfaceReference()"
name: "NetworkInterfaceReference()"
nameWithType: "NetworkInterfaceReference.NetworkInterfaceReference()"
summary: "Creates an instance of NetworkInterfaceReference class."
syntax: "public NetworkInterfaceReference()"
desc: "Creates an instance of NetworkInterfaceReference class."
methods:
- uid: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference.deleteOption()"
fullName: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference.deleteOption()"
name: "deleteOption()"
nameWithType: "NetworkInterfaceReference.deleteOption()"
summary: "Get the deleteOption property: Specify what happens to the network interface when the VM is deleted."
syntax: "public DeleteOptions deleteOption()"
desc: "Get the deleteOption property: Specify what happens to the network interface when the VM is deleted."
returns:
description: "the deleteOption value."
type: ""
- uid: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference.fromJson(com.azure.json.JsonReader)"
fullName: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference.fromJson(JsonReader jsonReader)"
name: "fromJson(JsonReader jsonReader)"
nameWithType: "NetworkInterfaceReference.fromJson(JsonReader jsonReader)"
summary: "Reads an instance of NetworkInterfaceReference from the JsonReader."
modifiers:
- "static"
parameters:
- description: "The JsonReader being read."
name: "jsonReader"
type: ""
syntax: "public static NetworkInterfaceReference fromJson(JsonReader jsonReader)"
exceptions:
- description: "If an error occurs while reading the NetworkInterfaceReference."
type: "IOException"
desc: "Reads an instance of NetworkInterfaceReference from the JsonReader."
returns:
description: "An instance of NetworkInterfaceReference if the JsonReader was pointing to an instance of it, or null if\n it was pointing to JSON null."
type: ""
- uid: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference.primary()"
fullName: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference.primary()"
name: "primary()"
nameWithType: "NetworkInterfaceReference.primary()"
summary: "Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface."
syntax: "public Boolean primary()"
desc: "Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface."
returns:
description: "the primary value."
type: "Boolean"
- uid: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference.toJson(com.azure.json.JsonWriter)"
fullName: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference.toJson(JsonWriter jsonWriter)"
name: "toJson(JsonWriter jsonWriter)"
nameWithType: "NetworkInterfaceReference.toJson(JsonWriter jsonWriter)"
overridden: "com.azure.core.management.SubResource.toJson(com.azure.json.JsonWriter)"
parameters:
- name: "jsonWriter"
type: ""
syntax: "public JsonWriter toJson(JsonWriter jsonWriter)"
exceptions:
- type: "IOException"
returns:
type: ""
- uid: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference.validate()"
fullName: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference.validate()"
name: "validate()"
nameWithType: "NetworkInterfaceReference.validate()"
summary: "Validates the instance."
syntax: "public void validate()"
desc: "Validates the instance."
- uid: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference.withDeleteOption(com.azure.resourcemanager.compute.models.DeleteOptions)"
fullName: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference.withDeleteOption(DeleteOptions deleteOption)"
name: "withDeleteOption(DeleteOptions deleteOption)"
nameWithType: "NetworkInterfaceReference.withDeleteOption(DeleteOptions deleteOption)"
summary: "Set the deleteOption property: Specify what happens to the network interface when the VM is deleted."
parameters:
- description: "the deleteOption value to set."
name: "deleteOption"
type: ""
syntax: "public NetworkInterfaceReference withDeleteOption(DeleteOptions deleteOption)"
desc: "Set the deleteOption property: Specify what happens to the network interface when the VM is deleted."
returns:
description: "the NetworkInterfaceReference object itself."
type: ""
- uid: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference.withId(java.lang.String)"
fullName: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference.withId(String id)"
name: "withId(String id)"
nameWithType: "NetworkInterfaceReference.withId(String id)"
overridden: "com.azure.core.management.SubResource.withId(java.lang.String)"
parameters:
- name: "id"
type: "String"
syntax: "public NetworkInterfaceReference withId(String id)"
returns:
type: ""
- uid: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference.withPrimary(java.lang.Boolean)"
fullName: "com.azure.resourcemanager.compute.models.NetworkInterfaceReference.withPrimary(Boolean primary)"
name: "withPrimary(Boolean primary)"
nameWithType: "NetworkInterfaceReference.withPrimary(Boolean primary)"
summary: "Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface."
parameters:
- description: "the primary value to set."
name: "primary"
type: "Boolean"
syntax: "public NetworkInterfaceReference withPrimary(Boolean primary)"
desc: "Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface."
returns:
description: "the NetworkInterfaceReference object itself."
type: ""
type: "class"
desc: "Describes a network interface reference."
metadata: {}
package: "com.azure.resourcemanager.compute.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-compute:2.44.0