Class DscReportError

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

public final class DscReportError extends Object
Definition of the dsc node report error type.
  • Constructor Details

    • DscReportError

      public DscReportError()
  • Method Details

    • errorSource

      public String errorSource()
      Get the errorSource property: Gets or sets the source of the error.
      Returns:
      the errorSource value.
    • withErrorSource

      public DscReportError withErrorSource(String errorSource)
      Set the errorSource property: Gets or sets the source of the error.
      Parameters:
      errorSource - the errorSource value to set.
      Returns:
      the DscReportError object itself.
    • resourceId

      public String resourceId()
      Get the resourceId property: Gets or sets the resource ID which generated the error.
      Returns:
      the resourceId value.
    • withResourceId

      public DscReportError withResourceId(String resourceId)
      Set the resourceId property: Gets or sets the resource ID which generated the error.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the DscReportError object itself.
    • errorCode

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

      public DscReportError withErrorCode(String errorCode)
      Set the errorCode property: Gets or sets the error code.
      Parameters:
      errorCode - the errorCode value to set.
      Returns:
      the DscReportError object itself.
    • errorMessage

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

      public DscReportError withErrorMessage(String errorMessage)
      Set the errorMessage property: Gets or sets the error message.
      Parameters:
      errorMessage - the errorMessage value to set.
      Returns:
      the DscReportError object itself.
    • locale

      public String locale()
      Get the locale property: Gets or sets the locale of the error.
      Returns:
      the locale value.
    • withLocale

      public DscReportError withLocale(String locale)
      Set the locale property: Gets or sets the locale of the error.
      Parameters:
      locale - the locale value to set.
      Returns:
      the DscReportError object itself.
    • errorDetails

      public String errorDetails()
      Get the errorDetails property: Gets or sets the error details.
      Returns:
      the errorDetails value.
    • withErrorDetails

      public DscReportError withErrorDetails(String errorDetails)
      Set the errorDetails property: Gets or sets the error details.
      Parameters:
      errorDetails - the errorDetails value to set.
      Returns:
      the DscReportError object itself.
    • validate

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