Package tech.kronicle.sdk.models
Class Component
- java.lang.Object
-
- tech.kronicle.sdk.models.Component
-
- All Implemented Interfaces:
ObjectWithId,ObjectWithReference
public final class Component extends java.lang.Object implements ObjectWithId, ObjectWithReference
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classComponent.ComponentBuilder
-
Constructor Summary
Constructors Constructor Description Component(java.lang.String id, java.util.List<Alias> aliases, java.lang.String name, java.lang.Boolean discovered, java.lang.String typeId, java.util.List<java.lang.String> tags, RepoReference repo, java.lang.String description, java.util.List<Responsibility> responsibilities, java.lang.String notes, java.util.List<Link> links, java.util.List<ComponentTeam> teams, java.lang.String platformId, java.util.List<ComponentDependency> dependencies, java.util.List<CrossFunctionalRequirement> crossFunctionalRequirements, java.util.List<TechDebt> techDebts, java.util.Map<java.lang.String,java.lang.String> plugins, ComponentState state, GitRepo gitRepo, Gradle gradle, NodeJs nodeJs, java.util.List<SoftwareRepository> softwareRepositories, java.util.List<Software> software, java.util.List<Import> imports, java.util.List<KeySoftware> keySoftware, LinesOfCode linesOfCode, java.util.List<ToDo> toDos, Readme readme, Zipkin zipkin, java.util.List<OpenApiSpec> openApiSpecs, java.util.List<SonarQubeProject> sonarQubeProjects, java.util.List<ScannerError> scannerErrors, java.util.List<TestResult> testResults)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Component.ComponentBuilderbuilder()booleanequals(java.lang.Object o)java.util.List<Alias>getAliases()java.util.List<@Valid CrossFunctionalRequirement>getCrossFunctionalRequirements()java.util.List<@Valid ComponentDependency>getDependencies()java.lang.StringgetDescription()java.lang.BooleangetDiscovered()GitRepogetGitRepo()GradlegetGradle()java.lang.StringgetId()java.util.List<@Valid Import>getImports()java.util.List<@Valid KeySoftware>getKeySoftware()LinesOfCodegetLinesOfCode()java.util.List<@Valid Link>getLinks()java.lang.StringgetName()NodeJsgetNodeJs()java.lang.StringgetNotes()java.util.List<@Valid OpenApiSpec>getOpenApiSpecs()java.lang.StringgetPlatformId()java.util.Map<@NotEmpty java.lang.String,java.lang.String>getPlugins()ReadmegetReadme()RepoReferencegetRepo()java.util.List<@Valid Responsibility>getResponsibilities()java.util.List<@Valid ScannerError>getScannerErrors()java.util.List<@Valid Software>getSoftware()java.util.List<@Valid SoftwareRepository>getSoftwareRepositories()java.util.List<@Valid SonarQubeProject>getSonarQubeProjects()ComponentStategetState()java.util.List<@NotBlank @Pattern(regexp="[a-z][a-z0-9]*(-[a-z0-9]+)*") java.lang.String>getTags()java.util.List<@Valid ComponentTeam>getTeams()java.util.List<@Valid TechDebt>getTechDebts()java.util.List<@Valid TestResult>getTestResults()java.util.List<ToDo>getToDos()java.lang.StringgetTypeId()ZipkingetZipkin()inthashCode()java.lang.Stringreference()Component.ComponentBuildertoBuilder()java.lang.StringtoString()ComponentwithAliases(java.util.List<Alias> aliases)ComponentwithCrossFunctionalRequirements(java.util.List<@Valid CrossFunctionalRequirement> crossFunctionalRequirements)ComponentwithDependencies(java.util.List<@Valid ComponentDependency> dependencies)ComponentwithDescription(java.lang.String description)ComponentwithDiscovered(java.lang.Boolean discovered)ComponentwithGitRepo(GitRepo gitRepo)ComponentwithGradle(Gradle gradle)ComponentwithId(java.lang.String id)ComponentwithImports(java.util.List<@Valid Import> imports)ComponentwithKeySoftware(java.util.List<@Valid KeySoftware> keySoftware)ComponentwithLinesOfCode(LinesOfCode linesOfCode)ComponentwithLinks(java.util.List<@Valid Link> links)ComponentwithName(java.lang.String name)ComponentwithNodeJs(NodeJs nodeJs)ComponentwithNotes(java.lang.String notes)ComponentwithOpenApiSpecs(java.util.List<@Valid OpenApiSpec> openApiSpecs)ComponentwithPlatformId(java.lang.String platformId)ComponentwithPlugins(java.util.Map<@NotEmpty java.lang.String,java.lang.String> plugins)ComponentwithReadme(Readme readme)ComponentwithRepo(RepoReference repo)ComponentwithResponsibilities(java.util.List<@Valid Responsibility> responsibilities)ComponentwithScannerErrors(java.util.List<@Valid ScannerError> scannerErrors)ComponentwithSoftware(java.util.List<@Valid Software> software)ComponentwithSoftwareRepositories(java.util.List<@Valid SoftwareRepository> softwareRepositories)ComponentwithSonarQubeProjects(java.util.List<@Valid SonarQubeProject> sonarQubeProjects)ComponentwithState(ComponentState state)ComponentwithTags(java.util.List<@NotBlank @Pattern(regexp="[a-z][a-z0-9]*(-[a-z0-9]+)*") java.lang.String> tags)ComponentwithTeams(java.util.List<@Valid ComponentTeam> teams)ComponentwithTechDebts(java.util.List<@Valid TechDebt> techDebts)ComponentwithTestResults(java.util.List<@Valid TestResult> testResults)ComponentwithToDos(java.util.List<ToDo> toDos)ComponentwithTypeId(java.lang.String typeId)ComponentwithUpdatedState(java.util.function.UnaryOperator<ComponentState> action)ComponentwithZipkin(Zipkin zipkin)
-
-
-
Constructor Detail
-
Component
public Component(java.lang.String id, java.util.List<Alias> aliases, java.lang.String name, java.lang.Boolean discovered, java.lang.String typeId, java.util.List<java.lang.String> tags, RepoReference repo, java.lang.String description, java.util.List<Responsibility> responsibilities, java.lang.String notes, java.util.List<Link> links, java.util.List<ComponentTeam> teams, java.lang.String platformId, java.util.List<ComponentDependency> dependencies, java.util.List<CrossFunctionalRequirement> crossFunctionalRequirements, java.util.List<TechDebt> techDebts, java.util.Map<java.lang.String,java.lang.String> plugins, ComponentState state, GitRepo gitRepo, Gradle gradle, NodeJs nodeJs, java.util.List<SoftwareRepository> softwareRepositories, java.util.List<Software> software, java.util.List<Import> imports, java.util.List<KeySoftware> keySoftware, LinesOfCode linesOfCode, java.util.List<ToDo> toDos, Readme readme, Zipkin zipkin, java.util.List<OpenApiSpec> openApiSpecs, java.util.List<SonarQubeProject> sonarQubeProjects, java.util.List<ScannerError> scannerErrors, java.util.List<TestResult> testResults)
-
-
Method Detail
-
reference
public java.lang.String reference()
- Specified by:
referencein interfaceObjectWithReference
-
withUpdatedState
public Component withUpdatedState(java.util.function.UnaryOperator<ComponentState> action)
-
builder
public static Component.ComponentBuilder builder()
-
toBuilder
public Component.ComponentBuilder toBuilder()
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceObjectWithId
-
getAliases
public java.util.List<Alias> getAliases()
-
getName
public java.lang.String getName()
-
getDiscovered
public java.lang.Boolean getDiscovered()
-
getTypeId
public java.lang.String getTypeId()
-
getTags
public java.util.List<@NotBlank @Pattern(regexp="[a-z][a-z0-9]*(-[a-z0-9]+)*") java.lang.String> getTags()
-
getRepo
public RepoReference getRepo()
-
getDescription
public java.lang.String getDescription()
-
getResponsibilities
public java.util.List<@Valid Responsibility> getResponsibilities()
-
getNotes
public java.lang.String getNotes()
-
getLinks
public java.util.List<@Valid Link> getLinks()
-
getTeams
public java.util.List<@Valid ComponentTeam> getTeams()
-
getPlatformId
public java.lang.String getPlatformId()
-
getDependencies
public java.util.List<@Valid ComponentDependency> getDependencies()
-
getCrossFunctionalRequirements
public java.util.List<@Valid CrossFunctionalRequirement> getCrossFunctionalRequirements()
-
getTechDebts
public java.util.List<@Valid TechDebt> getTechDebts()
-
getPlugins
public java.util.Map<@NotEmpty java.lang.String,java.lang.String> getPlugins()
-
getState
public ComponentState getState()
-
getGitRepo
public GitRepo getGitRepo()
-
getGradle
public Gradle getGradle()
-
getNodeJs
public NodeJs getNodeJs()
-
getSoftwareRepositories
public java.util.List<@Valid SoftwareRepository> getSoftwareRepositories()
-
getSoftware
public java.util.List<@Valid Software> getSoftware()
-
getImports
public java.util.List<@Valid Import> getImports()
-
getKeySoftware
public java.util.List<@Valid KeySoftware> getKeySoftware()
-
getLinesOfCode
public LinesOfCode getLinesOfCode()
-
getToDos
public java.util.List<ToDo> getToDos()
-
getReadme
public Readme getReadme()
-
getZipkin
public Zipkin getZipkin()
-
getOpenApiSpecs
public java.util.List<@Valid OpenApiSpec> getOpenApiSpecs()
-
getSonarQubeProjects
public java.util.List<@Valid SonarQubeProject> getSonarQubeProjects()
-
getScannerErrors
public java.util.List<@Valid ScannerError> getScannerErrors()
-
getTestResults
public java.util.List<@Valid TestResult> getTestResults()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
withId
public Component withId(java.lang.String id)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAliases
public Component withAliases(java.util.List<Alias> aliases)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withName
public Component withName(java.lang.String name)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDiscovered
public Component withDiscovered(java.lang.Boolean discovered)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTypeId
public Component withTypeId(java.lang.String typeId)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTags
public Component withTags(java.util.List<@NotBlank @Pattern(regexp="[a-z][a-z0-9]*(-[a-z0-9]+)*") java.lang.String> tags)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRepo
public Component withRepo(RepoReference repo)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDescription
public Component withDescription(java.lang.String description)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withResponsibilities
public Component withResponsibilities(java.util.List<@Valid Responsibility> responsibilities)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNotes
public Component withNotes(java.lang.String notes)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLinks
public Component withLinks(java.util.List<@Valid Link> links)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTeams
public Component withTeams(java.util.List<@Valid ComponentTeam> teams)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPlatformId
public Component withPlatformId(java.lang.String platformId)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDependencies
public Component withDependencies(java.util.List<@Valid ComponentDependency> dependencies)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCrossFunctionalRequirements
public Component withCrossFunctionalRequirements(java.util.List<@Valid CrossFunctionalRequirement> crossFunctionalRequirements)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTechDebts
public Component withTechDebts(java.util.List<@Valid TechDebt> techDebts)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPlugins
public Component withPlugins(java.util.Map<@NotEmpty java.lang.String,java.lang.String> plugins)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withState
public Component withState(ComponentState state)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withGitRepo
public Component withGitRepo(GitRepo gitRepo)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withGradle
public Component withGradle(Gradle gradle)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNodeJs
public Component withNodeJs(NodeJs nodeJs)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSoftwareRepositories
public Component withSoftwareRepositories(java.util.List<@Valid SoftwareRepository> softwareRepositories)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSoftware
public Component withSoftware(java.util.List<@Valid Software> software)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withImports
public Component withImports(java.util.List<@Valid Import> imports)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withKeySoftware
public Component withKeySoftware(java.util.List<@Valid KeySoftware> keySoftware)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLinesOfCode
public Component withLinesOfCode(LinesOfCode linesOfCode)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withToDos
public Component withToDos(java.util.List<ToDo> toDos)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withReadme
public Component withReadme(Readme readme)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withZipkin
public Component withZipkin(Zipkin zipkin)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withOpenApiSpecs
public Component withOpenApiSpecs(java.util.List<@Valid OpenApiSpec> openApiSpecs)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSonarQubeProjects
public Component withSonarQubeProjects(java.util.List<@Valid SonarQubeProject> sonarQubeProjects)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withScannerErrors
public Component withScannerErrors(java.util.List<@Valid ScannerError> scannerErrors)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTestResults
public Component withTestResults(java.util.List<@Valid TestResult> testResults)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
-