Class ImageValidationErrorDetails

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

public final class ImageValidationErrorDetails extends Object
Image validation error details.
  • 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.
    • 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.
    • message

      public String message()
      Get the message property: A message describing the error.
      Returns:
      the message value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.