Error Class
- java.
lang. Object - com.
azure. resourcemanager. springappdiscovery. models. Error
- com.
Implements
public final class Error
implements JsonSerializable<Error>
Defines the error.
Constructor Summary
| Constructor | Description |
|---|---|
| Error() |
Creates an instance of Error class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
code()
Get the code property: The error code. |
| static Error |
fromJson(JsonReader jsonReader)
Reads an instance of Error from the Json |
| Long |
id()
Get the id property: The error ID. |
| String |
message()
Get the message property: The detailed error message. |
| String |
possibleCauses()
Get the possible |
| String |
recommendedAction()
Get the recommended |
| String |
runAsAccountId()
Get the run |
| String |
severity()
Get the severity property: The error severity. |
| String |
summaryMessage()
Get the summary |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Offset |
updatedTimestamp()
Get the updated |
| void |
validate()
Validates the instance. |
| Error |
withCode(String code)
Set the code property: The error code. |
| Error |
withId(Long id)
Set the id property: The error ID. |
| Error |
withMessage(String message)
Set the message property: The detailed error message. |
| Error |
withPossibleCauses(String possibleCauses)
Set the possible |
| Error |
withRecommendedAction(String recommendedAction)
Set the recommended |
| Error |
withRunAsAccountId(String runAsAccountId)
Set the run |
| Error |
withSeverity(String severity)
Set the severity property: The error severity. |
| Error |
withSummaryMessage(String summaryMessage)
Set the summary |
| Error |
withUpdatedTimestamp(OffsetDateTime updatedTimestamp)
Set the updated |
Methods inherited from java.lang.Object
Constructor Details
Error
public Error()
Creates an instance of Error class.
Method Details
code
public String code()
Get the code property: The error code.
Returns:
fromJson
public static Error fromJson(JsonReader jsonReader)
Reads an instance of Error from the JsonReader.
Parameters:
Returns:
Throws:
id
public Long id()
Get the id property: The error ID.
Returns:
message
public String message()
Get the message property: The detailed error message.
Returns:
possibleCauses
public String possibleCauses()
Get the possibleCauses property: The error possible causes.
Returns:
recommendedAction
public String recommendedAction()
Get the recommendedAction property: The error recommended action.
Returns:
runAsAccountId
public String runAsAccountId()
Get the runAsAccountId property: The account ID used to login.
Returns:
severity
public String severity()
Get the severity property: The error severity.
Returns:
summaryMessage
public String summaryMessage()
Get the summaryMessage property: The summarized error message.
Returns:
toJson
updatedTimestamp
public OffsetDateTime updatedTimestamp()
Get the updatedTimestamp property: Time when this error was last updated.
Returns:
validate
public void validate()
Validates the instance.
withCode
public Error withCode(String code)
Set the code property: The error code.
Parameters:
Returns:
withId
public Error withId(Long id)
Set the id property: The error ID.
Parameters:
Returns:
withMessage
public Error withMessage(String message)
Set the message property: The detailed error message.
Parameters:
Returns:
withPossibleCauses
public Error withPossibleCauses(String possibleCauses)
Set the possibleCauses property: The error possible causes.
Parameters:
Returns:
withRecommendedAction
public Error withRecommendedAction(String recommendedAction)
Set the recommendedAction property: The error recommended action.
Parameters:
Returns:
withRunAsAccountId
public Error withRunAsAccountId(String runAsAccountId)
Set the runAsAccountId property: The account ID used to login.
Parameters:
Returns:
withSeverity
public Error withSeverity(String severity)
Set the severity property: The error severity.
Parameters:
Returns:
withSummaryMessage
public Error withSummaryMessage(String summaryMessage)
Set the summaryMessage property: The summarized error message.
Parameters:
Returns:
withUpdatedTimestamp
public Error withUpdatedTimestamp(OffsetDateTime updatedTimestamp)
Set the updatedTimestamp property: Time when this error was last updated.
Parameters:
Returns: