AutomaticSkuMigrationPolicy Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.AutomaticSkuMigrationPolicy

Implements

public final class AutomaticSkuMigrationPolicy
implements JsonSerializable<AutomaticSkuMigrationPolicy>

Specifies the configuration parameters used to control automatic SKU migration for the virtual machine scale set. When enabled, the platform may migrate instances to a different VM size from the SKU profile depending on platform demands.

Constructor Summary

Constructor Description
AutomaticSkuMigrationPolicy()

Creates an instance of AutomaticSkuMigrationPolicy class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Specifies whether automatic SKU migration should be enabled on the virtual machine scale set.

static AutomaticSkuMigrationPolicy fromJson(JsonReader jsonReader)

Reads an instance of AutomaticSkuMigrationPolicy from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AutomaticSkuMigrationPolicy withEnabled(Boolean enabled)

Set the enabled property: Specifies whether automatic SKU migration should be enabled on the virtual machine scale set.

Methods inherited from java.lang.Object

Constructor Details

AutomaticSkuMigrationPolicy

public AutomaticSkuMigrationPolicy()

Creates an instance of AutomaticSkuMigrationPolicy class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: Specifies whether automatic SKU migration should be enabled on the virtual machine scale set. The default value is false.

Returns:

the enabled value.

fromJson

public static AutomaticSkuMigrationPolicy fromJson(JsonReader jsonReader)

Reads an instance of AutomaticSkuMigrationPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public AutomaticSkuMigrationPolicy withEnabled(Boolean enabled)

Set the enabled property: Specifies whether automatic SKU migration should be enabled on the virtual machine scale set. The default value is false.

Parameters:

enabled - the enabled value to set.

Returns:

the AutomaticSkuMigrationPolicy object itself.

Applies to