ValidationError Class
- java.
lang. Object - com.
azure. resourcemanager. datamigration. models. ValidationError
- com.
Implements
public final class ValidationError
implements JsonSerializable<ValidationError>
Description about the errors happen while performing migration validation.
Constructor Summary
| Constructor | Description |
|---|---|
| ValidationError() |
Creates an instance of Validation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Validation |
fromJson(JsonReader jsonReader)
Reads an instance of Validation |
| Severity |
severity()
Get the severity property: Severity of the error. |
| String |
text()
Get the text property: Error Text. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Validation |
withSeverity(Severity severity)
Set the severity property: Severity of the error. |
|
Validation |
withText(String text)
Set the text property: Error Text. |
Methods inherited from java.lang.Object
Constructor Details
ValidationError
public ValidationError()
Creates an instance of ValidationError class.
Method Details
fromJson
public static ValidationError fromJson(JsonReader jsonReader)
Reads an instance of ValidationError from the JsonReader.
Parameters:
Returns:
Throws:
severity
public Severity severity()
Get the severity property: Severity of the error.
Returns:
text
public String text()
Get the text property: Error Text.
Returns:
toJson
validate
public void validate()
Validates the instance.
withSeverity
public ValidationError withSeverity(Severity severity)
Set the severity property: Severity of the error.
Parameters:
Returns:
withText
public ValidationError withText(String text)
Set the text property: Error Text.
Parameters:
Returns: