AutomaticSkuMigrationPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. AutomaticSkuMigrationPolicy
- com.
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 Automatic |
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
Automatic |
fromJson(JsonReader jsonReader)
Reads an instance of Automatic |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Automatic |
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:
fromJson
public static AutomaticSkuMigrationPolicy fromJson(JsonReader jsonReader)
Reads an instance of AutomaticSkuMigrationPolicy from the JsonReader.
Parameters:
Returns:
Throws:
toJson
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:
Returns: