Package tech.kronicle.sdk.models
Class Software
- java.lang.Object
-
- tech.kronicle.sdk.models.Software
-
- All Implemented Interfaces:
ObjectWithScannerId
public final class Software extends java.lang.Object implements ObjectWithScannerId
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSoftware.SoftwareBuilder
-
Constructor Summary
Constructors Constructor Description Software(java.lang.String scannerId, SoftwareType type, SoftwareDependencyType dependencyType, java.lang.String name, java.lang.String version, java.lang.String versionSelector, java.lang.String packaging, SoftwareScope scope)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Software.SoftwareBuilderbuilder()booleanequals(java.lang.Object o)SoftwareDependencyTypegetDependencyType()java.lang.StringgetName()java.lang.StringgetPackaging()java.lang.StringgetScannerId()SoftwareScopegetScope()SoftwareTypegetType()java.lang.StringgetVersion()java.lang.StringgetVersionSelector()inthashCode()Software.SoftwareBuildertoBuilder()java.lang.StringtoString()SoftwarewithDependencyType(SoftwareDependencyType dependencyType)SoftwarewithName(java.lang.String name)SoftwarewithPackaging(java.lang.String packaging)SoftwarewithScannerId(java.lang.String scannerId)SoftwarewithScope(SoftwareScope scope)SoftwarewithType(SoftwareType type)SoftwarewithVersion(java.lang.String version)SoftwarewithVersionSelector(java.lang.String versionSelector)
-
-
-
Constructor Detail
-
Software
@ConstructorProperties({"scannerId","type","dependencyType","name","version","versionSelector","packaging","scope"}) public Software(java.lang.String scannerId, SoftwareType type, SoftwareDependencyType dependencyType, java.lang.String name, java.lang.String version, java.lang.String versionSelector, java.lang.String packaging, SoftwareScope scope)
-
-
Method Detail
-
builder
public static Software.SoftwareBuilder builder()
-
toBuilder
public Software.SoftwareBuilder toBuilder()
-
getScannerId
public java.lang.String getScannerId()
- Specified by:
getScannerIdin interfaceObjectWithScannerId
-
getType
public SoftwareType getType()
-
getDependencyType
public SoftwareDependencyType getDependencyType()
-
getName
public java.lang.String getName()
-
getVersion
public java.lang.String getVersion()
-
getVersionSelector
public java.lang.String getVersionSelector()
-
getPackaging
public java.lang.String getPackaging()
-
getScope
public SoftwareScope getScope()
-
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
-
withScannerId
public Software withScannerId(java.lang.String scannerId)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withType
public Software withType(SoftwareType type)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDependencyType
public Software withDependencyType(SoftwareDependencyType dependencyType)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withName
public Software withName(java.lang.String name)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withVersion
public Software withVersion(java.lang.String version)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withVersionSelector
public Software withVersionSelector(java.lang.String versionSelector)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPackaging
public Software withPackaging(java.lang.String packaging)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withScope
public Software withScope(SoftwareScope scope)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
-