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>
Mesh upgrade profile properties for a major.minor release.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MeshUpgradeProfileProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MeshUpgradeProfilePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MeshUpgradeProfileProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCompatibleWith(List<CompatibleVersions> compatibleWith) Set the compatibleWith property: List of items this revision of service mesh is compatible with, and their associated versions.withRevision(String revision) Set the revision property: The revision of the mesh release.withUpgrades(List<String> upgrades) Set the upgrades property: List of revisions available for upgrade of a specific mesh revision.Methods inherited from class MeshRevision
compatibleWith, revision, upgradesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MeshUpgradeProfileProperties
public MeshUpgradeProfileProperties()Creates an instance of MeshUpgradeProfileProperties class.
-
-
Method Details
-
withRevision
Set the revision property: The revision of the mesh release.- Overrides:
withRevisionin classMeshRevision- Parameters:
revision- the revision value to set.- Returns:
- the MeshRevision object itself.
-
withUpgrades
Set the upgrades property: List of revisions available for upgrade of a specific mesh revision.- Overrides:
withUpgradesin classMeshRevision- Parameters:
upgrades- the upgrades value to set.- Returns:
- the MeshRevision object itself.
-
withCompatibleWith
Set the compatibleWith property: List of items this revision of service mesh is compatible with, and their associated versions.- Overrides:
withCompatibleWithin classMeshRevision- Parameters:
compatibleWith- the compatibleWith value to set.- Returns:
- the MeshRevision object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classMeshRevision- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MeshRevision>- Overrides:
toJsonin classMeshRevision- 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.
-