Class ImageValidationErrorDetails
java.lang.Object
com.azure.resourcemanager.devcenter.models.ImageValidationErrorDetails
Image validation error details.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ImageValidationErrorDetails class. -
Method Summary
Modifier and TypeMethodDescriptioncode()
Get the code property: An identifier for the error.message()
Get the message property: A message describing the error.void
validate()
Validates the instance.Set the code property: An identifier for the error.withMessage
(String message) Set the message property: A message describing the error.
-
Constructor Details
-
ImageValidationErrorDetails
public ImageValidationErrorDetails()Creates an instance of ImageValidationErrorDetails class.
-
-
Method Details
-
code
Get the code property: An identifier for the error.- Returns:
- the code value.
-
withCode
Set the code property: An identifier for the error.- Parameters:
code
- the code value to set.- Returns:
- the ImageValidationErrorDetails object itself.
-
message
Get the message property: A message describing the error.- Returns:
- the message value.
-
withMessage
Set the message property: A message describing the error.- Parameters:
message
- the message value to set.- Returns:
- the ImageValidationErrorDetails object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-