
**Inheritance:**
java.lang.Object
```
public class AvailabilityPeriod
```

Represents a period when a resource is available.
## Constructors

| Constructor | Description |
| --- | --- |
| [AvailabilityPeriod()](#AvailabilityPeriod--) | Initializes a new instance of the [AvailabilityPeriod](../../com.aspose.tasks/availabilityperiod). |
| [AvailabilityPeriod(Date availableFrom, Date availableTo, double availableUnits)](#AvailabilityPeriod-java.util.Date-java.util.Date-double-) | Initializes a new instance of the [AvailabilityPeriod](../../com.aspose.tasks/availabilityperiod) with the specified date range and available units. |
## Methods

| Method | Description |
| --- | --- |
| [getAvailableFrom()](#getAvailableFrom--) | Gets the date when a resource becomes available for the specified period. |
| [getAvailableTo()](#getAvailableTo--) | Gets the last date when a resource is available for the specified period. |
| [getAvailableUnits()](#getAvailableUnits--) | Gets the percentage of a resource which is available during the specified period. |
| [setAvailableFrom(Date value)](#setAvailableFrom-java.util.Date-) | Sets the date when a resource becomes available for the specified period. |
| [setAvailableTo(Date value)](#setAvailableTo-java.util.Date-) | Sets the last date when a resource is available for the specified period. |
| [setAvailableUnits(double value)](#setAvailableUnits-double-) | Sets the percentage of a resource which is available during the specified period. |
### AvailabilityPeriod() {#AvailabilityPeriod--}
```
public AvailabilityPeriod()
```


Initializes a new instance of the [AvailabilityPeriod](../../com.aspose.tasks/availabilityperiod).

### AvailabilityPeriod(Date availableFrom, Date availableTo, double availableUnits) {#AvailabilityPeriod-java.util.Date-java.util.Date-double-}
```
public AvailabilityPeriod(Date availableFrom, Date availableTo, double availableUnits)
```


Initializes a new instance of the [AvailabilityPeriod](../../com.aspose.tasks/availabilityperiod) with the specified date range and available units.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| availableFrom | java.util.Date | the date from |
| availableTo | java.util.Date | the date to |
| availableUnits | double | available units |

### getAvailableFrom() {#getAvailableFrom--}
```
public final Date getAvailableFrom()
```


Gets the date when a resource becomes available for the specified period.

**Returns:**
java.util.Date - the date when a resource becomes available for the specified period.
### getAvailableTo() {#getAvailableTo--}
```
public final Date getAvailableTo()
```


Gets the last date when a resource is available for the specified period.

**Returns:**
java.util.Date - the last date when a resource is available for the specified period.
### getAvailableUnits() {#getAvailableUnits--}
```
public final double getAvailableUnits()
```


Gets the percentage of a resource which is available during the specified period.

**Returns:**
double - the percentage of a resource which is available during the specified period.
### setAvailableFrom(Date value) {#setAvailableFrom-java.util.Date-}
```
public final void setAvailableFrom(Date value)
```


Sets the date when a resource becomes available for the specified period.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.util.Date | the date when a resource becomes available for the specified period. |

### setAvailableTo(Date value) {#setAvailableTo-java.util.Date-}
```
public final void setAvailableTo(Date value)
```


Sets the last date when a resource is available for the specified period.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.util.Date | the last date when a resource is available for the specified period. |

### setAvailableUnits(double value) {#setAvailableUnits-double-}
```
public final void setAvailableUnits(double value)
```


Sets the percentage of a resource which is available during the specified period.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | double | the percentage of a resource which is available during the specified period. |

