Package com.azure.compute.batch.models
Class BatchApplication
java.lang.Object
com.azure.compute.batch.models.BatchApplication
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchApplication>
public final class BatchApplication
extends Object
implements com.azure.json.JsonSerializable<BatchApplication>
Contains information about an application in an Azure Batch Account.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BatchApplication
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchApplication from the JsonReader.Get the displayName property: The display name for the application.getId()
Get the id property: A string that uniquely identifies the application within the Account.Get the versions property: The list of available versions of the application.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getId
Get the id property: A string that uniquely identifies the application within the Account.- Returns:
- the id value.
-
getDisplayName
Get the displayName property: The display name for the application.- Returns:
- the displayName value.
-
getVersions
Get the versions property: The list of available versions of the application.- Returns:
- the versions value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BatchApplication>
- Throws:
IOException
-
fromJson
Reads an instance of BatchApplication from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of BatchApplication if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the BatchApplication.
-