共用方式為


ErrorMesssage Class

  • java.lang.Object
    • com.azure.resourcemanager.deviceprovisioningservices.models.ErrorMesssage

public final class ErrorMesssage

Error response containing message and code.

Constructor Summary

Constructor Description
ErrorMesssage()

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: standard error code.

String details()

Get the details property: detailed summary of error.

String message()

Get the message property: standard error description.

void validate()

Validates the instance.

ErrorMesssage withCode(String code)

Set the code property: standard error code.

ErrorMesssage withDetails(String details)

Set the details property: detailed summary of error.

ErrorMesssage withMessage(String message)

Set the message property: standard error description.

Methods inherited from java.lang.Object

Constructor Details

ErrorMesssage

public ErrorMesssage()

Method Details

code

public String code()

Get the code property: standard error code.

Returns:

the code value.

details

public String details()

Get the details property: detailed summary of error.

Returns:

the details value.

message

public String message()

Get the message property: standard error description.

Returns:

the message value.

validate

public void validate()

Validates the instance.

withCode

public ErrorMesssage withCode(String code)

Set the code property: standard error code.

Parameters:

code - the code value to set.

Returns:

the ErrorMesssage object itself.

withDetails

public ErrorMesssage withDetails(String details)

Set the details property: detailed summary of error.

Parameters:

details - the details value to set.

Returns:

the ErrorMesssage object itself.

withMessage

public ErrorMesssage withMessage(String message)

Set the message property: standard error description.

Parameters:

message - the message value to set.

Returns:

the ErrorMesssage object itself.

Applies to