Package tech.kronicle.sdk.models
Class Repo
- java.lang.Object
-
- tech.kronicle.sdk.models.Repo
-
- All Implemented Interfaces:
ObjectWithReference
public final class Repo extends java.lang.Object implements ObjectWithReference
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRepo.RepoBuilder
-
Constructor Summary
Constructors Constructor Description Repo(java.lang.String url, java.lang.String description, java.lang.Boolean hasComponentMetadataFile, ComponentState state)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Repo.RepoBuilderbuilder()booleanequals(java.lang.Object o)java.lang.StringgetDescription()java.lang.BooleangetHasComponentMetadataFile()ComponentStategetState()java.lang.StringgetUrl()inthashCode()java.lang.Stringreference()Repo.RepoBuildertoBuilder()java.lang.StringtoString()RepowithDescription(java.lang.String description)RepowithHasComponentMetadataFile(java.lang.Boolean hasComponentMetadataFile)RepowithState(ComponentState state)RepowithUpdatedState(java.util.function.UnaryOperator<ComponentState> action)RepowithUrl(java.lang.String url)
-
-
-
Constructor Detail
-
Repo
@ConstructorProperties({"url","description","hasComponentMetadataFile","state"}) public Repo(java.lang.String url, java.lang.String description, java.lang.Boolean hasComponentMetadataFile, ComponentState state)
-
-
Method Detail
-
reference
public java.lang.String reference()
- Specified by:
referencein interfaceObjectWithReference
-
withUpdatedState
public Repo withUpdatedState(java.util.function.UnaryOperator<ComponentState> action)
-
builder
public static Repo.RepoBuilder builder()
-
toBuilder
public Repo.RepoBuilder toBuilder()
-
getUrl
public java.lang.String getUrl()
-
getDescription
public java.lang.String getDescription()
-
getHasComponentMetadataFile
public java.lang.Boolean getHasComponentMetadataFile()
-
getState
public ComponentState getState()
-
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
-
withUrl
public Repo withUrl(java.lang.String url)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDescription
public Repo withDescription(java.lang.String description)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withHasComponentMetadataFile
public Repo withHasComponentMetadataFile(java.lang.Boolean hasComponentMetadataFile)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withState
public Repo withState(ComponentState state)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
-