azure-docs-sdk-java/docs-ref-autogen/com.azure.resourcemanager.c...

143 строки
11 KiB
YAML

### 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:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.management.SubResource?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "<xref href=\"com.azure.core.management.SubResource?alt=com.azure.core.management.SubResource&text=SubResource\" data-throw-if-not-resolved=\"False\" />"
methodsRef:
- "<xref href=\"com.azure.core.management.SubResource.fromJson(com.azure.json.JsonReader)?alt=com.azure.core.management.SubResource.fromJson&text=fromJson\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.management.SubResource.id()?alt=com.azure.core.management.SubResource.id&text=id\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.management.SubResource.toJson(com.azure.json.JsonWriter)?alt=com.azure.core.management.SubResource.toJson&text=toJson\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.management.SubResource.withId(java.lang.String)?alt=com.azure.core.management.SubResource.withId&text=withId\" data-throw-if-not-resolved=\"False\" />"
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **NetworkInterfaceReference**</br> extends <xref href=\"com.azure.core.management.SubResource?alt=com.azure.core.management.SubResource&text=SubResource\" data-throw-if-not-resolved=\"False\" />"
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 Network<wbr>Interface<wbr>Reference 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 delete<wbr>Option 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: "<xref href=\"com.azure.resourcemanager.compute.models.DeleteOptions?alt=com.azure.resourcemanager.compute.models.DeleteOptions&text=DeleteOptions\" data-throw-if-not-resolved=\"False\" />"
- 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 Network<wbr>Interface<wbr>Reference from the Json<wbr>Reader."
modifiers:
- "static"
parameters:
- description: "The JsonReader being read."
name: "jsonReader"
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static NetworkInterfaceReference fromJson(JsonReader jsonReader)"
exceptions:
- description: "If an error occurs while reading the NetworkInterfaceReference."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
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: "<xref href=\"com.azure.resourcemanager.compute.models.NetworkInterfaceReference?alt=com.azure.resourcemanager.compute.models.NetworkInterfaceReference&text=NetworkInterfaceReference\" data-throw-if-not-resolved=\"False\" />"
- 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: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html\">Boolean</a>"
- 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: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
syntax: "public JsonWriter toJson(JsonWriter jsonWriter)"
exceptions:
- type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
returns:
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
- 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 delete<wbr>Option property: Specify what happens to the network interface when the VM is deleted."
parameters:
- description: "the deleteOption value to set."
name: "deleteOption"
type: "<xref href=\"com.azure.resourcemanager.compute.models.DeleteOptions?alt=com.azure.resourcemanager.compute.models.DeleteOptions&text=DeleteOptions\" data-throw-if-not-resolved=\"False\" />"
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: "<xref href=\"com.azure.resourcemanager.compute.models.NetworkInterfaceReference?alt=com.azure.resourcemanager.compute.models.NetworkInterfaceReference&text=NetworkInterfaceReference\" data-throw-if-not-resolved=\"False\" />"
- 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: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public NetworkInterfaceReference withId(String id)"
returns:
type: "<xref href=\"com.azure.resourcemanager.compute.models.NetworkInterfaceReference?alt=com.azure.resourcemanager.compute.models.NetworkInterfaceReference&text=NetworkInterfaceReference\" data-throw-if-not-resolved=\"False\" />"
- 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: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html\">Boolean</a>"
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: "<xref href=\"com.azure.resourcemanager.compute.models.NetworkInterfaceReference?alt=com.azure.resourcemanager.compute.models.NetworkInterfaceReference&text=NetworkInterfaceReference\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Describes a network interface reference."
metadata: {}
package: "com.azure.resourcemanager.compute.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-compute:2.42.0