Class NetworkInterfaces
- java.lang.Object
-
- com.azure.resourcemanager.scvmm.models.NetworkInterfaces
-
public final class NetworkInterfaces extends Object
Network Interface model.
-
-
Constructor Summary
Constructors Constructor Description NetworkInterfaces()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
displayName()
Get the displayName property: Gets the display name of the network interface as shown in the vmmServer.List<String>
ipv4Addresses()
Get the ipv4Addresses property: Gets or sets the nic ipv4 addresses.AllocationMethod
ipv4AddressType()
Get the ipv4AddressType property: Gets or sets the ipv4 address type.List<String>
ipv6Addresses()
Get the ipv6Addresses property: Gets or sets the nic ipv6 addresses.AllocationMethod
ipv6AddressType()
Get the ipv6AddressType property: Gets or sets the ipv6 address type.String
macAddress()
Get the macAddress property: Gets or sets the nic MAC address.AllocationMethod
macAddressType()
Get the macAddressType property: Gets or sets the mac address type.String
name()
Get the name property: Gets or sets the name of the network interface.String
networkName()
Get the networkName property: Gets or sets the name of the virtual network in vmmServer that the nic is connected to.String
nicId()
Get the nicId property: Gets or sets the nic id.void
validate()
Validates the instance.String
virtualNetworkId()
Get the virtualNetworkId property: Gets or sets the ARM Id of the Microsoft.ScVmm/virtualNetwork resource to connect the nic.NetworkInterfaces
withIpv4AddressType(AllocationMethod ipv4AddressType)
Set the ipv4AddressType property: Gets or sets the ipv4 address type.NetworkInterfaces
withIpv6AddressType(AllocationMethod ipv6AddressType)
Set the ipv6AddressType property: Gets or sets the ipv6 address type.NetworkInterfaces
withMacAddress(String macAddress)
Set the macAddress property: Gets or sets the nic MAC address.NetworkInterfaces
withMacAddressType(AllocationMethod macAddressType)
Set the macAddressType property: Gets or sets the mac address type.NetworkInterfaces
withName(String name)
Set the name property: Gets or sets the name of the network interface.NetworkInterfaces
withNicId(String nicId)
Set the nicId property: Gets or sets the nic id.NetworkInterfaces
withVirtualNetworkId(String virtualNetworkId)
Set the virtualNetworkId property: Gets or sets the ARM Id of the Microsoft.ScVmm/virtualNetwork resource to connect the nic.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Gets or sets the name of the network interface.- Returns:
- the name value.
-
withName
public NetworkInterfaces withName(String name)
Set the name property: Gets or sets the name of the network interface.- Parameters:
name
- the name value to set.- Returns:
- the NetworkInterfaces object itself.
-
displayName
public String displayName()
Get the displayName property: Gets the display name of the network interface as shown in the vmmServer. This is the fallback label for a NIC when the name is not set.- Returns:
- the displayName value.
-
ipv4Addresses
public List<String> ipv4Addresses()
Get the ipv4Addresses property: Gets or sets the nic ipv4 addresses.- Returns:
- the ipv4Addresses value.
-
ipv6Addresses
public List<String> ipv6Addresses()
Get the ipv6Addresses property: Gets or sets the nic ipv6 addresses.- Returns:
- the ipv6Addresses value.
-
macAddress
public String macAddress()
Get the macAddress property: Gets or sets the nic MAC address.- Returns:
- the macAddress value.
-
withMacAddress
public NetworkInterfaces withMacAddress(String macAddress)
Set the macAddress property: Gets or sets the nic MAC address.- Parameters:
macAddress
- the macAddress value to set.- Returns:
- the NetworkInterfaces object itself.
-
virtualNetworkId
public String virtualNetworkId()
Get the virtualNetworkId property: Gets or sets the ARM Id of the Microsoft.ScVmm/virtualNetwork resource to connect the nic.- Returns:
- the virtualNetworkId value.
-
withVirtualNetworkId
public NetworkInterfaces withVirtualNetworkId(String virtualNetworkId)
Set the virtualNetworkId property: Gets or sets the ARM Id of the Microsoft.ScVmm/virtualNetwork resource to connect the nic.- Parameters:
virtualNetworkId
- the virtualNetworkId value to set.- Returns:
- the NetworkInterfaces object itself.
-
networkName
public String networkName()
Get the networkName property: Gets or sets the name of the virtual network in vmmServer that the nic is connected to.- Returns:
- the networkName value.
-
ipv4AddressType
public AllocationMethod ipv4AddressType()
Get the ipv4AddressType property: Gets or sets the ipv4 address type.- Returns:
- the ipv4AddressType value.
-
withIpv4AddressType
public NetworkInterfaces withIpv4AddressType(AllocationMethod ipv4AddressType)
Set the ipv4AddressType property: Gets or sets the ipv4 address type.- Parameters:
ipv4AddressType
- the ipv4AddressType value to set.- Returns:
- the NetworkInterfaces object itself.
-
ipv6AddressType
public AllocationMethod ipv6AddressType()
Get the ipv6AddressType property: Gets or sets the ipv6 address type.- Returns:
- the ipv6AddressType value.
-
withIpv6AddressType
public NetworkInterfaces withIpv6AddressType(AllocationMethod ipv6AddressType)
Set the ipv6AddressType property: Gets or sets the ipv6 address type.- Parameters:
ipv6AddressType
- the ipv6AddressType value to set.- Returns:
- the NetworkInterfaces object itself.
-
macAddressType
public AllocationMethod macAddressType()
Get the macAddressType property: Gets or sets the mac address type.- Returns:
- the macAddressType value.
-
withMacAddressType
public NetworkInterfaces withMacAddressType(AllocationMethod macAddressType)
Set the macAddressType property: Gets or sets the mac address type.- Parameters:
macAddressType
- the macAddressType value to set.- Returns:
- the NetworkInterfaces object itself.
-
nicId
public String nicId()
Get the nicId property: Gets or sets the nic id.- Returns:
- the nicId value.
-
withNicId
public NetworkInterfaces withNicId(String nicId)
Set the nicId property: Gets or sets the nic id.- Parameters:
nicId
- the nicId value to set.- Returns:
- the NetworkInterfaces object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-