Package com.smartsheet.api.models
Class ProjectSettings
- java.lang.Object
-
- com.smartsheet.api.models.ProjectSettings
-
public class ProjectSettings extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ProjectSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Float
getLengthOfDay()
Get length of workday for a project sheet, in hours.java.util.List<java.lang.String>
getNonWorkingDays()
Get non-working days of a week for a project sheet.java.util.List<DayOfWeek>
getWorkingDays()
Get working days of a week for a project sheet.ProjectSettings
setLengthOfDay(java.lang.Float lengthOfDay)
Set length of a workday for a project sheet in hours.ProjectSettings
setNonWorkingDays(java.util.List<java.lang.String> nonWorkingDays)
Set the non-working days of a week for a project sheet.ProjectSettings
setWorkingDays(java.util.List<DayOfWeek> workingDays)
Set the working days of a week for a project sheet.
-
-
-
Method Detail
-
getWorkingDays
public java.util.List<DayOfWeek> getWorkingDays()
Get working days of a week for a project sheet.- Returns:
- the list of working days
-
setWorkingDays
public ProjectSettings setWorkingDays(java.util.List<DayOfWeek> workingDays)
Set the working days of a week for a project sheet.- Parameters:
workingDays
- the list ofDayOfWeek
s to set
-
getNonWorkingDays
public java.util.List<java.lang.String> getNonWorkingDays()
Get non-working days of a week for a project sheet.- Returns:
- the list of non-working days
-
setNonWorkingDays
public ProjectSettings setNonWorkingDays(java.util.List<java.lang.String> nonWorkingDays)
Set the non-working days of a week for a project sheet.- Parameters:
nonWorkingDays
- the list of days to set. Must be an array of strings that are valid ISO-8601 dates ('YYYY-MM-DD’)
-
getLengthOfDay
public java.lang.Float getLengthOfDay()
Get length of workday for a project sheet, in hours.- Returns:
- length of day
-
setLengthOfDay
public ProjectSettings setLengthOfDay(java.lang.Float lengthOfDay)
Set length of a workday for a project sheet in hours. Valid value must be above or equal to 1 hour, and less than or equal to 24 hours.
-
-