Class MaintenanceWindowOptionsInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowOptionsInner

public final class MaintenanceWindowOptionsInner extends com.azure.core.management.ProxyResource
Maintenance window options.
  • Constructor Details

    • MaintenanceWindowOptionsInner

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

    • isEnabled

      public Boolean isEnabled()
      Get the isEnabled property: Whether maintenance windows are enabled for the database.
      Returns:
      the isEnabled value.
    • withIsEnabled

      public MaintenanceWindowOptionsInner withIsEnabled(Boolean isEnabled)
      Set the isEnabled property: Whether maintenance windows are enabled for the database.
      Parameters:
      isEnabled - the isEnabled value to set.
      Returns:
      the MaintenanceWindowOptionsInner object itself.
    • maintenanceWindowCycles

      public List<MaintenanceWindowTimeRange> maintenanceWindowCycles()
      Get the maintenanceWindowCycles property: Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}.
      Returns:
      the maintenanceWindowCycles value.
    • withMaintenanceWindowCycles

      public MaintenanceWindowOptionsInner withMaintenanceWindowCycles(List<MaintenanceWindowTimeRange> maintenanceWindowCycles)
      Set the maintenanceWindowCycles property: Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}.
      Parameters:
      maintenanceWindowCycles - the maintenanceWindowCycles value to set.
      Returns:
      the MaintenanceWindowOptionsInner object itself.
    • minDurationInMinutes

      public Integer minDurationInMinutes()
      Get the minDurationInMinutes property: Minimum duration of maintenance window.
      Returns:
      the minDurationInMinutes value.
    • withMinDurationInMinutes

      public MaintenanceWindowOptionsInner withMinDurationInMinutes(Integer minDurationInMinutes)
      Set the minDurationInMinutes property: Minimum duration of maintenance window.
      Parameters:
      minDurationInMinutes - the minDurationInMinutes value to set.
      Returns:
      the MaintenanceWindowOptionsInner object itself.
    • defaultDurationInMinutes

      public Integer defaultDurationInMinutes()
      Get the defaultDurationInMinutes property: Default duration for maintenance window.
      Returns:
      the defaultDurationInMinutes value.
    • withDefaultDurationInMinutes

      public MaintenanceWindowOptionsInner withDefaultDurationInMinutes(Integer defaultDurationInMinutes)
      Set the defaultDurationInMinutes property: Default duration for maintenance window.
      Parameters:
      defaultDurationInMinutes - the defaultDurationInMinutes value to set.
      Returns:
      the MaintenanceWindowOptionsInner object itself.
    • minCycles

      public Integer minCycles()
      Get the minCycles property: Minimum number of maintenance windows cycles to be set on the database.
      Returns:
      the minCycles value.
    • withMinCycles

      public MaintenanceWindowOptionsInner withMinCycles(Integer minCycles)
      Set the minCycles property: Minimum number of maintenance windows cycles to be set on the database.
      Parameters:
      minCycles - the minCycles value to set.
      Returns:
      the MaintenanceWindowOptionsInner object itself.
    • timeGranularityInMinutes

      public Integer timeGranularityInMinutes()
      Get the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows.
      Returns:
      the timeGranularityInMinutes value.
    • withTimeGranularityInMinutes

      public MaintenanceWindowOptionsInner withTimeGranularityInMinutes(Integer timeGranularityInMinutes)
      Set the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows.
      Parameters:
      timeGranularityInMinutes - the timeGranularityInMinutes value to set.
      Returns:
      the MaintenanceWindowOptionsInner object itself.
    • allowMultipleMaintenanceWindowsPerCycle

      public Boolean allowMultipleMaintenanceWindowsPerCycle()
      Get the allowMultipleMaintenanceWindowsPerCycle property: Whether we allow multiple maintenance windows per cycle.
      Returns:
      the allowMultipleMaintenanceWindowsPerCycle value.
    • withAllowMultipleMaintenanceWindowsPerCycle

      public MaintenanceWindowOptionsInner withAllowMultipleMaintenanceWindowsPerCycle(Boolean allowMultipleMaintenanceWindowsPerCycle)
      Set the allowMultipleMaintenanceWindowsPerCycle property: Whether we allow multiple maintenance windows per cycle.
      Parameters:
      allowMultipleMaintenanceWindowsPerCycle - the allowMultipleMaintenanceWindowsPerCycle value to set.
      Returns:
      the MaintenanceWindowOptionsInner object itself.
    • validate

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