Errors Class

  • java.lang.Object
    • com.azure.resourcemanager.hdinsight.models.Errors

public final class Errors

The error message associated with the cluster creation.

Constructor Summary

Constructor Description
Errors()

Creates an instance of Errors class.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: The error code.

String message()

Get the message property: The error message.

void validate()

Validates the instance.

Errors withCode(String code)

Set the code property: The error code.

Errors withMessage(String message)

Set the message property: The error message.

Methods inherited from java.lang.Object

Constructor Details

Errors

public Errors()

Creates an instance of Errors class.

Method Details

code

public String code()

Get the code property: The error code.

Returns:

the code value.

message

public String message()

Get the message property: The error message.

Returns:

the message value.

validate

public void validate()

Validates the instance.

withCode

public Errors withCode(String code)

Set the code property: The error code.

Parameters:

code - the code value to set.

Returns:

the Errors object itself.

withMessage

public Errors withMessage(String message)

Set the message property: The error message.

Parameters:

message - the message value to set.

Returns:

the Errors object itself.

Applies to