ErrorDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.resourcegraph.models.ErrorDetails

public final class ErrorDetails

Error details.

Constructor Summary

Constructor Description
ErrorDetails()

Creates an instance of ErrorDetails class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: Error details.

String code()

Get the code property: Error code identifying the specific error.

String message()

Get the message property: A human readable error message.

void validate()

Validates the instance.

ErrorDetails withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Error details.

ErrorDetails withCode(String code)

Set the code property: Error code identifying the specific error.

ErrorDetails withMessage(String message)

Set the message property: A human readable error message.

Methods inherited from java.lang.Object

Constructor Details

ErrorDetails

public ErrorDetails()

Creates an instance of ErrorDetails class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: Error details.

Returns:

the additionalProperties value.

code

public String code()

Get the code property: Error code identifying the specific error.

Returns:

the code value.

message

public String message()

Get the message property: A human readable error message.

Returns:

the message value.

validate

public void validate()

Validates the instance.

withAdditionalProperties

public ErrorDetails withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: Error details.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the ErrorDetails object itself.

withCode

public ErrorDetails withCode(String code)

Set the code property: Error code identifying the specific error.

Parameters:

code - the code value to set.

Returns:

the ErrorDetails object itself.

withMessage

public ErrorDetails withMessage(String message)

Set the message property: A human readable error message.

Parameters:

message - the message value to set.

Returns:

the ErrorDetails object itself.

Applies to