ImageValidationErrorDetails Class
- java.
lang. Object - com.
azure. resourcemanager. devcenter. models. ImageValidationErrorDetails
- com.
Implements
public final class ImageValidationErrorDetails
implements JsonSerializable<ImageValidationErrorDetails>
Image validation error details.
Constructor Summary
| Constructor | Description |
|---|---|
| ImageValidationErrorDetails() |
Creates an instance of Image |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
code()
Get the code property: An identifier for the error. |
|
static
Image |
fromJson(JsonReader jsonReader)
Reads an instance of Image |
| String |
message()
Get the message property: A message describing the error. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Image |
withCode(String code)
Set the code property: An identifier for the error. |
|
Image |
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:
fromJson
public static ImageValidationErrorDetails fromJson(JsonReader jsonReader)
Reads an instance of ImageValidationErrorDetails from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: A message describing the error.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCode
public ImageValidationErrorDetails withCode(String code)
Set the code property: An identifier for the error.
Parameters:
Returns:
withMessage
public ImageValidationErrorDetails withMessage(String message)
Set the message property: A message describing the error.
Parameters:
Returns: