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<Tag> 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.List<Doc> docs, java.util.List<OpenApiSpec> openApiSpecs, java.util.List<GraphQlSchema> graphQlSchemas, java.util.List<ComponentState> states, 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 ComponentaddState(ComponentState state)ComponentaddStates(java.util.List<ComponentState> states)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()java.util.List<@Valid Doc>getDocs()java.util.List<@Valid GraphQlSchema>getGraphQlSchemas()java.lang.StringgetId()java.util.List<@Valid Link>getLinks()java.lang.StringgetName()java.lang.StringgetNotes()java.util.List<@Valid OpenApiSpec>getOpenApiSpecs()java.lang.StringgetPlatformId()RepoReferencegetRepo()java.util.List<@Valid Responsibility>getResponsibilities()java.util.List<@Valid ScannerError>getScannerErrors()<T extends ComponentState>
TgetState(java.lang.String type)java.util.List<@Valid ComponentState>getStates()<T extends ComponentState>
java.util.List<T>getStates(java.lang.String type)java.util.List<@Valid Tag>getTags()java.util.List<@Valid ComponentTeam>getTeams()java.util.List<@Valid TechDebt>getTechDebts()java.util.List<@Valid TestResult>getTestResults()java.lang.StringgetTypeId()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)ComponentwithDocs(java.util.List<@Valid Doc> docs)ComponentwithGraphQlSchemas(java.util.List<@Valid GraphQlSchema> graphQlSchemas)ComponentwithId(java.lang.String id)ComponentwithLinks(java.util.List<@Valid Link> links)ComponentwithName(java.lang.String name)ComponentwithNotes(java.lang.String notes)ComponentwithOpenApiSpecs(java.util.List<@Valid OpenApiSpec> openApiSpecs)ComponentwithPlatformId(java.lang.String platformId)ComponentwithRepo(RepoReference repo)ComponentwithResponsibilities(java.util.List<@Valid Responsibility> responsibilities)ComponentwithScannerErrors(java.util.List<@Valid ScannerError> scannerErrors)ComponentwithStates(java.util.List<@Valid ComponentState> states)ComponentwithTags(java.util.List<@Valid Tag> tags)ComponentwithTeams(java.util.List<@Valid ComponentTeam> teams)ComponentwithTechDebts(java.util.List<@Valid TechDebt> techDebts)ComponentwithTestResults(java.util.List<@Valid TestResult> testResults)ComponentwithTypeId(java.lang.String typeId)
-
-
-
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<Tag> 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.List<Doc> docs, java.util.List<OpenApiSpec> openApiSpecs, java.util.List<GraphQlSchema> graphQlSchemas, java.util.List<ComponentState> states, java.util.List<ScannerError> scannerErrors, java.util.List<TestResult> testResults)
-
-
Method Detail
-
reference
public java.lang.String reference()
- Specified by:
referencein interfaceObjectWithReference
-
addState
public Component addState(ComponentState state)
-
addStates
public Component addStates(java.util.List<ComponentState> states)
-
getStates
public <T extends ComponentState> java.util.List<T> getStates(java.lang.String type)
-
getState
public <T extends ComponentState> T getState(java.lang.String type)
-
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<@Valid Tag> 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()
-
getDocs
public java.util.List<@Valid Doc> getDocs()
-
getOpenApiSpecs
public java.util.List<@Valid OpenApiSpec> getOpenApiSpecs()
-
getGraphQlSchemas
public java.util.List<@Valid GraphQlSchema> getGraphQlSchemas()
-
getStates
public java.util.List<@Valid ComponentState> getStates()
-
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<@Valid Tag> 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).
-
withDocs
public Component withDocs(java.util.List<@Valid Doc> docs)
- 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).
-
withGraphQlSchemas
public Component withGraphQlSchemas(java.util.List<@Valid GraphQlSchema> graphQlSchemas)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withStates
public Component withStates(java.util.List<@Valid ComponentState> states)
- 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).
-
-