Class ScheduleProperties

java.lang.Object
com.azure.resourcemanager.costmanagement.models.ScheduleProperties

public final class ScheduleProperties extends Object
The properties of the schedule.
  • Constructor Details

    • ScheduleProperties

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

    • frequency

      public ScheduleFrequency frequency()
      Get the frequency property: Frequency of the schedule.
      Returns:
      the frequency value.
    • withFrequency

      public ScheduleProperties withFrequency(ScheduleFrequency frequency)
      Set the frequency property: Frequency of the schedule.
      Parameters:
      frequency - the frequency value to set.
      Returns:
      the ScheduleProperties object itself.
    • hourOfDay

      public Integer hourOfDay()
      Get the hourOfDay property: UTC time at which cost analysis data will be emailed.
      Returns:
      the hourOfDay value.
    • withHourOfDay

      public ScheduleProperties withHourOfDay(Integer hourOfDay)
      Set the hourOfDay property: UTC time at which cost analysis data will be emailed.
      Parameters:
      hourOfDay - the hourOfDay value to set.
      Returns:
      the ScheduleProperties object itself.
    • daysOfWeek

      public List<DaysOfWeek> daysOfWeek()
      Get the daysOfWeek property: Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
      Returns:
      the daysOfWeek value.
    • withDaysOfWeek

      public ScheduleProperties withDaysOfWeek(List<DaysOfWeek> daysOfWeek)
      Set the daysOfWeek property: Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
      Parameters:
      daysOfWeek - the daysOfWeek value to set.
      Returns:
      the ScheduleProperties object itself.
    • weeksOfMonth

      public List<WeeksOfMonth> weeksOfMonth()
      Get the weeksOfMonth property: Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.
      Returns:
      the weeksOfMonth value.
    • withWeeksOfMonth

      public ScheduleProperties withWeeksOfMonth(List<WeeksOfMonth> weeksOfMonth)
      Set the weeksOfMonth property: Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.
      Parameters:
      weeksOfMonth - the weeksOfMonth value to set.
      Returns:
      the ScheduleProperties object itself.
    • dayOfMonth

      public Integer dayOfMonth()
      Get the dayOfMonth property: UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.
      Returns:
      the dayOfMonth value.
    • withDayOfMonth

      public ScheduleProperties withDayOfMonth(Integer dayOfMonth)
      Set the dayOfMonth property: UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.
      Parameters:
      dayOfMonth - the dayOfMonth value to set.
      Returns:
      the ScheduleProperties object itself.
    • startDate

      public OffsetDateTime startDate()
      Get the startDate property: The start date and time of the scheduled action (UTC).
      Returns:
      the startDate value.
    • withStartDate

      public ScheduleProperties withStartDate(OffsetDateTime startDate)
      Set the startDate property: The start date and time of the scheduled action (UTC).
      Parameters:
      startDate - the startDate value to set.
      Returns:
      the ScheduleProperties object itself.
    • endDate

      public OffsetDateTime endDate()
      Get the endDate property: The end date and time of the scheduled action (UTC).
      Returns:
      the endDate value.
    • withEndDate

      public ScheduleProperties withEndDate(OffsetDateTime endDate)
      Set the endDate property: The end date and time of the scheduled action (UTC).
      Parameters:
      endDate - the endDate value to set.
      Returns:
      the ScheduleProperties object itself.
    • validate

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