Class ScheduledEventsPolicy

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

public final class ScheduledEventsPolicy extends Object implements com.azure.json.JsonSerializable<ScheduledEventsPolicy>
Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations.
  • Constructor Details

    • ScheduledEventsPolicy

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

    • userInitiatedRedeploy

      public UserInitiatedRedeploy userInitiatedRedeploy()
      Get the userInitiatedRedeploy property: The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.
      Returns:
      the userInitiatedRedeploy value.
    • withUserInitiatedRedeploy

      public ScheduledEventsPolicy withUserInitiatedRedeploy(UserInitiatedRedeploy userInitiatedRedeploy)
      Set the userInitiatedRedeploy property: The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.
      Parameters:
      userInitiatedRedeploy - the userInitiatedRedeploy value to set.
      Returns:
      the ScheduledEventsPolicy object itself.
    • userInitiatedReboot

      public UserInitiatedReboot userInitiatedReboot()
      Get the userInitiatedReboot property: The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.
      Returns:
      the userInitiatedReboot value.
    • withUserInitiatedReboot

      public ScheduledEventsPolicy withUserInitiatedReboot(UserInitiatedReboot userInitiatedReboot)
      Set the userInitiatedReboot property: The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.
      Parameters:
      userInitiatedReboot - the userInitiatedReboot value to set.
      Returns:
      the ScheduledEventsPolicy object itself.
    • scheduledEventsAdditionalPublishingTargets

      public ScheduledEventsAdditionalPublishingTargets scheduledEventsAdditionalPublishingTargets()
      Get the scheduledEventsAdditionalPublishingTargets property: The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.
      Returns:
      the scheduledEventsAdditionalPublishingTargets value.
    • withScheduledEventsAdditionalPublishingTargets

      public ScheduledEventsPolicy withScheduledEventsAdditionalPublishingTargets(ScheduledEventsAdditionalPublishingTargets scheduledEventsAdditionalPublishingTargets)
      Set the scheduledEventsAdditionalPublishingTargets property: The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.
      Parameters:
      scheduledEventsAdditionalPublishingTargets - the scheduledEventsAdditionalPublishingTargets value to set.
      Returns:
      the ScheduledEventsPolicy object itself.
    • allInstancesDown

      public AllInstancesDown allInstancesDown()
      Get the allInstancesDown property: The configuration parameters used while creating AllInstancesDown scheduled event setting creation.
      Returns:
      the allInstancesDown value.
    • withAllInstancesDown

      public ScheduledEventsPolicy withAllInstancesDown(AllInstancesDown allInstancesDown)
      Set the allInstancesDown property: The configuration parameters used while creating AllInstancesDown scheduled event setting creation.
      Parameters:
      allInstancesDown - the allInstancesDown value to set.
      Returns:
      the ScheduledEventsPolicy 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<ScheduledEventsPolicy>
      Throws:
      IOException
    • fromJson

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