com.atlassian.jira.bc.issue.worklog
Class WorklogInputParametersImpl.Builder

java.lang.Object
  extended by com.atlassian.jira.bc.issue.worklog.WorklogInputParametersImpl.Builder
Enclosing class:
WorklogInputParametersImpl

public static class WorklogInputParametersImpl.Builder
extends Object

A fluent-style Builder for constructing WorklogInputParameters, WorklogNewEstimateInputParameters and WorklogAdjustmentAmountInputParameters objects.

Since:
v4.2

Constructor Summary
WorklogInputParametersImpl.Builder()
           
 
Method Summary
 WorklogInputParametersImpl.Builder adjustmentAmount(String adjustmentAmount)
          Set the adjustment amount value when building a WorklogAdjustmentAmountInputParameters object.
 WorklogInputParameters build()
          Use this method to build the base WorklogInputParameters object.
 WorklogAdjustmentAmountInputParameters buildAdjustmentAmount()
          Use this method to build the WorklogAdjustmentAmountInputParameters object required for the "manual adjustment" (or "adjustment amount") service calls.
 WorklogInputParameters buildAll()
          Will build the WorklogInputParameters object and pass in every variable independent of which adjustment option you have picked.
 WorklogNewEstimateInputParameters buildNewEstimate()
          Use this method to build the WorklogNewEstimateInputParameters object required for the "new estimate" service calls.
 WorklogInputParametersImpl.Builder comment(String comment)
           
 WorklogInputParametersImpl.Builder editableCheckRequired(boolean editableCheckRequired)
           
 WorklogInputParametersImpl.Builder errorFieldPrefix(String errorFieldPrefix)
           
 WorklogInputParametersImpl.Builder groupLevel(String groupLevel)
           
 WorklogInputParametersImpl.Builder issue(Issue issue)
           
 WorklogInputParametersImpl.Builder newEstimate(String newEstimate)
          Set the new estimate value when building a WorklogNewEstimateInputParameters object.
 WorklogInputParametersImpl.Builder roleLevelId(String roleLevelId)
           
 WorklogInputParametersImpl.Builder startDate(Date startDate)
           
 WorklogInputParametersImpl.Builder timeSpent(String timeSpent)
           
 WorklogInputParametersImpl.Builder worklogId(Long worklogId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorklogInputParametersImpl.Builder

public WorklogInputParametersImpl.Builder()
Method Detail

worklogId

public WorklogInputParametersImpl.Builder worklogId(Long worklogId)

issue

public WorklogInputParametersImpl.Builder issue(Issue issue)

timeSpent

public WorklogInputParametersImpl.Builder timeSpent(String timeSpent)

startDate

public WorklogInputParametersImpl.Builder startDate(Date startDate)

comment

public WorklogInputParametersImpl.Builder comment(String comment)

groupLevel

public WorklogInputParametersImpl.Builder groupLevel(String groupLevel)

roleLevelId

public WorklogInputParametersImpl.Builder roleLevelId(String roleLevelId)

newEstimate

public WorklogInputParametersImpl.Builder newEstimate(String newEstimate)

Set the new estimate value when building a WorklogNewEstimateInputParameters object.

Note: the value you set here will be ignored if you build a WorklogInputParameters object using build() or a WorklogAdjustmentAmountInputParameters object using buildAdjustmentAmount().

Parameters:
newEstimate - the new estimate value
Returns:
the builder
See Also:
buildNewEstimate(), WorklogNewEstimateInputParameters

adjustmentAmount

public WorklogInputParametersImpl.Builder adjustmentAmount(String adjustmentAmount)

Set the adjustment amount value when building a WorklogAdjustmentAmountInputParameters object.

Note: the value you set here will be ignored if you build a WorklogInputParameters object using build() or a WorklogNewEstimateInputParameters object using buildNewEstimate().

Parameters:
adjustmentAmount - the adjustment amount value
Returns:
the builder
See Also:
buildAdjustmentAmount(), WorklogAdjustmentAmountInputParameters

editableCheckRequired

public WorklogInputParametersImpl.Builder editableCheckRequired(boolean editableCheckRequired)

errorFieldPrefix

public WorklogInputParametersImpl.Builder errorFieldPrefix(String errorFieldPrefix)

build

public WorklogInputParameters build()
Use this method to build the base WorklogInputParameters object.

Returns:
a WorklogInputParameters object with the built parameters.

buildAll

public WorklogInputParameters buildAll()
Will build the WorklogInputParameters object and pass in every variable independent of which adjustment option you have picked.

Returns:
a WorklogInputParameters object with the built parameters.

buildNewEstimate

public WorklogNewEstimateInputParameters buildNewEstimate()
Use this method to build the WorklogNewEstimateInputParameters object required for the "new estimate" service calls.

Returns:
a WorklogNewEstimateInputParameters object with the built parameters.

buildAdjustmentAmount

public WorklogAdjustmentAmountInputParameters buildAdjustmentAmount()
Use this method to build the WorklogAdjustmentAmountInputParameters object required for the "manual adjustment" (or "adjustment amount") service calls.

Returns:
a WorklogAdjustmentAmountInputParameters object with the built parameters.


Copyright © 2002-2014 Atlassian. All Rights Reserved.