Class MigrationErrorType
java.lang.Object
com.azure.resourcemanager.cdn.models.MigrationErrorType
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MigrationErrorType>
public final class MigrationErrorType
extends Object
implements com.azure.json.JsonSerializable<MigrationErrorType>
Error response indicates CDN service is not able to process the incoming request. The reason is provided in the error
message.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()Get the code property: Error code.Get the errorMessage property: Error message indicating why the operation failed.static MigrationErrorTypefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MigrationErrorType from the JsonReader.Get the nextSteps property: Describes what needs to be done to fix the problem.Get the resourceName property: Resource which has the problem.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MigrationErrorType
public MigrationErrorType()Creates an instance of MigrationErrorType class.
-
-
Method Details
-
code
-
resourceName
Get the resourceName property: Resource which has the problem.- Returns:
- the resourceName value.
-
errorMessage
Get the errorMessage property: Error message indicating why the operation failed.- Returns:
- the errorMessage value.
-
nextSteps
Get the nextSteps property: Describes what needs to be done to fix the problem.- Returns:
- the nextSteps value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MigrationErrorType>- Throws:
IOException
-
fromJson
Reads an instance of MigrationErrorType from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MigrationErrorType if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the MigrationErrorType.
-