Class Day
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.Day
-
public final class Day extends Object
Day of the week.
-
-
Constructor Summary
Constructors Constructor Description Day()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
date()
Get the date property: Date of the month.Boolean
isLast()
Get the isLast property: Whether Date is last date of month.void
validate()
Validates the instance.Day
withDate(Integer date)
Set the date property: Date of the month.Day
withIsLast(Boolean isLast)
Set the isLast property: Whether Date is last date of month.
-
-
-
Method Detail
-
date
public Integer date()
Get the date property: Date of the month.- Returns:
- the date value.
-
withDate
public Day withDate(Integer date)
Set the date property: Date of the month.- Parameters:
date
- the date value to set.- Returns:
- the Day object itself.
-
isLast
public Boolean isLast()
Get the isLast property: Whether Date is last date of month.- Returns:
- the isLast value.
-
withIsLast
public Day withIsLast(Boolean isLast)
Set the isLast property: Whether Date is last date of month.- Parameters:
isLast
- the isLast value to set.- Returns:
- the Day object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-