com.atlassian.bamboo.plan.trigger
Class PlanTriggerResultBuilder

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

public final class PlanTriggerResultBuilder
extends java.lang.Object

Builder for PlanTriggerResults


Nested Class Summary
 class PlanTriggerResultBuilder.BuildTriggerResultImpl
           
 
Method Summary
 PlanTriggerResultBuilder addBuildChanges(BuildChanges buildChanges)
           
 PlanTriggerResultBuilder addErrorMessage(java.lang.String message)
           
 PlanTriggerResultBuilder addErrorMessage(java.lang.String message, java.lang.Exception e)
           
 PlanTriggerResultBuilder addVariable(java.lang.String name, java.lang.String value)
           
 PlanTriggerResult build()
           
static PlanTriggerResultBuilder create(java.util.Map<java.lang.String,java.lang.String> variables)
           
 BuildChanges getBuildChanges()
           
 ErrorCollection getErrorCollection()
           
 java.util.Map<java.lang.String,java.lang.String> getVariables()
           
 PlanTriggerResultBuilder removeVariable(java.lang.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(java.util.Map<java.lang.String,java.lang.String> variables)

addBuildChanges

public PlanTriggerResultBuilder addBuildChanges(@NotNull
                                                BuildChanges buildChanges)

addErrorMessage

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

addErrorMessage

public PlanTriggerResultBuilder addErrorMessage(@NotNull
                                                java.lang.String message)

addVariable

public PlanTriggerResultBuilder addVariable(@NotNull
                                            java.lang.String name,
                                            @NotNull
                                            java.lang.String value)

removeVariable

public PlanTriggerResultBuilder removeVariable(@NotNull
                                               java.lang.String name)

getVariables

public java.util.Map<java.lang.String,java.lang.String> getVariables()

getErrorCollection

public ErrorCollection getErrorCollection()

getBuildChanges

public BuildChanges getBuildChanges()

build

public PlanTriggerResult build()


Copyright © 2012 Atlassian. All Rights Reserved.