Class ResizeError

java.lang.Object
com.azure.resourcemanager.batch.models.ResizeError

public final class ResizeError extends Object
An error that occurred when resizing a pool.
  • Constructor Details

    • ResizeError

      public ResizeError()
      Creates an instance of ResizeError class.
  • Method Details

    • code

      public String code()
      Get the code property: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
      Returns:
      the code value.
    • withCode

      public ResizeError withCode(String code)
      Set the code property: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
      Parameters:
      code - the code value to set.
      Returns:
      the ResizeError object itself.
    • message

      public String message()
      Get the message property: A message describing the error, intended to be suitable for display in a user interface.
      Returns:
      the message value.
    • withMessage

      public ResizeError withMessage(String message)
      Set the message property: A message describing the error, intended to be suitable for display in a user interface.
      Parameters:
      message - the message value to set.
      Returns:
      the ResizeError object itself.
    • details

      public List<ResizeError> details()
      Get the details property: Additional details about the error.
      Returns:
      the details value.
    • withDetails

      public ResizeError withDetails(List<ResizeError> details)
      Set the details property: Additional details about the error.
      Parameters:
      details - the details value to set.
      Returns:
      the ResizeError object itself.
    • validate

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