Class SupportedRuntimeVersion
java.lang.Object
com.azure.resourcemanager.appplatform.models.SupportedRuntimeVersion
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SupportedRuntimeVersion>
public final class SupportedRuntimeVersion
extends Object
implements com.azure.json.JsonSerializable<SupportedRuntimeVersion>
Supported deployment runtime version descriptor.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SupportedRuntimeVersion class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SupportedRuntimeVersionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SupportedRuntimeVersion from the JsonReader.platform()Get the platform property: The platform of this runtime version (possible values: "Java" or ".NET").com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.value()Get the value property: The raw value which could be passed to deployment CRUD operations.version()Get the version property: The detailed version (major.minor) of the platform.withPlatform(SupportedRuntimePlatform platform) Set the platform property: The platform of this runtime version (possible values: "Java" or ".NET").withValue(SupportedRuntimeValue value) Set the value property: The raw value which could be passed to deployment CRUD operations.withVersion(String version) Set the version property: The detailed version (major.minor) of the platform.Methods inherited from class java.lang.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
-
SupportedRuntimeVersion
public SupportedRuntimeVersion()Creates an instance of SupportedRuntimeVersion class.
-
-
Method Details
-
value
Get the value property: The raw value which could be passed to deployment CRUD operations.- Returns:
- the value value.
-
withValue
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.
-
platform
Get the platform property: The platform of this runtime version (possible values: "Java" or ".NET").- Returns:
- the platform value.
-
withPlatform
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.
-
version
Get the version property: The detailed version (major.minor) of the platform.- Returns:
- the version value.
-
withVersion
Set the version property: The detailed version (major.minor) of the platform.- Parameters:
version- the version value to set.- Returns:
- the SupportedRuntimeVersion object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SupportedRuntimeVersion>- Throws:
IOException
-
fromJson
public static SupportedRuntimeVersion fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-