Class TerminateNotificationProfile
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.TerminateNotificationProfile
-
public final class TerminateNotificationProfile extends Object
The TerminateNotificationProfile model.
-
-
Constructor Summary
Constructors Constructor Description TerminateNotificationProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Booleanenable()Get the enable property: Specifies whether the Terminate Scheduled event is enabled or disabled.StringnotBeforeTimeout()Get the notBeforeTimeout property: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved (timed out).voidvalidate()Validates the instance.TerminateNotificationProfilewithEnable(Boolean enable)Set the enable property: Specifies whether the Terminate Scheduled event is enabled or disabled.TerminateNotificationProfilewithNotBeforeTimeout(String notBeforeTimeout)Set the notBeforeTimeout property: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved (timed out).
-
-
-
Method Detail
-
notBeforeTimeout
public String notBeforeTimeout()
Get the notBeforeTimeout property: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved (timed out). The configuration must be specified in ISO 8601 format, the default value is 5 minutes (PT5M).- Returns:
- the notBeforeTimeout value.
-
withNotBeforeTimeout
public TerminateNotificationProfile withNotBeforeTimeout(String notBeforeTimeout)
Set the notBeforeTimeout property: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved (timed out). The configuration must be specified in ISO 8601 format, the default value is 5 minutes (PT5M).- Parameters:
notBeforeTimeout- the notBeforeTimeout value to set.- Returns:
- the TerminateNotificationProfile object itself.
-
enable
public Boolean enable()
Get the enable property: Specifies whether the Terminate Scheduled event is enabled or disabled.- Returns:
- the enable value.
-
withEnable
public TerminateNotificationProfile withEnable(Boolean enable)
Set the enable property: Specifies whether the Terminate Scheduled event is enabled or disabled.- Parameters:
enable- the enable value to set.- Returns:
- the TerminateNotificationProfile object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-