Class ScheduledEventsProfile

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

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

    • ScheduledEventsProfile

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

    • terminateNotificationProfile

      public TerminateNotificationProfile terminateNotificationProfile()
      Get the terminateNotificationProfile property: Specifies Terminate Scheduled Event related configurations.
      Returns:
      the terminateNotificationProfile value.
    • withTerminateNotificationProfile

      public ScheduledEventsProfile withTerminateNotificationProfile(TerminateNotificationProfile terminateNotificationProfile)
      Set the terminateNotificationProfile property: Specifies Terminate Scheduled Event related configurations.
      Parameters:
      terminateNotificationProfile - the terminateNotificationProfile value to set.
      Returns:
      the ScheduledEventsProfile object itself.
    • osImageNotificationProfile

      public OSImageNotificationProfile osImageNotificationProfile()
      Get the osImageNotificationProfile property: Specifies OS Image Scheduled Event related configurations.
      Returns:
      the osImageNotificationProfile value.
    • withOsImageNotificationProfile

      public ScheduledEventsProfile withOsImageNotificationProfile(OSImageNotificationProfile osImageNotificationProfile)
      Set the osImageNotificationProfile property: Specifies OS Image Scheduled Event related configurations.
      Parameters:
      osImageNotificationProfile - the osImageNotificationProfile value to set.
      Returns:
      the ScheduledEventsProfile 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<ScheduledEventsProfile>
      Throws:
      IOException
    • fromJson

      public static ScheduledEventsProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ScheduledEventsProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ScheduledEventsProfile 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 ScheduledEventsProfile.