ErrorFieldContract Class
- java.
lang. Object - com.
microsoft. azure. management. apimanagement. v2019_01_01.ErrorFieldContract
- com.
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. |
|
Error |
withCode(String code)
Set property level error code. |
|
Error |
withMessage(String message)
Set human-readable representation of property-level error. |
|
Error |
withTarget(String target)
Set property name. |
Methods inherited from java.lang.Object
Constructor Details
ErrorFieldContract
public ErrorFieldContract()
Method Details
code
public String code()
Get property level error code.
Returns:
message
public String message()
Get human-readable representation of property-level error.
Returns:
target
public String target()
Get property name.
Returns:
withCode
public ErrorFieldContract withCode(String code)
Set property level error code.
Parameters:
Returns:
withMessage
public ErrorFieldContract withMessage(String message)
Set human-readable representation of property-level error.
Parameters:
Returns:
withTarget
public ErrorFieldContract withTarget(String target)
Set property name.
Parameters:
Returns: