Compartir vía


ResizeError Class

  • java.lang.Object
    • com.azure.resourcemanager.batch.models.ResizeError

Implements

public final class ResizeError
implements JsonSerializable<ResizeError>

An error that occurred when resizing a pool.

Constructor Summary

Constructor Description
ResizeError()

Creates an instance of ResizeError class.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: An identifier for the error.

List<ResizeError> details()

Get the details property: Additional details about the error.

static ResizeError fromJson(JsonReader jsonReader)

Reads an instance of ResizeError from the JsonReader.

String message()

Get the message property: A message describing the error, intended to be suitable for display in a user interface.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResizeError withCode(String code)

Set the code property: An identifier for the error.

ResizeError withDetails(List<ResizeError> details)

Set the details property: Additional details about the error.

ResizeError withMessage(String message)

Set the message property: A message describing the error, intended to be suitable for display in a user interface.

Methods inherited from java.lang.Object

Constructor Details

ResizeError

public ResizeError()

Creates an instance of ResizeError class.

Method Details

code

public String code()

Get the code property: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.

Returns:

the code value.

details

public List<ResizeError> details()

Get the details property: Additional details about the error.

Returns:

the details value.

fromJson

public static ResizeError fromJson(JsonReader jsonReader)

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 the deserialized JSON object was missing any required properties.

message

public String message()

Get the message property: A message describing the error, intended to be suitable for display in a user interface.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCode

public ResizeError withCode(String code)

Set the code property: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.

Parameters:

code - the code value to set.

Returns:

the ResizeError object itself.

withDetails

public ResizeError withDetails(List<ResizeError> details)

Set the details property: Additional details about the error.

Parameters:

details - the details value to set.

Returns:

the ResizeError object itself.

withMessage

public ResizeError withMessage(String message)

Set the message property: A message describing the error, intended to be suitable for display in a user interface.

Parameters:

message - the message value to set.

Returns:

the ResizeError object itself.

Applies to