Поделиться через


ImageValidationErrorDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.devcenter.models.ImageValidationErrorDetails

Implements

public final class ImageValidationErrorDetails
implements JsonSerializable<ImageValidationErrorDetails>

Image validation error details.

Constructor Summary

Constructor Description
ImageValidationErrorDetails()

Creates an instance of ImageValidationErrorDetails class.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: An identifier for the error.

static ImageValidationErrorDetails fromJson(JsonReader jsonReader)

Reads an instance of ImageValidationErrorDetails from the JsonReader.

String message()

Get the message property: A message describing the error.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ImageValidationErrorDetails withCode(String code)

Set the code property: An identifier for the error.

ImageValidationErrorDetails withMessage(String message)

Set the message property: A message describing the error.

Methods inherited from java.lang.Object

Constructor Details

ImageValidationErrorDetails

public ImageValidationErrorDetails()

Creates an instance of ImageValidationErrorDetails class.

Method Details

code

public String code()

Get the code property: An identifier for the error.

Returns:

the code value.

fromJson

public static ImageValidationErrorDetails fromJson(JsonReader jsonReader)

Reads an instance of ImageValidationErrorDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

message

public String message()

Get the message property: A message describing the error.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCode

public ImageValidationErrorDetails withCode(String code)

Set the code property: An identifier for the error.

Parameters:

code - the code value to set.

Returns:

the ImageValidationErrorDetails object itself.

withMessage

public ImageValidationErrorDetails withMessage(String message)

Set the message property: A message describing the error.

Parameters:

message - the message value to set.

Returns:

the ImageValidationErrorDetails object itself.

Applies to