Class MicrosoftGraphRecurrencePattern


  • public final class MicrosoftGraphRecurrencePattern
    extends Object
    recurrencePattern.
    • Constructor Detail

      • MicrosoftGraphRecurrencePattern

        public MicrosoftGraphRecurrencePattern()
    • Method Detail

      • dayOfMonth

        public Integer dayOfMonth()
        Get the dayOfMonth property: The day of the month on which the event occurs. Required if type is absoluteMonthly or absoluteYearly.
        Returns:
        the dayOfMonth value.
      • withDayOfMonth

        public MicrosoftGraphRecurrencePattern withDayOfMonth​(Integer dayOfMonth)
        Set the dayOfMonth property: The day of the month on which the event occurs. Required if type is absoluteMonthly or absoluteYearly.
        Parameters:
        dayOfMonth - the dayOfMonth value to set.
        Returns:
        the MicrosoftGraphRecurrencePattern object itself.
      • daysOfWeek

        public List<MicrosoftGraphDayOfWeek> daysOfWeek()
        Get the daysOfWeek property: A collection of the days of the week on which the event occurs. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday. If type is relativeMonthly or relativeYearly, and daysOfWeek specifies more than one day, the event falls on the first day that satisfies the pattern. Required if type is weekly, relativeMonthly, or relativeYearly.
        Returns:
        the daysOfWeek value.
      • withDaysOfWeek

        public MicrosoftGraphRecurrencePattern withDaysOfWeek​(List<MicrosoftGraphDayOfWeek> daysOfWeek)
        Set the daysOfWeek property: A collection of the days of the week on which the event occurs. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday. If type is relativeMonthly or relativeYearly, and daysOfWeek specifies more than one day, the event falls on the first day that satisfies the pattern. Required if type is weekly, relativeMonthly, or relativeYearly.
        Parameters:
        daysOfWeek - the daysOfWeek value to set.
        Returns:
        the MicrosoftGraphRecurrencePattern object itself.
      • firstDayOfWeek

        public MicrosoftGraphDayOfWeek firstDayOfWeek()
        Get the firstDayOfWeek property: The firstDayOfWeek property.
        Returns:
        the firstDayOfWeek value.
      • withFirstDayOfWeek

        public MicrosoftGraphRecurrencePattern withFirstDayOfWeek​(MicrosoftGraphDayOfWeek firstDayOfWeek)
        Set the firstDayOfWeek property: The firstDayOfWeek property.
        Parameters:
        firstDayOfWeek - the firstDayOfWeek value to set.
        Returns:
        the MicrosoftGraphRecurrencePattern object itself.
      • index

        public MicrosoftGraphWeekIndex index()
        Get the index property: The index property.
        Returns:
        the index value.
      • interval

        public Integer interval()
        Get the interval property: The number of units between occurrences, where units can be in days, weeks, months, or years, depending on the type. Required.
        Returns:
        the interval value.
      • withInterval

        public MicrosoftGraphRecurrencePattern withInterval​(Integer interval)
        Set the interval property: The number of units between occurrences, where units can be in days, weeks, months, or years, depending on the type. Required.
        Parameters:
        interval - the interval value to set.
        Returns:
        the MicrosoftGraphRecurrencePattern object itself.
      • month

        public Integer month()
        Get the month property: The month in which the event occurs. This is a number from 1 to 12.
        Returns:
        the month value.
      • withMonth

        public MicrosoftGraphRecurrencePattern withMonth​(Integer month)
        Set the month property: The month in which the event occurs. This is a number from 1 to 12.
        Parameters:
        month - the month value to set.
        Returns:
        the MicrosoftGraphRecurrencePattern object itself.
      • additionalProperties

        public Map<String,​Object> additionalProperties()
        Get the additionalProperties property: recurrencePattern.
        Returns:
        the additionalProperties value.
      • withAdditionalProperties

        public MicrosoftGraphRecurrencePattern withAdditionalProperties​(Map<String,​Object> additionalProperties)
        Set the additionalProperties property: recurrencePattern.
        Parameters:
        additionalProperties - the additionalProperties value to set.
        Returns:
        the MicrosoftGraphRecurrencePattern object itself.
      • validate

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