SupportedRuntimeVersion Class

  • java.lang.Object
    • com.azure.resourcemanager.appplatform.models.SupportedRuntimeVersion

Implements

public final class SupportedRuntimeVersion
implements JsonSerializable<SupportedRuntimeVersion>

Supported deployment runtime version descriptor.

Constructor Summary

Constructor Description
SupportedRuntimeVersion()

Creates an instance of SupportedRuntimeVersion class.

Method Summary

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

Reads an instance of SupportedRuntimeVersion from the JsonReader.

SupportedRuntimePlatform platform()

Get the platform property: The platform of this runtime version (possible values: "Java" or ".NET").

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SupportedRuntimeValue value()

Get the value property: The raw value which could be passed to deployment CRUD operations.

String version()

Get the version property: The detailed version (major.minor) of the platform.

SupportedRuntimeVersion withPlatform(SupportedRuntimePlatform platform)

Set the platform property: The platform of this runtime version (possible values: "Java" or ".NET").

SupportedRuntimeVersion withValue(SupportedRuntimeValue value)

Set the value property: The raw value which could be passed to deployment CRUD operations.

SupportedRuntimeVersion withVersion(String version)

Set the version property: The detailed version (major.minor) of the platform.

Methods inherited from java.lang.Object

Constructor Details

SupportedRuntimeVersion

public SupportedRuntimeVersion()

Creates an instance of SupportedRuntimeVersion class.

Method Details

fromJson

public static SupportedRuntimeVersion fromJson(JsonReader jsonReader)

Reads an instance of SupportedRuntimeVersion from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

platform

public SupportedRuntimePlatform platform()

Get the platform property: The platform of this runtime version (possible values: "Java" or ".NET").

Returns:

the platform value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public SupportedRuntimeValue value()

Get the value property: The raw value which could be passed to deployment CRUD operations.

Returns:

the value value.

version

public String version()

Get the version property: The detailed version (major.minor) of the platform.

Returns:

the version value.

withPlatform

public SupportedRuntimeVersion withPlatform(SupportedRuntimePlatform platform)

Set the platform property: The platform of this runtime version (possible values: "Java" or ".NET").

Parameters:

platform - the platform value to set.

Returns:

the SupportedRuntimeVersion object itself.

withValue

public SupportedRuntimeVersion withValue(SupportedRuntimeValue value)

Set the value property: The raw value which could be passed to deployment CRUD operations.

Parameters:

value - the value value to set.

Returns:

the SupportedRuntimeVersion object itself.

withVersion

public SupportedRuntimeVersion withVersion(String version)

Set the version property: The detailed version (major.minor) of the platform.

Parameters:

version - the version value to set.

Returns:

the SupportedRuntimeVersion object itself.

Applies to