Class ScheduleCreationParameter

java.lang.Object
com.azure.resourcemanager.devtestlabs.models.ScheduleCreationParameter

public final class ScheduleCreationParameter extends Object
Properties for creating a schedule.
  • Constructor Details

    • ScheduleCreationParameter

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

    • name

      public String name()
      Get the name property: The name of the virtual machine or environment.
      Returns:
      the name value.
    • withName

      public ScheduleCreationParameter withName(String name)
      Set the name property: The name of the virtual machine or environment.
      Parameters:
      name - the name value to set.
      Returns:
      the ScheduleCreationParameter object itself.
    • location

      public String location()
      Get the location property: The location of the new virtual machine or environment.
      Returns:
      the location value.
    • tags

      public Map<String,String> tags()
      Get the tags property: The tags of the resource.
      Returns:
      the tags value.
    • withTags

      public ScheduleCreationParameter withTags(Map<String,String> tags)
      Set the tags property: The tags of the resource.
      Parameters:
      tags - the tags value to set.
      Returns:
      the ScheduleCreationParameter object itself.
    • status

      public EnableStatus status()
      Get the status property: The status of the schedule (i.e. Enabled, Disabled).
      Returns:
      the status value.
    • withStatus

      public ScheduleCreationParameter withStatus(EnableStatus status)
      Set the status property: The status of the schedule (i.e. Enabled, Disabled).
      Parameters:
      status - the status value to set.
      Returns:
      the ScheduleCreationParameter object itself.
    • taskType

      public String taskType()
      Get the taskType property: The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).
      Returns:
      the taskType value.
    • withTaskType

      public ScheduleCreationParameter withTaskType(String taskType)
      Set the taskType property: The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).
      Parameters:
      taskType - the taskType value to set.
      Returns:
      the ScheduleCreationParameter object itself.
    • weeklyRecurrence

      public WeekDetails weeklyRecurrence()
      Get the weeklyRecurrence property: If the schedule will occur only some days of the week, specify the weekly recurrence.
      Returns:
      the weeklyRecurrence value.
    • withWeeklyRecurrence

      public ScheduleCreationParameter withWeeklyRecurrence(WeekDetails weeklyRecurrence)
      Set the weeklyRecurrence property: If the schedule will occur only some days of the week, specify the weekly recurrence.
      Parameters:
      weeklyRecurrence - the weeklyRecurrence value to set.
      Returns:
      the ScheduleCreationParameter object itself.
    • dailyRecurrence

      public DayDetails dailyRecurrence()
      Get the dailyRecurrence property: If the schedule will occur once each day of the week, specify the daily recurrence.
      Returns:
      the dailyRecurrence value.
    • withDailyRecurrence

      public ScheduleCreationParameter withDailyRecurrence(DayDetails dailyRecurrence)
      Set the dailyRecurrence property: If the schedule will occur once each day of the week, specify the daily recurrence.
      Parameters:
      dailyRecurrence - the dailyRecurrence value to set.
      Returns:
      the ScheduleCreationParameter object itself.
    • hourlyRecurrence

      public HourDetails hourlyRecurrence()
      Get the hourlyRecurrence property: If the schedule will occur multiple times a day, specify the hourly recurrence.
      Returns:
      the hourlyRecurrence value.
    • withHourlyRecurrence

      public ScheduleCreationParameter withHourlyRecurrence(HourDetails hourlyRecurrence)
      Set the hourlyRecurrence property: If the schedule will occur multiple times a day, specify the hourly recurrence.
      Parameters:
      hourlyRecurrence - the hourlyRecurrence value to set.
      Returns:
      the ScheduleCreationParameter object itself.
    • timeZoneId

      public String timeZoneId()
      Get the timeZoneId property: The time zone ID (e.g. Pacific Standard time).
      Returns:
      the timeZoneId value.
    • withTimeZoneId

      public ScheduleCreationParameter withTimeZoneId(String timeZoneId)
      Set the timeZoneId property: The time zone ID (e.g. Pacific Standard time).
      Parameters:
      timeZoneId - the timeZoneId value to set.
      Returns:
      the ScheduleCreationParameter object itself.
    • notificationSettings

      public NotificationSettings notificationSettings()
      Get the notificationSettings property: Notification settings.
      Returns:
      the notificationSettings value.
    • withNotificationSettings

      public ScheduleCreationParameter withNotificationSettings(NotificationSettings notificationSettings)
      Set the notificationSettings property: Notification settings.
      Parameters:
      notificationSettings - the notificationSettings value to set.
      Returns:
      the ScheduleCreationParameter object itself.
    • targetResourceId

      public String targetResourceId()
      Get the targetResourceId property: The resource ID to which the schedule belongs.
      Returns:
      the targetResourceId value.
    • withTargetResourceId

      public ScheduleCreationParameter withTargetResourceId(String targetResourceId)
      Set the targetResourceId property: The resource ID to which the schedule belongs.
      Parameters:
      targetResourceId - the targetResourceId value to set.
      Returns:
      the ScheduleCreationParameter object itself.
    • validate

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