MicrosoftGraphRecurrencePattern Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphRecurrencePattern
- com.
Implements
public final class MicrosoftGraphRecurrencePattern
implements JsonSerializable<MicrosoftGraphRecurrencePattern>
recurrencePattern.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphRecurrencePattern() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
Integer |
dayOfMonth()
Get the day |
List<Microsoft |
daysOfWeek()
Get the days |
Microsoft |
firstDayOfWeek()
Get the first |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
Microsoft |
index()
Get the index property: week |
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. |
Json |
toJson(JsonWriter jsonWriter) |
Microsoft |
type()
Get the type property: recurrence |
void |
validate()
Validates the instance. |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withDayOfMonth(Integer dayOfMonth)
Set the day |
Microsoft |
withDaysOfWeek(List<MicrosoftGraphDayOfWeek> daysOfWeek)
Set the days |
Microsoft |
withFirstDayOfWeek(MicrosoftGraphDayOfWeek firstDayOfWeek)
Set the first |
Microsoft |
withIndex(MicrosoftGraphWeekIndex index)
Set the index property: week |
Microsoft |
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. |
Microsoft |
withMonth(Integer month)
Set the month property: The month in which the event occurs. |
Microsoft |
withType(MicrosoftGraphRecurrencePatternType type)
Set the type property: recurrence |
Methods inherited from java.lang.Object
Constructor Details
MicrosoftGraphRecurrencePattern
public MicrosoftGraphRecurrencePattern()
Creates an instance of MicrosoftGraphRecurrencePattern class.
Method Details
additionalProperties
public Map
Get the additionalProperties property: recurrencePattern.
Returns:
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:
daysOfWeek
public List
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:
firstDayOfWeek
public MicrosoftGraphDayOfWeek firstDayOfWeek()
Get the firstDayOfWeek property: dayOfWeek.
Returns:
fromJson
public static MicrosoftGraphRecurrencePattern fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphRecurrencePattern from the JsonReader.
Parameters:
Returns:
Throws:
index
public MicrosoftGraphWeekIndex index()
Get the index property: weekIndex.
Returns:
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:
month
public Integer month()
Get the month property: The month in which the event occurs. This is a number from 1 to 12.
Returns:
toJson
type
public MicrosoftGraphRecurrencePatternType type()
Get the type property: recurrencePatternType.
Returns:
validate
public void validate()
Validates the instance.
withAdditionalProperties
public MicrosoftGraphRecurrencePattern withAdditionalProperties(Map
Set the additionalProperties property: recurrencePattern.
Parameters:
Returns:
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:
Returns:
withDaysOfWeek
public MicrosoftGraphRecurrencePattern withDaysOfWeek(List
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:
Returns:
withFirstDayOfWeek
public MicrosoftGraphRecurrencePattern withFirstDayOfWeek(MicrosoftGraphDayOfWeek firstDayOfWeek)
Set the firstDayOfWeek property: dayOfWeek.
Parameters:
Returns:
withIndex
public MicrosoftGraphRecurrencePattern withIndex(MicrosoftGraphWeekIndex index)
Set the index property: weekIndex.
Parameters:
Returns:
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:
Returns:
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:
Returns:
withType
public MicrosoftGraphRecurrencePattern withType(MicrosoftGraphRecurrencePatternType type)
Set the type property: recurrencePatternType.
Parameters:
Returns:
Applies to
Azure SDK for Java