Class ModuleErrorInfo

java.lang.Object
com.azure.resourcemanager.automation.models.ModuleErrorInfo

public final class ModuleErrorInfo extends Object
Definition of the module error info type.
  • Constructor Details

    • ModuleErrorInfo

      public ModuleErrorInfo()
  • Method Details

    • code

      public String code()
      Get the code property: Gets or sets the error code.
      Returns:
      the code value.
    • withCode

      public ModuleErrorInfo withCode(String code)
      Set the code property: Gets or sets the error code.
      Parameters:
      code - the code value to set.
      Returns:
      the ModuleErrorInfo object itself.
    • message

      public String message()
      Get the message property: Gets or sets the error message.
      Returns:
      the message value.
    • withMessage

      public ModuleErrorInfo withMessage(String message)
      Set the message property: Gets or sets the error message.
      Parameters:
      message - the message value to set.
      Returns:
      the ModuleErrorInfo object itself.
    • validate

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