public static final 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 that assumes the following:
date is now
description is empty
type is empty
|
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 date)
Returns a new spec with
date and using this as a prototype. |
IssueTimeTracking.EntrySpec |
withDescription(String description)
Returns a new spec with
description and using this as a prototype. |
IssueTimeTracking.EntrySpec |
withType(TimeTrackEntryType type)
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 date)
date and using this as a prototype.date - the entry's datedate and using this as a prototypepublic IssueTimeTracking.EntrySpec withDescription(String description)
description and using this as a prototype.description - the entry's descriptiondescription and using this as a prototypepublic IssueTimeTracking.EntrySpec withType(TimeTrackEntryType type)
type and using this as a prototype.type - 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.