NetworkInterfaceReferenceProperties Class
- java.
lang. Object - com.
azure. resourcemanager. compute. fluent. models. NetworkInterfaceReferenceProperties
- com.
Implements
public final class NetworkInterfaceReferenceProperties
implements JsonSerializable<NetworkInterfaceReferenceProperties>
Describes a network interface reference properties.
Constructor Summary
| Constructor | Description |
|---|---|
| NetworkInterfaceReferenceProperties() |
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 |
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 java.lang.Object
Constructor Details
NetworkInterfaceReferenceProperties
public NetworkInterfaceReferenceProperties()
Creates an instance of NetworkInterfaceReferenceProperties 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 NetworkInterfaceReferenceProperties fromJson(JsonReader jsonReader)
Reads an instance of NetworkInterfaceReferenceProperties 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
validate
public void validate()
Validates the instance.
withDeleteOption
public NetworkInterfaceReferenceProperties withDeleteOption(DeleteOptions deleteOption)
Set the deleteOption property: Specify what happens to the network interface when the VM is deleted.
Parameters:
Returns:
withPrimary
public NetworkInterfaceReferenceProperties 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: