Class ContainerNetworkInterfacePropertiesFormat

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

public final class ContainerNetworkInterfacePropertiesFormat extends Object implements com.azure.json.JsonSerializable<ContainerNetworkInterfacePropertiesFormat>
Properties of container network interface.
  • Constructor Details

    • ContainerNetworkInterfacePropertiesFormat

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

    • containerNetworkInterfaceConfiguration

      public ContainerNetworkInterfaceConfiguration containerNetworkInterfaceConfiguration()
      Get the containerNetworkInterfaceConfiguration property: Container network interface configuration from which this container network interface is created.
      Returns:
      the containerNetworkInterfaceConfiguration value.
    • container

      public Container container()
      Get the container property: Reference to the container to which this container network interface is attached.
      Returns:
      the container value.
    • withContainer

      public ContainerNetworkInterfacePropertiesFormat withContainer(Container container)
      Set the container property: Reference to the container to which this container network interface is attached.
      Parameters:
      container - the container value to set.
      Returns:
      the ContainerNetworkInterfacePropertiesFormat object itself.
    • ipConfigurations

      public List<ContainerNetworkInterfaceIpConfiguration> ipConfigurations()
      Get the ipConfigurations property: Reference to the ip configuration on this container nic.
      Returns:
      the ipConfigurations value.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the container network interface resource.
      Returns:
      the provisioningState value.
    • 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<ContainerNetworkInterfacePropertiesFormat>
      Throws:
      IOException
    • fromJson

      public static ContainerNetworkInterfacePropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ContainerNetworkInterfacePropertiesFormat from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ContainerNetworkInterfacePropertiesFormat 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 ContainerNetworkInterfacePropertiesFormat.