Class MeshRevision
java.lang.Object
com.azure.resourcemanager.containerservice.models.MeshRevision
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MeshRevision>
- Direct Known Subclasses:
MeshUpgradeProfileProperties
Holds information on upgrades and compatibility for given major.minor mesh release.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates an instance of MeshRevision class. -
Method Summary
Modifier and TypeMethodDescriptionGet the compatibleWith property: List of items this revision of service mesh is compatible with, and their associated versions.static MeshRevisionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MeshRevision from the JsonReader.revision()Get the revision property: The revision of the mesh release.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) upgrades()Get the upgrades property: List of revisions available for upgrade of a specific mesh revision.voidvalidate()Validates the instance.Methods 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
-
MeshRevision
protected MeshRevision()Creates an instance of MeshRevision class.
-
-
Method Details
-
revision
Get the revision property: The revision of the mesh release.- Returns:
- the revision value.
-
upgrades
-
compatibleWith
Get the compatibleWith property: List of items this revision of service mesh is compatible with, and their associated versions.- Returns:
- the compatibleWith value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MeshRevision>- Throws:
IOException
-
fromJson
Reads an instance of MeshRevision from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MeshRevision 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 MeshRevision.
-