com.atlassian.bamboo.plan.trigger
Class PlanTriggerResultBuilder

java.lang.Object
  extended by com.atlassian.bamboo.plan.trigger.PlanTriggerResultBuilder

@ExperimentalApi
public final class PlanTriggerResultBuilder
extends Object

Builder for PlanTriggerResults


Nested Class Summary
 class PlanTriggerResultBuilder.BuildTriggerResultImpl
           
 
Method Summary
 PlanTriggerResultBuilder addBuildChanges(BuildChanges buildChanges)
           
 PlanTriggerResultBuilder addErrorMessage(String message)
           
 PlanTriggerResultBuilder addErrorMessage(String message, Exception e)
           
 PlanTriggerResultBuilder addVariable(String name, String value)
           
 PlanTriggerResult build()
           
static PlanTriggerResultBuilder create(Map<String,String> variables)
           
 BuildChanges getBuildChanges()
           
 ErrorCollection getErrorCollection()
           
 Map<String,String> getVariables()
           
 PlanTriggerResultBuilder removeVariable(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static PlanTriggerResultBuilder create(Map<String,String> variables)

addBuildChanges

public PlanTriggerResultBuilder addBuildChanges(@NotNull
                                                BuildChanges buildChanges)

addErrorMessage

public PlanTriggerResultBuilder addErrorMessage(@NotNull
                                                String message,
                                                @NotNull
                                                Exception e)

addErrorMessage

public PlanTriggerResultBuilder addErrorMessage(@NotNull
                                                String message)

addVariable

public PlanTriggerResultBuilder addVariable(@NotNull
                                            String name,
                                            @NotNull
                                            String value)

removeVariable

public PlanTriggerResultBuilder removeVariable(@NotNull
                                               String name)

getVariables

public Map<String,String> getVariables()

getErrorCollection

public ErrorCollection getErrorCollection()

getBuildChanges

public BuildChanges getBuildChanges()

build

public PlanTriggerResult build()


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.