DscReportError Class

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

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 errorCode property: Gets or sets the error code.

String errorDetails()

Get the errorDetails property: Gets or sets the error details.

String errorMessage()

Get the errorMessage property: Gets or sets the error message.

String errorSource()

Get the errorSource property: Gets or sets the source of the error.

String locale()

Get the locale property: Gets or sets the locale of the error.

String resourceId()

Get the resourceId property: Gets or sets the resource ID which generated the error.

void validate()

Validates the instance.

DscReportError withErrorCode(String errorCode)

Set the errorCode property: Gets or sets the error code.

DscReportError withErrorDetails(String errorDetails)

Set the errorDetails property: Gets or sets the error details.

DscReportError withErrorMessage(String errorMessage)

Set the errorMessage property: Gets or sets the error message.

DscReportError withErrorSource(String errorSource)

Set the errorSource property: Gets or sets the source of the error.

DscReportError withLocale(String locale)

Set the locale property: Gets or sets the locale of the error.

DscReportError withResourceId(String resourceId)

Set the resourceId property: Gets or sets the resource ID which generated the error.

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:

the errorCode value.

errorDetails

public String errorDetails()

Get the errorDetails property: Gets or sets the error details.

Returns:

the errorDetails value.

errorMessage

public String errorMessage()

Get the errorMessage property: Gets or sets the error message.

Returns:

the errorMessage value.

errorSource

public String errorSource()

Get the errorSource property: Gets or sets the source of the error.

Returns:

the errorSource value.

locale

public String locale()

Get the locale property: Gets or sets the locale of the error.

Returns:

the locale value.

resourceId

public String resourceId()

Get the resourceId property: Gets or sets the resource ID which generated the error.

Returns:

the resourceId value.

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

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.

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.

Applies to