Share via


BatchCertificateDeleteError Class

  • java.lang.Object
    • com.azure.compute.batch.models.BatchCertificateDeleteError

Implements

public final class BatchCertificateDeleteError
implements JsonSerializable<BatchCertificateDeleteError>

An error encountered by the Batch service when deleting a Certificate.

Method Summary

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

Reads an instance of BatchCertificateDeleteError from the JsonReader.

String getCode()

Get the code property: An identifier for the Certificate deletion error.

String getMessage()

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

List<NameValuePair> getValues()

Get the values property: A list of additional error details related to the Certificate deletion error.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchCertificateDeleteError fromJson(JsonReader jsonReader)

Reads an instance of BatchCertificateDeleteError from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getCode

public String getCode()

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

Returns:

the code value.

getMessage

public String getMessage()

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

Returns:

the message value.

getValues

public List<NameValuePair> getValues()

Get the values property: A list of additional error details related to the Certificate deletion error. This list includes details such as the active Pools and Compute Nodes referencing this Certificate. However, if a large number of resources reference the Certificate, the list contains only about the first hundred.

Returns:

the values value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to