Package com.launchdarkly.api.model
Class StatisticRep
- java.lang.Object
-
- com.launchdarkly.api.model.StatisticRep
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-05T10:45:26.516033Z[Etc/UTC]", comments="Generator version: 7.18.0") public class StatisticRep extends java.lang.ObjectStatisticRep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStatisticRep.CustomTypeAdapterFactorystatic classStatisticRep.TypeEnumThe type of repository
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<java.lang.String>openapiFieldsstatic java.util.HashSet<java.lang.String>openapiRequiredFieldsstatic java.lang.StringSERIALIZED_NAME_DEFAULT_BRANCHstatic java.lang.StringSERIALIZED_NAME_ENABLEDstatic java.lang.StringSERIALIZED_NAME_FILE_COUNTstatic java.lang.StringSERIALIZED_NAME_HUNK_COUNTstatic java.lang.StringSERIALIZED_NAME_LATEST_COMMIT_TIMEstatic java.lang.StringSERIALIZED_NAME_LINKSstatic java.lang.StringSERIALIZED_NAME_NAMEstatic java.lang.StringSERIALIZED_NAME_SOURCE_LINKstatic java.lang.StringSERIALIZED_NAME_TYPEstatic java.lang.StringSERIALIZED_NAME_VERSION
-
Constructor Summary
Constructors Constructor Description StatisticRep()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StatisticRepdefaultBranch(java.lang.String defaultBranch)StatisticRepenabled(java.lang.Boolean enabled)booleanequals(java.lang.Object o)StatisticRepfileCount(java.lang.Integer fileCount)static StatisticRepfromJson(java.lang.String jsonString)Create an instance of StatisticRep given an JSON stringjava.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()Return the additional (undeclared) property.java.lang.ObjectgetAdditionalProperty(java.lang.String key)Return the additional (undeclared) property with the specified name.java.lang.StringgetDefaultBranch()The repository's default branchjava.lang.BooleangetEnabled()Whether or not a repository is enabled for code reference scanningjava.lang.IntegergetFileCount()The number of files in which the flag appears in this repositoryjava.lang.IntegergetHunkCount()The number of code reference hunks in which the flag appears in this repositoryjava.lang.LonggetLatestCommitTime()Get latestCommitTimejava.util.Map<java.lang.String,Link>getLinks()The location and content type of related resourcesjava.lang.StringgetName()The repository namejava.lang.StringgetSourceLink()A URL to access the repositoryStatisticRep.TypeEnumgetType()The type of repositoryjava.lang.IntegergetVersion()The version of the repository's saved informationinthashCode()StatisticRephunkCount(java.lang.Integer hunkCount)StatisticReplatestCommitTime(java.lang.Long latestCommitTime)StatisticReplinks(java.util.Map<java.lang.String,Link> links)StatisticRepname(java.lang.String name)StatisticRepputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.StatisticRepputLinksItem(java.lang.String key, Link linksItem)voidsetDefaultBranch(java.lang.String defaultBranch)voidsetEnabled(java.lang.Boolean enabled)voidsetFileCount(java.lang.Integer fileCount)voidsetHunkCount(java.lang.Integer hunkCount)voidsetLatestCommitTime(java.lang.Long latestCommitTime)voidsetLinks(java.util.Map<java.lang.String,Link> links)voidsetName(java.lang.String name)voidsetSourceLink(java.lang.String sourceLink)voidsetType(StatisticRep.TypeEnum type)voidsetVersion(java.lang.Integer version)StatisticRepsourceLink(java.lang.String sourceLink)java.lang.StringtoJson()Convert an instance of StatisticRep to an JSON stringjava.lang.StringtoString()StatisticReptype(StatisticRep.TypeEnum type)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundStatisticRepversion(java.lang.Integer version)
-
-
-
Field Detail
-
SERIALIZED_NAME_NAME
public static final java.lang.String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final java.lang.String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SOURCE_LINK
public static final java.lang.String SERIALIZED_NAME_SOURCE_LINK
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEFAULT_BRANCH
public static final java.lang.String SERIALIZED_NAME_DEFAULT_BRANCH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENABLED
public static final java.lang.String SERIALIZED_NAME_ENABLED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VERSION
public static final java.lang.String SERIALIZED_NAME_VERSION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HUNK_COUNT
public static final java.lang.String SERIALIZED_NAME_HUNK_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FILE_COUNT
public static final java.lang.String SERIALIZED_NAME_FILE_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINKS
public static final java.lang.String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LATEST_COMMIT_TIME
public static final java.lang.String SERIALIZED_NAME_LATEST_COMMIT_TIME
- See Also:
- Constant Field Values
-
openapiFields
public static java.util.HashSet<java.lang.String> openapiFields
-
openapiRequiredFields
public static java.util.HashSet<java.lang.String> openapiRequiredFields
-
-
Method Detail
-
name
public StatisticRep name(@Nonnull java.lang.String name)
-
getName
@Nonnull public java.lang.String getName()
The repository name- Returns:
- name
-
setName
public void setName(@Nonnull java.lang.String name)
-
type
public StatisticRep type(@Nonnull StatisticRep.TypeEnum type)
-
getType
@Nonnull public StatisticRep.TypeEnum getType()
The type of repository- Returns:
- type
-
setType
public void setType(@Nonnull StatisticRep.TypeEnum type)
-
sourceLink
public StatisticRep sourceLink(@Nonnull java.lang.String sourceLink)
-
getSourceLink
@Nonnull public java.lang.String getSourceLink()
A URL to access the repository- Returns:
- sourceLink
-
setSourceLink
public void setSourceLink(@Nonnull java.lang.String sourceLink)
-
defaultBranch
public StatisticRep defaultBranch(@Nonnull java.lang.String defaultBranch)
-
getDefaultBranch
@Nonnull public java.lang.String getDefaultBranch()
The repository's default branch- Returns:
- defaultBranch
-
setDefaultBranch
public void setDefaultBranch(@Nonnull java.lang.String defaultBranch)
-
enabled
public StatisticRep enabled(@Nonnull java.lang.Boolean enabled)
-
getEnabled
@Nonnull public java.lang.Boolean getEnabled()
Whether or not a repository is enabled for code reference scanning- Returns:
- enabled
-
setEnabled
public void setEnabled(@Nonnull java.lang.Boolean enabled)
-
version
public StatisticRep version(@Nonnull java.lang.Integer version)
-
getVersion
@Nonnull public java.lang.Integer getVersion()
The version of the repository's saved information- Returns:
- version
-
setVersion
public void setVersion(@Nonnull java.lang.Integer version)
-
hunkCount
public StatisticRep hunkCount(@Nonnull java.lang.Integer hunkCount)
-
getHunkCount
@Nonnull public java.lang.Integer getHunkCount()
The number of code reference hunks in which the flag appears in this repository- Returns:
- hunkCount
-
setHunkCount
public void setHunkCount(@Nonnull java.lang.Integer hunkCount)
-
fileCount
public StatisticRep fileCount(@Nonnull java.lang.Integer fileCount)
-
getFileCount
@Nonnull public java.lang.Integer getFileCount()
The number of files in which the flag appears in this repository- Returns:
- fileCount
-
setFileCount
public void setFileCount(@Nonnull java.lang.Integer fileCount)
-
links
public StatisticRep links(@Nonnull java.util.Map<java.lang.String,Link> links)
-
putLinksItem
public StatisticRep putLinksItem(java.lang.String key, Link linksItem)
-
getLinks
@Nonnull public java.util.Map<java.lang.String,Link> getLinks()
The location and content type of related resources- Returns:
- links
-
setLinks
public void setLinks(@Nonnull java.util.Map<java.lang.String,Link> links)
-
latestCommitTime
public StatisticRep latestCommitTime(@Nullable java.lang.Long latestCommitTime)
-
getLatestCommitTime
@Nullable public java.lang.Long getLatestCommitTime()
Get latestCommitTime- Returns:
- latestCommitTime
-
setLatestCommitTime
public void setLatestCommitTime(@Nullable java.lang.Long latestCommitTime)
-
putAdditionalProperty
public StatisticRep putAdditionalProperty(java.lang.String key, java.lang.Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the StatisticRep instance itself
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public java.lang.Object getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
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
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws java.io.IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
java.io.IOException- if the JSON Element is invalid with respect to StatisticRep
-
fromJson
public static StatisticRep fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of StatisticRep given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StatisticRep
- Throws:
java.io.IOException- if the JSON string is invalid with respect to StatisticRep
-
toJson
public java.lang.String toJson()
Convert an instance of StatisticRep to an JSON string- Returns:
- JSON string
-
-