org.jfrog.build.api.builder
Class BuildInfoBuilder

java.lang.Object
  extended by org.jfrog.build.api.builder.BuildInfoBuilder
Direct Known Subclasses:
BuildInfoMavenBuilder

public class BuildInfoBuilder
extends java.lang.Object

A builder for the build class


Field Summary
protected  Agent agent
           
protected  java.lang.String artifactoryPluginVersion
           
protected  java.lang.String artifactoryPrincipal
           
protected  BuildAgent buildAgent
           
protected  BuildRetention buildRetention
           
protected  long durationMillis
           
protected  Governance governance
           
protected  Issues issues
           
protected  LicenseControl licenseControl
           
protected  java.util.concurrent.ConcurrentHashMap<java.lang.String,Module> modules
           
protected  java.lang.String name
           
protected  java.lang.String number
           
protected  java.lang.String parentName
           
protected  java.lang.String parentNumber
           
protected  java.lang.String principal
           
protected  java.util.Properties properties
           
protected  java.util.List<MatrixParameter> runParameters
           
protected  java.lang.String started
           
protected  java.util.List<PromotionStatus> statuses
           
protected  BuildType type
           
protected  java.lang.String url
           
protected  java.lang.String vcsRevision
           
protected  java.lang.String vcsUrl
           
protected  java.lang.String version
           
 
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 addRunParameters(MatrixParameter parameter)
          Sets the post build retention period
 BuildInfoBuilder addStatus(PromotionStatus promotionStatus)
           
 BuildInfoBuilder agent(Agent agent)
          Sets the agent of the build
 BuildInfoBuilder artifactoryPluginVersion(java.lang.String artifactoryPluginVersion)
           
 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 buildRunParameters(java.util.List<MatrixParameter> runParameters)
          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.concurrent.ConcurrentHashMap<java.lang.String,Module> modules)
          Sets the modules 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 vcsUrl(java.lang.String vcsUrl)
          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
 

Field Detail

version

protected java.lang.String version

name

protected java.lang.String name

started

protected java.lang.String started

number

protected java.lang.String number

artifactoryPluginVersion

protected java.lang.String artifactoryPluginVersion

type

protected BuildType type

agent

protected Agent agent

buildAgent

protected BuildAgent buildAgent

durationMillis

protected long durationMillis

principal

protected java.lang.String principal

artifactoryPrincipal

protected java.lang.String artifactoryPrincipal

url

protected java.lang.String url

parentName

protected java.lang.String parentName

parentNumber

protected java.lang.String parentNumber

vcsRevision

protected java.lang.String vcsRevision

vcsUrl

protected java.lang.String vcsUrl

runParameters

protected java.util.List<MatrixParameter> runParameters

modules

protected java.util.concurrent.ConcurrentHashMap<java.lang.String,Module> modules

statuses

protected java.util.List<PromotionStatus> statuses

properties

protected java.util.Properties properties

licenseControl

protected LicenseControl licenseControl

buildRetention

protected BuildRetention buildRetention

issues

protected Issues issues

governance

protected Governance governance
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

artifactoryPluginVersion

public BuildInfoBuilder artifactoryPluginVersion(java.lang.String artifactoryPluginVersion)

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

vcsUrl

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

Parameters:
vcsUrl - The vcs revision
Returns:
Builder instance

modules

public BuildInfoBuilder modules(java.util.concurrent.ConcurrentHashMap<java.lang.String,Module> modules)
Sets the modules of the build

Parameters:
modules - Build modules
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:
buildRetention - Build violation recipients.
Returns:
Builder instance

buildRunParameters

public BuildInfoBuilder buildRunParameters(java.util.List<MatrixParameter> runParameters)
Sets the post build retention period

Parameters:
runParameters - matrix parameters.
Returns:
Builder instance

addRunParameters

public BuildInfoBuilder addRunParameters(MatrixParameter parameter)
Sets the post build retention period

Parameters:
parameter - MatrixParameter.
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)