public final class AutomaticRepairsPolicy extends Object
Constructor and Description |
---|
AutomaticRepairsPolicy() |
Modifier and Type | Method and Description |
---|---|
Boolean |
enabled()
Get the enabled property: Specifies whether automatic repairs should be enabled on the virtual machine scale set.
|
String |
gracePeriod()
Get the gracePeriod property: The amount of time for which automatic repairs are suspended due to a state change
on VM.
|
void |
validate()
Validates the instance.
|
AutomaticRepairsPolicy |
withEnabled(Boolean enabled)
Set the enabled property: Specifies whether automatic repairs should be enabled on the virtual machine scale set.
|
AutomaticRepairsPolicy |
withGracePeriod(String gracePeriod)
Set the gracePeriod property: The amount of time for which automatic repairs are suspended due to a state change
on VM.
|
public Boolean enabled()
public AutomaticRepairsPolicy withEnabled(Boolean enabled)
enabled
- the enabled value to set.public String gracePeriod()
public AutomaticRepairsPolicy withGracePeriod(String gracePeriod)
gracePeriod
- the gracePeriod value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.