OSImageNotificationProfile Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. OSImageNotificationProfile
- com.
Implements
public final class OSImageNotificationProfile
implements JsonSerializable<OSImageNotificationProfile>
The OSImageNotificationProfile model.
Constructor Summary
Constructor | Description |
---|---|
OSImageNotificationProfile() |
Creates an instance of OSImage |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
enable()
Get the enable property: Specifies whether the OS Image Scheduled event is enabled or disabled. |
static
OSImage |
fromJson(JsonReader jsonReader)
Reads an instance of OSImage |
String |
notBeforeTimeout()
Get the not |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
OSImage |
withEnable(Boolean enable)
Set the enable property: Specifies whether the OS Image Scheduled event is enabled or disabled. |
OSImage |
withNotBeforeTimeout(String notBeforeTimeout)
Set the not |
Methods inherited from java.lang.Object
Constructor Details
OSImageNotificationProfile
public OSImageNotificationProfile()
Creates an instance of OSImageNotificationProfile class.
Method Details
enable
public Boolean enable()
Get the enable property: Specifies whether the OS Image Scheduled event is enabled or disabled.
Returns:
fromJson
public static OSImageNotificationProfile fromJson(JsonReader jsonReader)
Reads an instance of OSImageNotificationProfile from the JsonReader.
Parameters:
Returns:
Throws:
notBeforeTimeout
public String 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:
toJson
validate
public void validate()
Validates the instance.
withEnable
public OSImageNotificationProfile withEnable(Boolean enable)
Set the enable property: Specifies whether the OS Image Scheduled event is enabled or disabled.
Parameters:
Returns:
withNotBeforeTimeout
public OSImageNotificationProfile 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). The configuration is specified in ISO 8601 format, and the value must be 15 minutes (PT15M).
Parameters:
Returns:
Applies to
Azure SDK for Java