Package com.smartsheet.api.models
Class Duration
- java.lang.Object
-
- com.smartsheet.api.models.Duration
-
- All Implemented Interfaces:
ObjectValue
public class Duration extends java.lang.Object implements ObjectValue
-
-
Constructor Summary
Constructors Constructor Description Duration()
Default constructor for serializationDuration(java.lang.Boolean negative, java.lang.Boolean elapsed, java.lang.Double weeks, java.lang.Double days, java.lang.Double hours, java.lang.Double minutes, java.lang.Double seconds, java.lang.Double milliseconds)
Constructor with all possible attributes specified.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Double
getDays()
Get the number of days for this duration.java.lang.Boolean
getElapsed()
Indicates this duration represents elapsed time, which ignores non-working timejava.lang.Double
getHours()
Get the number of hours for this duration.java.lang.Double
getMilliseconds()
Get the number of milliseconds for this duration.java.lang.Double
getMinutes()
Get the number of minutes for this duration.java.lang.Boolean
getNegative()
Get flag indicating whether the lag is negative(true) or positive(false)ObjectValueType
getObjectType()
"DURATION"java.lang.Double
getSeconds()
Get the number of seconds for this duration.java.lang.Double
getWeeks()
Get the number of weeks in duration.Duration
setDays(java.lang.Double days)
Set the number of days for this duration.Duration
setElapsed(java.lang.Boolean elapsed)
Set flag indicating this duration represents elapsed time.Duration
setHours(java.lang.Double hours)
Set the number of hours for this duration.Duration
setMilliseconds(java.lang.Double milliseconds)
Set the number of milliseconds for this duration.Duration
setMinutes(java.lang.Double minutes)
Set the number of minutes for this duration.Duration
setNegative(java.lang.Boolean negative)
Set flag indicating whether the lag is negative(true) or positive(false)Duration
setSeconds(java.lang.Double seconds)
Set the number of seconds for this duration.Duration
setWeeks(java.lang.Double weeks)
Set the number of weeks in duration.
-
-
-
Constructor Detail
-
Duration
public Duration()
Default constructor for serialization
-
Duration
public Duration(java.lang.Boolean negative, java.lang.Boolean elapsed, java.lang.Double weeks, java.lang.Double days, java.lang.Double hours, java.lang.Double minutes, java.lang.Double seconds, java.lang.Double milliseconds)
Constructor with all possible attributes specified.
-
-
Method Detail
-
getObjectType
public ObjectValueType getObjectType()
"DURATION"- Specified by:
getObjectType
in interfaceObjectValue
- Returns:
- objectType
-
getNegative
public java.lang.Boolean getNegative()
Get flag indicating whether the lag is negative(true) or positive(false)- Returns:
- negative
-
setNegative
public Duration setNegative(java.lang.Boolean negative)
Set flag indicating whether the lag is negative(true) or positive(false)
-
getElapsed
public java.lang.Boolean getElapsed()
Indicates this duration represents elapsed time, which ignores non-working time
-
setElapsed
public Duration setElapsed(java.lang.Boolean elapsed)
Set flag indicating this duration represents elapsed time.
-
getWeeks
public java.lang.Double getWeeks()
Get the number of weeks in duration.
-
setWeeks
public Duration setWeeks(java.lang.Double weeks)
Set the number of weeks in duration.
-
getDays
public java.lang.Double getDays()
Get the number of days for this duration.- Returns:
- days
-
setDays
public Duration setDays(java.lang.Double days)
Set the number of days for this duration.
-
getHours
public java.lang.Double getHours()
Get the number of hours for this duration.- Returns:
- hours
-
setHours
public Duration setHours(java.lang.Double hours)
Set the number of hours for this duration.
-
getMinutes
public java.lang.Double getMinutes()
Get the number of minutes for this duration.- Returns:
- minutes
-
setMinutes
public Duration setMinutes(java.lang.Double minutes)
Set the number of minutes for this duration.
-
getSeconds
public java.lang.Double getSeconds()
Get the number of seconds for this duration.- Returns:
- seconds
-
setSeconds
public Duration setSeconds(java.lang.Double seconds)
Set the number of seconds for this duration.
-
getMilliseconds
public java.lang.Double getMilliseconds()
Get the number of milliseconds for this duration.- Returns:
- milliseconds
-
setMilliseconds
public Duration setMilliseconds(java.lang.Double milliseconds)
Set the number of milliseconds for this duration.
-
-