Class MeshUpgradeProfileProperties

java.lang.Object
com.azure.resourcemanager.containerservice.models.MeshRevision
com.azure.resourcemanager.containerservice.models.MeshUpgradeProfileProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<MeshRevision>

public final class MeshUpgradeProfileProperties extends MeshRevision
Mesh upgrade profile properties for a major.minor release.
  • Constructor Details

    • MeshUpgradeProfileProperties

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

    • withRevision

      public MeshUpgradeProfileProperties withRevision(String revision)
      Set the revision property: The revision of the mesh release.
      Overrides:
      withRevision in class MeshRevision
      Parameters:
      revision - the revision value to set.
      Returns:
      the MeshRevision object itself.
    • withUpgrades

      public MeshUpgradeProfileProperties withUpgrades(List<String> upgrades)
      Set the upgrades property: List of revisions available for upgrade of a specific mesh revision.
      Overrides:
      withUpgrades in class MeshRevision
      Parameters:
      upgrades - the upgrades value to set.
      Returns:
      the MeshRevision object itself.
    • withCompatibleWith

      public MeshUpgradeProfileProperties withCompatibleWith(List<CompatibleVersions> compatibleWith)
      Set the compatibleWith property: List of items this revision of service mesh is compatible with, and their associated versions.
      Overrides:
      withCompatibleWith in class MeshRevision
      Parameters:
      compatibleWith - the compatibleWith value to set.
      Returns:
      the MeshRevision object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MeshRevision
      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<MeshRevision>
      Overrides:
      toJson in class MeshRevision
      Throws:
      IOException
    • fromJson

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