Class OSImageNotificationProfile

java.lang.Object
com.azure.resourcemanager.compute.models.OSImageNotificationProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<OSImageNotificationProfile>

public final class OSImageNotificationProfile extends Object implements com.azure.json.JsonSerializable<OSImageNotificationProfile>
The OSImageNotificationProfile model.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of OSImageNotificationProfile class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the enable property: Specifies whether the OS Image Scheduled event is enabled or disabled.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of OSImageNotificationProfile from the JsonReader.
    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).
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    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).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • OSImageNotificationProfile

      public OSImageNotificationProfile()
      Creates an instance of OSImageNotificationProfile class.
  • Method Details

    • 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.
    • 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.
    • enable

      public Boolean enable()
      Get the enable property: Specifies whether the OS Image Scheduled event is enabled or disabled.
      Returns:
      the enable value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<OSImageNotificationProfile>
      Throws:
      IOException
    • fromJson

      public static OSImageNotificationProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.