OSImageNotificationProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.OSImageNotificationProfile

Implements

public final class OSImageNotificationProfile
implements JsonSerializable<OSImageNotificationProfile>

The OSImageNotificationProfile model.

Constructor Summary

Constructor Description
OSImageNotificationProfile()

Creates an instance of OSImageNotificationProfile class.

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 OSImageNotificationProfile fromJson(JsonReader jsonReader)

Reads an instance of OSImageNotificationProfile from the JsonReader.

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).

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OSImageNotificationProfile withEnable(Boolean enable)

Set the enable property: Specifies whether the OS Image Scheduled event is enabled or disabled.

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).

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:

the enable value.

fromJson

public static OSImageNotificationProfile fromJson(JsonReader jsonReader)

Reads an instance of OSImageNotificationProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OSImageNotificationProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the OSImageNotificationProfile.

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:

the notBeforeTimeout value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

enable - the enable value to set.

Returns:

the OSImageNotificationProfile object itself.

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:

notBeforeTimeout - the notBeforeTimeout value to set.

Returns:

the OSImageNotificationProfile object itself.

Applies to