CanMigrateProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.fluent.models.CanMigrateProperties

Implements

public final class CanMigrateProperties
implements JsonSerializable<CanMigrateProperties>

The CanMigrateProperties model.

Constructor Summary

Constructor Description
CanMigrateProperties()

Creates an instance of CanMigrateProperties class.

Method Summary

Modifier and Type Method and Description
Boolean canMigrate()

Get the canMigrate property: Flag that says if the profile can be migrated.

CanMigrateDefaultSku defaultSku()

Get the defaultSku property: Recommended sku for the migration.

List<MigrationErrorType> errors()

Get the errors property: The errors property.

static CanMigrateProperties fromJson(JsonReader jsonReader)

Reads an instance of CanMigrateProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CanMigrateProperties withErrors(List<MigrationErrorType> errors)

Set the errors property: The errors property.

Methods inherited from java.lang.Object

Constructor Details

CanMigrateProperties

public CanMigrateProperties()

Creates an instance of CanMigrateProperties class.

Method Details

canMigrate

public Boolean canMigrate()

Get the canMigrate property: Flag that says if the profile can be migrated.

Returns:

the canMigrate value.

defaultSku

public CanMigrateDefaultSku defaultSku()

Get the defaultSku property: Recommended sku for the migration.

Returns:

the defaultSku value.

errors

public List<MigrationErrorType> errors()

Get the errors property: The errors property.

Returns:

the errors value.

fromJson

public static CanMigrateProperties fromJson(JsonReader jsonReader)

Reads an instance of CanMigrateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CanMigrateProperties 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 CanMigrateProperties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withErrors

public CanMigrateProperties withErrors(List<MigrationErrorType> errors)

Set the errors property: The errors property.

Parameters:

errors - the errors value to set.

Returns:

the CanMigrateProperties object itself.

Applies to