Class OSImageNotificationProfile
java.lang.Object
com.azure.resourcemanager.compute.models.OSImageNotificationProfile
The OSImageNotificationProfile model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OSImageNotificationProfile class. -
Method Summary
Modifier and TypeMethodDescriptionenable()Get the enable property: Specifies whether the OS Image Scheduled event is enabled or disabled.Get the notBeforeTimeout property: Length of time a Virtual Machine being reimaged or having its OS upgraded will have to potentially approve the OS Image Scheduled Event before the event is auto approved (timed out).voidvalidate()Validates the instance.withEnable(Boolean enable) Set the enable property: Specifies whether the OS Image Scheduled event is enabled or disabled.withNotBeforeTimeout(String notBeforeTimeout) Set the notBeforeTimeout property: Length of time a Virtual Machine being reimaged or having its OS upgraded will have to potentially approve the OS Image Scheduled Event before the event is auto approved (timed out).
-
Constructor Details
-
OSImageNotificationProfile
public OSImageNotificationProfile()Creates an instance of OSImageNotificationProfile class.
-
-
Method Details
-
notBeforeTimeout
Get the notBeforeTimeout property: Length of time a Virtual Machine being reimaged or having its OS upgraded will have to potentially approve the OS Image Scheduled Event before the event is auto approved (timed out). The configuration is specified in ISO 8601 format, and the value must be 15 minutes (PT15M).- Returns:
- the notBeforeTimeout value.
-
withNotBeforeTimeout
Set the notBeforeTimeout property: Length of time a Virtual Machine being reimaged or having its OS upgraded will have to potentially approve the OS Image Scheduled Event before the event is auto approved (timed out). The configuration is specified in ISO 8601 format, and the value must be 15 minutes (PT15M).- Parameters:
notBeforeTimeout- the notBeforeTimeout value to set.- Returns:
- the OSImageNotificationProfile object itself.
-
enable
Get the enable property: Specifies whether the OS Image Scheduled event is enabled or disabled.- Returns:
- the enable value.
-
withEnable
Set the enable property: Specifies whether the OS Image Scheduled event is enabled or disabled.- Parameters:
enable- the enable value to set.- Returns:
- the OSImageNotificationProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-