Class PlanTriggerResultBuilder
- java.lang.Object
-
- com.atlassian.bamboo.plan.trigger.PlanTriggerResultBuilder
-
@ExperimentalApi public final class PlanTriggerResultBuilder extends Object
Builder forPlanTriggerResult
s
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
PlanTriggerResultBuilder.BuildTriggerResultImpl
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PlanTriggerResultBuilder
addBuildChanges(@NotNull BuildChanges buildChanges)
PlanTriggerResultBuilder
addErrorMessage(@NotNull String message)
PlanTriggerResultBuilder
addErrorMessage(@NotNull String message, @NotNull Exception e)
PlanTriggerResultBuilder
addVariable(@NotNull String name, @NotNull String value)
PlanTriggerResult
build()
static PlanTriggerResultBuilder
create(Map<String,String> variables)
BuildChanges
getBuildChanges()
ErrorCollection
getErrorCollection()
Map<String,String>
getVariables()
PlanTriggerResultBuilder
removeVariable(@NotNull String name)
-
-
-
Method Detail
-
create
public static PlanTriggerResultBuilder create(Map<String,String> variables)
-
addBuildChanges
public PlanTriggerResultBuilder addBuildChanges(@NotNull @NotNull BuildChanges buildChanges)
-
addErrorMessage
public PlanTriggerResultBuilder addErrorMessage(@NotNull @NotNull String message, @NotNull @NotNull Exception e)
-
addErrorMessage
public PlanTriggerResultBuilder addErrorMessage(@NotNull @NotNull String message)
-
addVariable
public PlanTriggerResultBuilder addVariable(@NotNull @NotNull String name, @NotNull @NotNull String value)
-
removeVariable
public PlanTriggerResultBuilder removeVariable(@NotNull @NotNull String name)
-
getErrorCollection
public ErrorCollection getErrorCollection()
-
getBuildChanges
public BuildChanges getBuildChanges()
-
build
public PlanTriggerResult build()
-
-