DscReportError Class
- java.
lang. Object - com.
azure. resourcemanager. automation. models. DscReportError
- com.
public final class DscReportError
Definition of the dsc node report error type.
Constructor Summary
Constructor | Description | |
---|---|---|
DscReportError() |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
errorCode()
Get the error |
String |
errorDetails()
Get the error |
String |
errorMessage()
Get the error |
String |
errorSource()
Get the error |
String |
locale()
Get the locale property: Gets or sets the locale of the error. |
String |
resourceId()
Get the resource |
void |
validate()
Validates the instance. |
Dsc |
withErrorCode(String errorCode)
Set the error |
Dsc |
withErrorDetails(String errorDetails)
Set the error |
Dsc |
withErrorMessage(String errorMessage)
Set the error |
Dsc |
withErrorSource(String errorSource)
Set the error |
Dsc |
withLocale(String locale)
Set the locale property: Gets or sets the locale of the error. |
Dsc |
withResourceId(String resourceId)
Set the resource |
Methods inherited from java.lang.Object
Constructor Details
DscReportError
public DscReportError()
Method Details
errorCode
public String errorCode()
Get the errorCode property: Gets or sets the error code.
Returns:
errorDetails
public String errorDetails()
Get the errorDetails property: Gets or sets the error details.
Returns:
errorMessage
public String errorMessage()
Get the errorMessage property: Gets or sets the error message.
Returns:
errorSource
public String errorSource()
Get the errorSource property: Gets or sets the source of the error.
Returns:
locale
public String locale()
Get the locale property: Gets or sets the locale of the error.
Returns:
resourceId
public String resourceId()
Get the resourceId property: Gets or sets the resource ID which generated the error.
Returns:
validate
public void validate()
Validates the instance.
withErrorCode
public DscReportError withErrorCode(String errorCode)
Set the errorCode property: Gets or sets the error code.
Parameters:
Returns:
withErrorDetails
public DscReportError withErrorDetails(String errorDetails)
Set the errorDetails property: Gets or sets the error details.
Parameters:
Returns:
withErrorMessage
public DscReportError withErrorMessage(String errorMessage)
Set the errorMessage property: Gets or sets the error message.
Parameters:
Returns:
withErrorSource
public DscReportError withErrorSource(String errorSource)
Set the errorSource property: Gets or sets the source of the error.
Parameters:
Returns:
withLocale
public DscReportError withLocale(String locale)
Set the locale property: Gets or sets the locale of the error.
Parameters:
Returns:
withResourceId
public DscReportError withResourceId(String resourceId)
Set the resourceId property: Gets or sets the resource ID which generated the error.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for