public static class IssueTimeTracking.EntrySpec extends Object
Specifications for creating a TimeTrackEntry on an Issue.
The new entry will always be created on the Issue attached to this
IssueTimeTracking.
| Constructor and Description |
|---|
EntrySpec(Duration duration)
Shorthand constructor.
|
EntrySpec(LocalDate date,
Duration duration,
Optional<String> description,
Optional<TimeTrackEntryType> type)
Primary ctor.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.HttpEntity |
asHttpEntity()
Returns a
HttpEntity representing this spec. |
IssueTimeTracking.EntrySpec |
withDate(LocalDate entryDate)
Returns a new spec with
date and using this as a prototype. |
IssueTimeTracking.EntrySpec |
withDesc(String desc)
Returns a new spec with
description and using this as a prototype. |
IssueTimeTracking.EntrySpec |
withType(TimeTrackEntryType entryType)
Returns a new spec with
type and using this as a prototype. |
public EntrySpec(LocalDate date, Duration duration, Optional<String> description, Optional<TimeTrackEntryType> type)
date - the date when the entry was workedduration - the duration for the workdescription - description for the worktype - the work type (eg. "Development")public EntrySpec(Duration duration)
duration - the work's duration#EntrySpec(LocalDate, Duration, Optional, Optional)public IssueTimeTracking.EntrySpec withDate(LocalDate entryDate)
date and using this as a prototype.entryDate - the entry's datedate and using this as a prototypepublic IssueTimeTracking.EntrySpec withDesc(String desc)
description and using this as a prototype.desc - the entry's descriptiondescription and using this as a prototypepublic IssueTimeTracking.EntrySpec withType(TimeTrackEntryType entryType)
type and using this as a prototype.entryType - the entry's typetype and using this as a prototypepublic org.apache.http.HttpEntity asHttpEntity()
HttpEntity representing this spec.HttpEntity representing this specCopyright © 2017 George Aristy. All rights reserved.