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
    Constructor
    Description
    Creates an instance of MigrationErrorType class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the code property: Error code.
    Get the errorMessage property: Error message indicating why the operation failed.
    fromJson(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.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      public String code()
      Get the code property: Error code.
      Returns:
      the code value.
    • resourceName

      public String resourceName()
      Get the resourceName property: Resource which has the problem.
      Returns:
      the resourceName value.
    • errorMessage

      public String errorMessage()
      Get the errorMessage property: Error message indicating why the operation failed.
      Returns:
      the errorMessage value.
    • nextSteps

      public String 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<MigrationErrorType>
      Throws:
      IOException
    • fromJson

      public static MigrationErrorType fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.