
**Inheritance:**
java.lang.Object, [com.aspose.tasks.MonthlyRepetitionBase](../../com.aspose.tasks/monthlyrepetitionbase)
```
public class ByMonthWeekDayRepetition extends MonthlyRepetitionBase
```

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

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

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


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

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


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

Read/Write `OrdinalNumber`.

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


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

Read/Write `DayOfWeek`.

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


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

Read/Write `OrdinalNumber`.

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

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


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

Read/Write `DayOfWeek`.

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

