Class MicrosoftGraphRecurrencePattern
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphRecurrencePattern
-
public final class MicrosoftGraphRecurrencePattern extends Object
recurrencePattern.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphRecurrencePattern()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: recurrencePattern.Integer
dayOfMonth()
Get the dayOfMonth property: The day of the month on which the event occurs.List<MicrosoftGraphDayOfWeek>
daysOfWeek()
Get the daysOfWeek property: A collection of the days of the week on which the event occurs.MicrosoftGraphDayOfWeek
firstDayOfWeek()
Get the firstDayOfWeek property: The firstDayOfWeek property.MicrosoftGraphWeekIndex
index()
Get the index property: The index property.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.Integer
month()
Get the month property: The month in which the event occurs.MicrosoftGraphRecurrencePatternType
type()
Get the type property: The type property.void
validate()
Validates the instance.MicrosoftGraphRecurrencePattern
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: recurrencePattern.MicrosoftGraphRecurrencePattern
withDayOfMonth(Integer dayOfMonth)
Set the dayOfMonth property: The day of the month on which the event occurs.MicrosoftGraphRecurrencePattern
withDaysOfWeek(List<MicrosoftGraphDayOfWeek> daysOfWeek)
Set the daysOfWeek property: A collection of the days of the week on which the event occurs.MicrosoftGraphRecurrencePattern
withFirstDayOfWeek(MicrosoftGraphDayOfWeek firstDayOfWeek)
Set the firstDayOfWeek property: The firstDayOfWeek property.MicrosoftGraphRecurrencePattern
withIndex(MicrosoftGraphWeekIndex index)
Set the index property: The index property.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.MicrosoftGraphRecurrencePattern
withMonth(Integer month)
Set the month property: The month in which the event occurs.MicrosoftGraphRecurrencePattern
withType(MicrosoftGraphRecurrencePatternType type)
Set the type property: The type property.
-
-
-
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.
-
withIndex
public MicrosoftGraphRecurrencePattern withIndex(MicrosoftGraphWeekIndex index)
Set the index property: The index property.- Parameters:
index
- the index value to set.- Returns:
- the MicrosoftGraphRecurrencePattern object itself.
-
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.
-
type
public MicrosoftGraphRecurrencePatternType type()
Get the type property: The type property.- Returns:
- the type value.
-
withType
public MicrosoftGraphRecurrencePattern withType(MicrosoftGraphRecurrencePatternType type)
Set the type property: The type property.- Parameters:
type
- the type 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.
-
-