Class NetworkInterfacePropertiesFormatInner

java.lang.Object
com.azure.resourcemanager.network.fluent.models.NetworkInterfacePropertiesFormatInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkInterfacePropertiesFormatInner>

public final class NetworkInterfacePropertiesFormatInner extends Object implements com.azure.json.JsonSerializable<NetworkInterfacePropertiesFormatInner>
NetworkInterface properties.
  • Constructor Details

    • NetworkInterfacePropertiesFormatInner

      public NetworkInterfacePropertiesFormatInner()
      Creates an instance of NetworkInterfacePropertiesFormatInner class.
  • Method Details

    • virtualMachine

      public com.azure.core.management.SubResource virtualMachine()
      Get the virtualMachine property: The reference to a virtual machine.
      Returns:
      the virtualMachine value.
    • networkSecurityGroup

      public NetworkSecurityGroupInner networkSecurityGroup()
      Get the networkSecurityGroup property: The reference to the NetworkSecurityGroup resource.
      Returns:
      the networkSecurityGroup value.
    • withNetworkSecurityGroup

      public NetworkInterfacePropertiesFormatInner withNetworkSecurityGroup(NetworkSecurityGroupInner networkSecurityGroup)
      Set the networkSecurityGroup property: The reference to the NetworkSecurityGroup resource.
      Parameters:
      networkSecurityGroup - the networkSecurityGroup value to set.
      Returns:
      the NetworkInterfacePropertiesFormatInner object itself.
    • privateEndpoint

      public PrivateEndpointInner privateEndpoint()
      Get the privateEndpoint property: A reference to the private endpoint to which the network interface is linked.
      Returns:
      the privateEndpoint value.
    • ipConfigurations

      public List<NetworkInterfaceIpConfigurationInner> ipConfigurations()
      Get the ipConfigurations property: A list of IPConfigurations of the network interface.
      Returns:
      the ipConfigurations value.
    • withIpConfigurations

      public NetworkInterfacePropertiesFormatInner withIpConfigurations(List<NetworkInterfaceIpConfigurationInner> ipConfigurations)
      Set the ipConfigurations property: A list of IPConfigurations of the network interface.
      Parameters:
      ipConfigurations - the ipConfigurations value to set.
      Returns:
      the NetworkInterfacePropertiesFormatInner object itself.
    • tapConfigurations

      public List<NetworkInterfaceTapConfigurationInner> tapConfigurations()
      Get the tapConfigurations property: A list of TapConfigurations of the network interface.
      Returns:
      the tapConfigurations value.
    • dnsSettings

      public NetworkInterfaceDnsSettings dnsSettings()
      Get the dnsSettings property: The DNS settings in network interface.
      Returns:
      the dnsSettings value.
    • withDnsSettings

      Set the dnsSettings property: The DNS settings in network interface.
      Parameters:
      dnsSettings - the dnsSettings value to set.
      Returns:
      the NetworkInterfacePropertiesFormatInner object itself.
    • macAddress

      public String macAddress()
      Get the macAddress property: The MAC address of the network interface.
      Returns:
      the macAddress value.
    • primary

      public Boolean primary()
      Get the primary property: Whether this is a primary network interface on a virtual machine.
      Returns:
      the primary value.
    • vnetEncryptionSupported

      public Boolean vnetEncryptionSupported()
      Get the vnetEncryptionSupported property: Whether the virtual machine this nic is attached to supports encryption.
      Returns:
      the vnetEncryptionSupported value.
    • defaultOutboundConnectivityEnabled

      public Boolean defaultOutboundConnectivityEnabled()
      Get the defaultOutboundConnectivityEnabled property: Whether default outbound connectivity for nic was configured or not.
      Returns:
      the defaultOutboundConnectivityEnabled value.
    • enableAcceleratedNetworking

      public Boolean enableAcceleratedNetworking()
      Get the enableAcceleratedNetworking property: If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking.
      Returns:
      the enableAcceleratedNetworking value.
    • withEnableAcceleratedNetworking

      public NetworkInterfacePropertiesFormatInner withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking)
      Set the enableAcceleratedNetworking property: If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking.
      Parameters:
      enableAcceleratedNetworking - the enableAcceleratedNetworking value to set.
      Returns:
      the NetworkInterfacePropertiesFormatInner object itself.
    • disableTcpStateTracking

      public Boolean disableTcpStateTracking()
      Get the disableTcpStateTracking property: Indicates whether to disable tcp state tracking.
      Returns:
      the disableTcpStateTracking value.
    • withDisableTcpStateTracking

      public NetworkInterfacePropertiesFormatInner withDisableTcpStateTracking(Boolean disableTcpStateTracking)
      Set the disableTcpStateTracking property: Indicates whether to disable tcp state tracking.
      Parameters:
      disableTcpStateTracking - the disableTcpStateTracking value to set.
      Returns:
      the NetworkInterfacePropertiesFormatInner object itself.
    • enableIpForwarding

      public Boolean enableIpForwarding()
      Get the enableIpForwarding property: Indicates whether IP forwarding is enabled on this network interface.
      Returns:
      the enableIpForwarding value.
    • withEnableIpForwarding

      public NetworkInterfacePropertiesFormatInner withEnableIpForwarding(Boolean enableIpForwarding)
      Set the enableIpForwarding property: Indicates whether IP forwarding is enabled on this network interface.
      Parameters:
      enableIpForwarding - the enableIpForwarding value to set.
      Returns:
      the NetworkInterfacePropertiesFormatInner object itself.
    • hostedWorkloads

      public List<String> hostedWorkloads()
      Get the hostedWorkloads property: A list of references to linked BareMetal resources.
      Returns:
      the hostedWorkloads value.
    • dscpConfiguration

      public com.azure.core.management.SubResource dscpConfiguration()
      Get the dscpConfiguration property: A reference to the dscp configuration to which the network interface is linked.
      Returns:
      the dscpConfiguration value.
    • resourceGuid

      public String resourceGuid()
      Get the resourceGuid property: The resource GUID property of the network interface resource.
      Returns:
      the resourceGuid value.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the network interface resource.
      Returns:
      the provisioningState value.
    • workloadType

      public String workloadType()
      Get the workloadType property: WorkloadType of the NetworkInterface for BareMetal resources.
      Returns:
      the workloadType value.
    • withWorkloadType

      public NetworkInterfacePropertiesFormatInner withWorkloadType(String workloadType)
      Set the workloadType property: WorkloadType of the NetworkInterface for BareMetal resources.
      Parameters:
      workloadType - the workloadType value to set.
      Returns:
      the NetworkInterfacePropertiesFormatInner object itself.
    • nicType

      public NetworkInterfaceNicType nicType()
      Get the nicType property: Type of Network Interface resource.
      Returns:
      the nicType value.
    • withNicType

      Set the nicType property: Type of Network Interface resource.
      Parameters:
      nicType - the nicType value to set.
      Returns:
      the NetworkInterfacePropertiesFormatInner object itself.
    • privateLinkService

      public PrivateLinkServiceInner privateLinkService()
      Get the privateLinkService property: Privatelinkservice of the network interface resource.
      Returns:
      the privateLinkService value.
    • withPrivateLinkService

      public NetworkInterfacePropertiesFormatInner withPrivateLinkService(PrivateLinkServiceInner privateLinkService)
      Set the privateLinkService property: Privatelinkservice of the network interface resource.
      Parameters:
      privateLinkService - the privateLinkService value to set.
      Returns:
      the NetworkInterfacePropertiesFormatInner object itself.
    • migrationPhase

      public NetworkInterfaceMigrationPhase migrationPhase()
      Get the migrationPhase property: Migration phase of Network Interface resource.
      Returns:
      the migrationPhase value.
    • withMigrationPhase

      public NetworkInterfacePropertiesFormatInner withMigrationPhase(NetworkInterfaceMigrationPhase migrationPhase)
      Set the migrationPhase property: Migration phase of Network Interface resource.
      Parameters:
      migrationPhase - the migrationPhase value to set.
      Returns:
      the NetworkInterfacePropertiesFormatInner object itself.
    • auxiliaryMode

      public NetworkInterfaceAuxiliaryMode auxiliaryMode()
      Get the auxiliaryMode property: Auxiliary mode of Network Interface resource.
      Returns:
      the auxiliaryMode value.
    • withAuxiliaryMode

      public NetworkInterfacePropertiesFormatInner withAuxiliaryMode(NetworkInterfaceAuxiliaryMode auxiliaryMode)
      Set the auxiliaryMode property: Auxiliary mode of Network Interface resource.
      Parameters:
      auxiliaryMode - the auxiliaryMode value to set.
      Returns:
      the NetworkInterfacePropertiesFormatInner object itself.
    • auxiliarySku

      public NetworkInterfaceAuxiliarySku auxiliarySku()
      Get the auxiliarySku property: Auxiliary sku of Network Interface resource.
      Returns:
      the auxiliarySku value.
    • withAuxiliarySku

      Set the auxiliarySku property: Auxiliary sku of Network Interface resource.
      Parameters:
      auxiliarySku - the auxiliarySku value to set.
      Returns:
      the NetworkInterfacePropertiesFormatInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<NetworkInterfacePropertiesFormatInner>
      Throws:
      IOException
    • fromJson

      public static NetworkInterfacePropertiesFormatInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of NetworkInterfacePropertiesFormatInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of NetworkInterfacePropertiesFormatInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the NetworkInterfacePropertiesFormatInner.