你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ErrorFieldContract Class

  • java.lang.Object
    • com.microsoft.azure.management.apimanagement.v2019_01_01.ErrorFieldContract

public class ErrorFieldContract

Error Field contract.

Constructor Summary

Constructor Description
ErrorFieldContract()

Method Summary

Modifier and Type Method and Description
java.lang.String code()

Get property level error code.

java.lang.String message()

Get human-readable representation of property-level error.

java.lang.String target()

Get property name.

ErrorFieldContract withCode(String code)

Set property level error code.

ErrorFieldContract withMessage(String message)

Set human-readable representation of property-level error.

ErrorFieldContract withTarget(String target)

Set property name.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ErrorFieldContract

public ErrorFieldContract()

Method Details

code

public String code()

Get property level error code.

Returns:

the code value

message

public String message()

Get human-readable representation of property-level error.

Returns:

the message value

target

public String target()

Get property name.

Returns:

the target value

withCode

public ErrorFieldContract withCode(String code)

Set property level error code.

Parameters:

code - the code value to set

Returns:

the ErrorFieldContract object itself.

withMessage

public ErrorFieldContract withMessage(String message)

Set human-readable representation of property-level error.

Parameters:

message - the message value to set

Returns:

the ErrorFieldContract object itself.

withTarget

public ErrorFieldContract withTarget(String target)

Set property name.

Parameters:

target - the target value to set

Returns:

the ErrorFieldContract object itself.

Applies to