Class RuntimeNetworkProfile

java.lang.Object
com.azure.resourcemanager.compute.workloadmanager.models.RuntimeNetworkProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<RuntimeNetworkProfile>

public final class RuntimeNetworkProfile extends Object implements com.azure.json.JsonSerializable<RuntimeNetworkProfile>
Network configuration for a managed runtime.
  • Constructor Details

    • RuntimeNetworkProfile

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

    • subnetResourceId

      public String subnetResourceId()
      Get the subnetResourceId property: The customer-provided subnet used by the runtime.
      Returns:
      the subnetResourceId value.
    • withSubnetResourceId

      public RuntimeNetworkProfile withSubnetResourceId(String subnetResourceId)
      Set the subnetResourceId property: The customer-provided subnet used by the runtime.
      Parameters:
      subnetResourceId - the subnetResourceId value to set.
      Returns:
      the RuntimeNetworkProfile object itself.
    • egressMode

      public EgressMode egressMode()
      Get the egressMode property: Indicates who manages runtime egress.
      Returns:
      the egressMode value.
    • withEgressMode

      public RuntimeNetworkProfile withEgressMode(EgressMode egressMode)
      Set the egressMode property: Indicates who manages runtime egress.
      Parameters:
      egressMode - the egressMode value to set.
      Returns:
      the RuntimeNetworkProfile object itself.
    • toJson

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

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