Class CanMigrateResultInner
java.lang.Object
com.azure.resourcemanager.cdn.fluent.models.CanMigrateResultInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CanMigrateResultInner>
public final class CanMigrateResultInner
extends Object
implements com.azure.json.JsonSerializable<CanMigrateResultInner>
Result for canMigrate operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the canMigrate property: Flag that says if the profile can be migrated.Get the defaultSku property: Recommended sku for the migration.errors()Get the errors property: The errors property.static CanMigrateResultInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CanMigrateResultInner from the JsonReader.id()Get the id property: Resource ID.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Resource type.voidvalidate()Validates the instance.withErrors(List<MigrationErrorType> errors) Set the errors property: The errors property.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
-
CanMigrateResultInner
public CanMigrateResultInner()Creates an instance of CanMigrateResultInner class.
-
-
Method Details
-
id
-
type
-
canMigrate
Get the canMigrate property: Flag that says if the profile can be migrated.- Returns:
- the canMigrate value.
-
defaultSku
Get the defaultSku property: Recommended sku for the migration.- Returns:
- the defaultSku value.
-
errors
Get the errors property: The errors property.- Returns:
- the errors value.
-
withErrors
Set the errors property: The errors property.- Parameters:
errors- the errors value to set.- Returns:
- the CanMigrateResultInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CanMigrateResultInner>- Throws:
IOException
-
fromJson
public static CanMigrateResultInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CanMigrateResultInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CanMigrateResultInner 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 CanMigrateResultInner.
-