Class ErrorEntity
- java.lang.Object
-
- com.microsoft.azure.management.appservice.ErrorEntity
-
public class ErrorEntity extends Object
Body of the error response returned from the API.
-
-
Constructor Summary
Constructors Constructor Description ErrorEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcode()Get basic error code.StringextendedCode()Get type of error.List<ErrorEntity>innerErrors()Get inner errors.Stringmessage()Get any details of the error.StringmessageTemplate()Get message template.List<String>parameters()Get parameters for the template.ErrorEntitywithCode(String code)Set basic error code.ErrorEntitywithExtendedCode(String extendedCode)Set type of error.ErrorEntitywithInnerErrors(List<ErrorEntity> innerErrors)Set inner errors.ErrorEntitywithMessage(String message)Set any details of the error.ErrorEntitywithMessageTemplate(String messageTemplate)Set message template.ErrorEntitywithParameters(List<String> parameters)Set parameters for the template.
-
-
-
Method Detail
-
extendedCode
public String extendedCode()
Get type of error.- Returns:
- the extendedCode value
-
withExtendedCode
public ErrorEntity withExtendedCode(String extendedCode)
Set type of error.- Parameters:
extendedCode- the extendedCode value to set- Returns:
- the ErrorEntity object itself.
-
messageTemplate
public String messageTemplate()
Get message template.- Returns:
- the messageTemplate value
-
withMessageTemplate
public ErrorEntity withMessageTemplate(String messageTemplate)
Set message template.- Parameters:
messageTemplate- the messageTemplate value to set- Returns:
- the ErrorEntity object itself.
-
parameters
public List<String> parameters()
Get parameters for the template.- Returns:
- the parameters value
-
withParameters
public ErrorEntity withParameters(List<String> parameters)
Set parameters for the template.- Parameters:
parameters- the parameters value to set- Returns:
- the ErrorEntity object itself.
-
innerErrors
public List<ErrorEntity> innerErrors()
Get inner errors.- Returns:
- the innerErrors value
-
withInnerErrors
public ErrorEntity withInnerErrors(List<ErrorEntity> innerErrors)
Set inner errors.- Parameters:
innerErrors- the innerErrors value to set- Returns:
- the ErrorEntity object itself.
-
code
public String code()
Get basic error code.- Returns:
- the code value
-
withCode
public ErrorEntity withCode(String code)
Set basic error code.- Parameters:
code- the code value to set- Returns:
- the ErrorEntity object itself.
-
message
public String message()
Get any details of the error.- Returns:
- the message value
-
withMessage
public ErrorEntity withMessage(String message)
Set any details of the error.- Parameters:
message- the message value to set- Returns:
- the ErrorEntity object itself.
-
-