org.jfrog.build.api.builder
Class BuildInfoMavenBuilder

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

public class BuildInfoMavenBuilder
extends java.lang.Object

A temporary builder for the build class specifically for Maven extractor.

NOTE! This class should be merged to BuildInfoBuilder once fully tested.


Constructor Summary
BuildInfoMavenBuilder(java.lang.String name)
           
 
Method Summary
 BuildInfoMavenBuilder addModule(Module module)
          Adds the given module to the modules list
 BuildInfoMavenBuilder addProperty(java.lang.Object key, java.lang.Object value)
          Adds the given property to the properties object
 BuildInfoMavenBuilder addStatus(PromotionStatus promotionStatus)
           
 BuildInfoMavenBuilder agent(Agent agent)
          Sets the agent of the build
 BuildInfoMavenBuilder artifactoryPrincipal(java.lang.String artifactoryPrincipal)
          Sets the Artifactory principal of the build
 Build build()
          Assembles the build class
 BuildInfoMavenBuilder buildAgent(BuildAgent buildAgent)
          Sets the build agent of the build
 BuildInfoMavenBuilder buildRetention(BuildRetention buildRetention)
          Sets the post build retention period
 BuildInfoMavenBuilder durationMillis(long durationMillis)
          Sets the duration milliseconds of the build
 java.util.List<Module> getModules()
           
 BuildInfoMavenBuilder governance(Governance governance)
           
 BuildInfoMavenBuilder issues(Issues issues)
           
 BuildInfoMavenBuilder licenseControl(LicenseControl licenseControl)
          Sets the violation notifications of the build
 BuildInfoMavenBuilder modules(java.util.List<Module> modules)
          Sets the modules of the build
 BuildInfoMavenBuilder name(java.lang.String name)
          Sets the name of the build
 BuildInfoMavenBuilder number(java.lang.String number)
          Sets the number of the build
 BuildInfoMavenBuilder parentName(java.lang.String parentName)
          Sets the parent build name of the build
 BuildInfoMavenBuilder parentNumber(java.lang.String parentNumber)
          Sets the parent build number of the build
 BuildInfoMavenBuilder principal(java.lang.String principal)
          Sets the principal of the build
 BuildInfoMavenBuilder properties(java.util.Properties properties)
          Sets the properties of the build
 BuildInfoMavenBuilder started(java.lang.String started)
          Sets the started time of the build
 BuildInfoMavenBuilder startedDate(java.util.Date startedDate)
          Sets the started time of the build
 BuildInfoMavenBuilder statuses(java.util.List<PromotionStatus> statuses)
           
 BuildInfoMavenBuilder type(BuildType type)
          Sets the type of the build
 BuildInfoMavenBuilder url(java.lang.String url)
          Sets the URL of the build
 BuildInfoMavenBuilder vcsRevision(java.lang.String vcsRevision)
          Sets the vcs revision (format is vcs specific)
 BuildInfoMavenBuilder 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

BuildInfoMavenBuilder

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

build

public Build build()
Assembles the build class

Returns:
Assembled build

version

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

Parameters:
version - Build version
Returns:
Builder instance

name

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

Parameters:
name - Build name
Returns:
Builder instance

number

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

Parameters:
number - Build number
Returns:
Builder instance

type

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

Parameters:
type - Build type
Returns:
Builder instance

agent

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

Parameters:
agent - Build agent
Returns:
Builder instance

buildAgent

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

Parameters:
buildAgent - The build agent
Returns:
Builder instance

started

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

Parameters:
started - Build started time
Returns:
Builder instance

startedDate

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

Parameters:
startedDate - Build started date
Returns:
Builder instance

durationMillis

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

Parameters:
durationMillis - Build duration milliseconds
Returns:
Builder instance

principal

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

Parameters:
principal - Build principal
Returns:
Builder instance

artifactoryPrincipal

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

Parameters:
artifactoryPrincipal - Build Artifactory principal
Returns:
Builder instance

url

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

Parameters:
url - Build URL
Returns:
Builder instance

parentName

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

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

parentNumber

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

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

vcsRevision

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

Parameters:
vcsRevision - The vcs revision
Returns:
Builder instance

modules

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

Parameters:
modules - Build modules
Returns:
Builder instance

getModules

public java.util.List<Module> getModules()

statuses

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

addStatus

public BuildInfoMavenBuilder addStatus(PromotionStatus promotionStatus)

licenseControl

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

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

buildRetention

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

Returns:
Builder instance

addModule

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

Parameters:
module - Module to add
Returns:
Builder instance

properties

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

Parameters:
properties - Build properties
Returns:
Builder instance

addProperty

public BuildInfoMavenBuilder 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 BuildInfoMavenBuilder issues(Issues issues)

governance

public BuildInfoMavenBuilder governance(Governance governance)