org.jfrog.build.api.builder
Class BuildInfoBuilder

java.lang.Object
  extended by org.jfrog.build.api.builder.BuildInfoBuilder

public class BuildInfoBuilder
extends java.lang.Object

A builder for the build class


Constructor Summary
BuildInfoBuilder(java.lang.String name)
           
 
Method Summary
 BuildInfoBuilder addModule(Module module)
          Adds the given module to the modules list
 BuildInfoBuilder addProperty(java.lang.Object key, java.lang.Object value)
          Adds the given property to the properties object
 BuildInfoBuilder addStatus(PromotionStatus promotionStatus)
           
 BuildInfoBuilder agent(Agent agent)
          Sets the agent of the build
 BuildInfoBuilder artifactoryPrincipal(java.lang.String artifactoryPrincipal)
          Sets the Artifactory principal of the build
 Build build()
          Assembles the build class
 BuildInfoBuilder buildAgent(BuildAgent buildAgent)
          Sets the build agent of the build
 BuildInfoBuilder buildRetention(BuildRetention buildRetention)
          Sets the post build retention period
 BuildInfoBuilder durationMillis(long durationMillis)
          Sets the duration milliseconds of the build
 BuildInfoBuilder governance(Governance governance)
           
 BuildInfoBuilder issues(Issues issues)
           
 BuildInfoBuilder licenseControl(LicenseControl licenseControl)
          Sets the violation notifications of the build
 BuildInfoBuilder modules(java.util.List<Module> modules)
          Sets the modules of the build
 BuildInfoBuilder name(java.lang.String name)
          Sets the name of the build
 BuildInfoBuilder number(java.lang.String number)
          Sets the number of the build
 BuildInfoBuilder parentName(java.lang.String parentName)
          Sets the parent build name of the build
 BuildInfoBuilder parentNumber(java.lang.String parentNumber)
          Sets the parent build number of the build
 BuildInfoBuilder principal(java.lang.String principal)
          Sets the principal of the build
 BuildInfoBuilder properties(java.util.Properties properties)
          Sets the properties of the build
 BuildInfoBuilder started(java.lang.String started)
          Sets the started time of the build
 BuildInfoBuilder startedDate(java.util.Date startedDate)
          Sets the started time of the build
 BuildInfoBuilder statuses(java.util.List<PromotionStatus> statuses)
           
 BuildInfoBuilder type(BuildType type)
          Sets the type of the build
 BuildInfoBuilder url(java.lang.String url)
          Sets the URL of the build
 BuildInfoBuilder vcsRevision(java.lang.String vcsRevision)
          Sets the vcs revision (format is vcs specific)
 BuildInfoBuilder version(java.lang.String version)
          Sets the version of the build
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildInfoBuilder

public BuildInfoBuilder(java.lang.String name)
Method Detail

build

public Build build()
Assembles the build class

Returns:
Assembled build

version

public BuildInfoBuilder version(java.lang.String version)
Sets the version of the build

Parameters:
version - Build version
Returns:
Builder instance

name

public BuildInfoBuilder name(java.lang.String name)
Sets the name of the build

Parameters:
name - Build name
Returns:
Builder instance

number

public BuildInfoBuilder number(java.lang.String number)
Sets the number of the build

Parameters:
number - Build number
Returns:
Builder instance

type

public BuildInfoBuilder type(BuildType type)
Sets the type of the build

Parameters:
type - Build type
Returns:
Builder instance

agent

public BuildInfoBuilder agent(Agent agent)
Sets the agent of the build

Parameters:
agent - Build agent
Returns:
Builder instance

buildAgent

public BuildInfoBuilder buildAgent(BuildAgent buildAgent)
Sets the build agent of the build

Parameters:
buildAgent - The build agent
Returns:
Builder instance

started

public BuildInfoBuilder started(java.lang.String started)
Sets the started time of the build

Parameters:
started - Build started time
Returns:
Builder instance

startedDate

public BuildInfoBuilder startedDate(java.util.Date startedDate)
Sets the started time of the build

Parameters:
startedDate - Build started date
Returns:
Builder instance

durationMillis

public BuildInfoBuilder durationMillis(long durationMillis)
Sets the duration milliseconds of the build

Parameters:
durationMillis - Build duration milliseconds
Returns:
Builder instance

principal

public BuildInfoBuilder principal(java.lang.String principal)
Sets the principal of the build

Parameters:
principal - Build principal
Returns:
Builder instance

artifactoryPrincipal

public BuildInfoBuilder artifactoryPrincipal(java.lang.String artifactoryPrincipal)
Sets the Artifactory principal of the build

Parameters:
artifactoryPrincipal - Build Artifactory principal
Returns:
Builder instance

url

public BuildInfoBuilder url(java.lang.String url)
Sets the URL of the build

Parameters:
url - Build URL
Returns:
Builder instance

parentName

public BuildInfoBuilder parentName(java.lang.String parentName)
Sets the parent build name of the build

Parameters:
parentName - Build parent build name
Returns:
Builder instance

parentNumber

public BuildInfoBuilder parentNumber(java.lang.String parentNumber)
Sets the parent build number of the build

Parameters:
parentNumber - Build parent build number
Returns:
Builder instance

vcsRevision

public BuildInfoBuilder vcsRevision(java.lang.String vcsRevision)
Sets the vcs revision (format is vcs specific)

Parameters:
vcsRevision - The vcs revision
Returns:
Builder instance

modules

public BuildInfoBuilder modules(java.util.List<Module> modules)
Sets the modules of the build

Parameters:
modules - Build modules
Returns:
Builder instance

statuses

public BuildInfoBuilder statuses(java.util.List<PromotionStatus> statuses)

addStatus

public BuildInfoBuilder addStatus(PromotionStatus promotionStatus)

licenseControl

public BuildInfoBuilder licenseControl(LicenseControl licenseControl)
Sets the violation notifications of the build

Parameters:
licenseControl - Build violation recipients.
Returns:
Builder instance

buildRetention

public BuildInfoBuilder buildRetention(BuildRetention buildRetention)
Sets the post build retention period

Parameters:
licenseControl - Build violation recipients.
Returns:
Builder instance

addModule

public BuildInfoBuilder addModule(Module module)
Adds the given module to the modules list

Parameters:
module - Module to add
Returns:
Builder instance

properties

public BuildInfoBuilder properties(java.util.Properties properties)
Sets the properties of the build

Parameters:
properties - Build properties
Returns:
Builder instance

addProperty

public BuildInfoBuilder addProperty(java.lang.Object key,
                                    java.lang.Object value)
Adds the given property to the properties object

Parameters:
key - Key of property to add
value - Value of property to add
Returns:
Builder instance

issues

public BuildInfoBuilder issues(Issues issues)

governance

public BuildInfoBuilder governance(Governance governance)