CompatibleVersions Class

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

Implements

public final class CompatibleVersions
implements JsonSerializable<CompatibleVersions>

Version information about a product/service that is compatible with a service mesh revision.

Constructor Summary

Constructor Description
CompatibleVersions()

Creates an instance of CompatibleVersions class.

Method Summary

Modifier and Type Method and Description
static CompatibleVersions fromJson(JsonReader jsonReader)

Reads an instance of CompatibleVersions from the JsonReader.

String name()

Get the name property: The product/service name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<String> versions()

Get the versions property: Product/service versions compatible with a service mesh add-on revision.

CompatibleVersions withName(String name)

Set the name property: The product/service name.

CompatibleVersions withVersions(List<String> versions)

Set the versions property: Product/service versions compatible with a service mesh add-on revision.

Methods inherited from java.lang.Object

Constructor Details

CompatibleVersions

public CompatibleVersions()

Creates an instance of CompatibleVersions class.

Method Details

fromJson

public static CompatibleVersions fromJson(JsonReader jsonReader)

Reads an instance of CompatibleVersions from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CompatibleVersions 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 CompatibleVersions.

name

public String name()

Get the name property: The product/service name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

versions

public List versions()

Get the versions property: Product/service versions compatible with a service mesh add-on revision.

Returns:

the versions value.

withName

public CompatibleVersions withName(String name)

Set the name property: The product/service name.

Parameters:

name - the name value to set.

Returns:

the CompatibleVersions object itself.

withVersions

public CompatibleVersions withVersions(List versions)

Set the versions property: Product/service versions compatible with a service mesh add-on revision.

Parameters:

versions - the versions value to set.

Returns:

the CompatibleVersions object itself.

Applies to