
**Inheritance:**
java.lang.Object, [com.aspose.tasks.YearlyRepetitionBase](../../com.aspose.tasks/yearlyrepetitionbase)
```
public class ByYearWeekDayRepetition extends YearlyRepetitionBase
```

Represents a pattern which is based on position of a weekday in a month.
## Constructors

| Constructor | Description |
| --- | --- |
| [ByYearWeekDayRepetition()](#ByYearWeekDayRepetition--) | Initializes a new instance of the [ByYearWeekDayRepetition](../../com.aspose.tasks/byyearweekdayrepetition) class. |
## Methods

| Method | Description |
| --- | --- |
| [getMonth()](#getMonth--) | Gets a month on which the task must be recurring. |
| [getPosition()](#getPosition--) | Gets a position of the day in a week of a month on which the task must be recurring. |
| [getWeekDay()](#getWeekDay--) | Gets a type of week day on which the task must be recurring. |
| [setMonth(int value)](#setMonth-int-) | Sets a month on which the task must be recurring. |
| [setPosition(int value)](#setPosition-int-) | Sets a position of the day in a week of a month on which the task must be recurring. |
| [setWeekDay(int value)](#setWeekDay-int-) | Sets a type of week day on which the task must be recurring. |
### ByYearWeekDayRepetition() {#ByYearWeekDayRepetition--}
```
public ByYearWeekDayRepetition()
```


Initializes a new instance of the [ByYearWeekDayRepetition](../../com.aspose.tasks/byyearweekdayrepetition) class.

### getMonth() {#getMonth--}
```
public final int getMonth()
```


Gets a month on which the task must be recurring.

Read/Write `Month`.

**Returns:**
int - a month on which the task must be recurring.
### getPosition() {#getPosition--}
```
public final int getPosition()
```


Gets a position of the day in a week of a month on which the task must be recurring.

Read/Write `OrdinalNumber`.

**Returns:**
int - a position of the day in a week of a month on which the task must be recurring.
### getWeekDay() {#getWeekDay--}
```
public final int getWeekDay()
```


Gets a type of week day on which the task must be recurring.

Read/Write `DayOfWeek`.

**Returns:**
int - a type of week day on which the task must be recurring.
### setMonth(int value) {#setMonth-int-}
```
public final void setMonth(int value)
```


Sets a month on which the task must be recurring.

Read/Write `Month`.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | a month on which the task must be recurring. |

### setPosition(int value) {#setPosition-int-}
```
public final void setPosition(int value)
```


Sets a position of the day in a week of a month on which the task must be recurring.

Read/Write `OrdinalNumber`.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | a position of the day in a week of a month on which the task must be recurring. |

### setWeekDay(int value) {#setWeekDay-int-}
```
public final void setWeekDay(int value)
```


Sets a type of week day on which the task must be recurring.

Read/Write `DayOfWeek`.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | a type of week day on which the task must be recurring. |

