Package com.azure.compute.batch.models
Class ResizeError
java.lang.Object
com.azure.compute.batch.models.ResizeError
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResizeError>
public final class ResizeError
extends Object
implements com.azure.json.JsonSerializable<ResizeError>
An error that occurred when resizing a Pool.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResizeErrorfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResizeError from the JsonReader.getCode()Get the code property: An identifier for the Pool resize error.Get the message property: A message describing the Pool resize error, intended to be suitable for display in a user interface.Get the values property: A list of additional error details related to the Pool resize error.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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
-
Method Details
-
getCode
Get the code property: An identifier for the Pool resize error. Codes are invariant and are intended to be consumed programmatically.- Returns:
- the code value.
-
getMessage
Get the message property: A message describing the Pool resize error, intended to be suitable for display in a user interface.- Returns:
- the message value.
-
getValues
Get the values property: A list of additional error details related to the Pool resize error.- Returns:
- the values value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResizeError>- Throws:
IOException
-
fromJson
Reads an instance of ResizeError from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResizeError 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 ResizeError.
-