NetworkInterfaceReference Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. compute. models. NetworkInterfaceReference
- com.
- com.
public final class NetworkInterfaceReference
extends SubResource
Describes a network interface reference.
Constructor Summary
Constructor | Description |
---|---|
NetworkInterfaceReference() |
Creates an instance of Network |
Method Summary
Modifier and Type | Method and Description |
---|---|
Delete |
deleteOption()
Get the delete |
static
Network |
fromJson(JsonReader jsonReader)
Reads an instance of Network |
Boolean |
primary()
Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Network |
withDeleteOption(DeleteOptions deleteOption)
Set the delete |
Network |
withId(String id) |
Network |
withPrimary(Boolean primary)
Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface. |
Methods inherited from SubResource
Methods inherited from java.lang.Object
Constructor Details
NetworkInterfaceReference
public NetworkInterfaceReference()
Creates an instance of NetworkInterfaceReference class.
Method Details
deleteOption
public DeleteOptions deleteOption()
Get the deleteOption property: Specify what happens to the network interface when the VM is deleted.
Returns:
fromJson
public static NetworkInterfaceReference fromJson(JsonReader jsonReader)
Reads an instance of NetworkInterfaceReference from the JsonReader.
Parameters:
Returns:
Throws:
primary
public Boolean primary()
Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
NetworkInterfaceReference.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
withDeleteOption
public NetworkInterfaceReference withDeleteOption(DeleteOptions deleteOption)
Set the deleteOption property: Specify what happens to the network interface when the VM is deleted.
Parameters:
Returns:
withId
public NetworkInterfaceReference withId(String id)
Overrides:
NetworkInterfaceReference.withId(String id)Parameters:
withPrimary
public NetworkInterfaceReference withPrimary(Boolean primary)
Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.
Parameters:
Returns:
Applies to
Azure SDK for Java