public class AutomaticRepairsPolicy extends Object
| Constructor and Description |
|---|
AutomaticRepairsPolicy() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
enabled()
Get specifies whether automatic repairs should be enabled on the virtual machine scale set.
|
String |
gracePeriod()
Get the amount of time for which automatic repairs are suspended due to a state change on VM.
|
Integer |
maxInstanceRepairsPercent()
Get the percentage (capacity of scaleset) of virtual machines that will be simultaneously repaired.
|
AutomaticRepairsPolicy |
withEnabled(Boolean enabled)
Set specifies whether automatic repairs should be enabled on the virtual machine scale set.
|
AutomaticRepairsPolicy |
withGracePeriod(String gracePeriod)
Set the amount of time for which automatic repairs are suspended due to a state change on VM.
|
AutomaticRepairsPolicy |
withMaxInstanceRepairsPercent(Integer maxInstanceRepairsPercent)
Set the percentage (capacity of scaleset) of virtual machines that will be simultaneously repaired.
|
public Boolean enabled()
public AutomaticRepairsPolicy withEnabled(Boolean enabled)
enabled - the enabled value to setpublic String gracePeriod()
public AutomaticRepairsPolicy withGracePeriod(String gracePeriod)
gracePeriod - the gracePeriod value to setpublic Integer maxInstanceRepairsPercent()
public AutomaticRepairsPolicy withMaxInstanceRepairsPercent(Integer maxInstanceRepairsPercent)
maxInstanceRepairsPercent - the maxInstanceRepairsPercent value to set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/