Class Day
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.Day
Day of the week.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondate()
Get the date property: Date of the month.isLast()
Get the isLast property: Whether Date is last date of month.void
validate()
Validates the instance.Set the date property: Date of the month.withIsLast
(Boolean isLast) Set the isLast property: Whether Date is last date of month.
-
Constructor Details
-
Day
public Day()Creates an instance of Day class.
-
-
Method Details
-
date
Get the date property: Date of the month.- Returns:
- the date value.
-
withDate
Set the date property: Date of the month.- Parameters:
date
- the date value to set.- Returns:
- the Day object itself.
-
isLast
Get the isLast property: Whether Date is last date of month.- Returns:
- the isLast value.
-
withIsLast
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.
-