MeshRevision Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.MeshRevision

Implements

public class MeshRevision
implements JsonSerializable<MeshRevision>

Holds information on upgrades and compatibility for given major.minor mesh release.

Constructor Summary

Constructor Description
MeshRevision()

Creates an instance of MeshRevision class.

Method Summary

Modifier and Type Method and Description
List<CompatibleVersions> compatibleWith()

Get the compatibleWith property: List of items this revision of service mesh is compatible with, and their associated versions.

static MeshRevision fromJson(JsonReader jsonReader)

Reads an instance of MeshRevision from the JsonReader.

String revision()

Get the revision property: The revision of the mesh release.

JsonWriter toJson(JsonWriter jsonWriter)
List<String> upgrades()

Get the upgrades property: List of revisions available for upgrade of a specific mesh revision.

void validate()

Validates the instance.

MeshRevision withCompatibleWith(List<CompatibleVersions> compatibleWith)

Set the compatibleWith property: List of items this revision of service mesh is compatible with, and their associated versions.

MeshRevision withRevision(String revision)

Set the revision property: The revision of the mesh release.

MeshRevision withUpgrades(List<String> upgrades)

Set the upgrades property: List of revisions available for upgrade of a specific mesh revision.

Methods inherited from java.lang.Object

Constructor Details

MeshRevision

public MeshRevision()

Creates an instance of MeshRevision class.

Method Details

compatibleWith

public List compatibleWith()

Get the compatibleWith property: List of items this revision of service mesh is compatible with, and their associated versions.

Returns:

the compatibleWith value.

fromJson

public static MeshRevision fromJson(JsonReader jsonReader)

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.

revision

public String revision()

Get the revision property: The revision of the mesh release.

Returns:

the revision value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

upgrades

public List upgrades()

Get the upgrades property: List of revisions available for upgrade of a specific mesh revision.

Returns:

the upgrades value.

validate

public void validate()

Validates the instance.

withCompatibleWith

public MeshRevision withCompatibleWith(List compatibleWith)

Set the compatibleWith property: List of items this revision of service mesh is compatible with, and their associated versions.

Parameters:

compatibleWith - the compatibleWith value to set.

Returns:

the MeshRevision object itself.

withRevision

public MeshRevision withRevision(String revision)

Set the revision property: The revision of the mesh release.

Parameters:

revision - the revision value to set.

Returns:

the MeshRevision object itself.

withUpgrades

public MeshRevision withUpgrades(List upgrades)

Set the upgrades property: List of revisions available for upgrade of a specific mesh revision.

Parameters:

upgrades - the upgrades value to set.

Returns:

the MeshRevision object itself.

Applies to