Package com.launchdarkly.api.model
Class StatisticRep
- java.lang.Object
-
- com.launchdarkly.api.model.StatisticRep
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-04-19T22:24:20.163470Z[Etc/UTC]") public class StatisticRep extends java.lang.ObjectStatisticRep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStatisticRep.CustomTypeAdapterFactory
-
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_LINKSstatic java.lang.StringSERIALIZED_NAME_NAMEstatic java.lang.StringSERIALIZED_NAME_SOURCE_LINKstatic 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.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 repositoryjava.lang.IntegergetVersion()The version of the repository's saved informationinthashCode()StatisticRephunkCount(java.lang.Integer hunkCount)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)voidsetLinks(java.util.Map<java.lang.String,Link> links)voidsetName(java.lang.String name)voidsetSourceLink(java.lang.String sourceLink)voidsetVersion(java.lang.Integer version)StatisticRepsourceLink(java.lang.String sourceLink)java.lang.StringtoJson()Convert an instance of StatisticRep to an JSON stringjava.lang.StringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object 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_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
-
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(java.lang.String name)
-
getName
@Nonnull public java.lang.String getName()
The repository name- Returns:
- name
-
setName
public void setName(java.lang.String name)
-
sourceLink
public StatisticRep sourceLink(java.lang.String sourceLink)
-
getSourceLink
@Nonnull public java.lang.String getSourceLink()
A URL to access the repository- Returns:
- sourceLink
-
setSourceLink
public void setSourceLink(java.lang.String sourceLink)
-
defaultBranch
public StatisticRep defaultBranch(java.lang.String defaultBranch)
-
getDefaultBranch
@Nonnull public java.lang.String getDefaultBranch()
The repository's default branch- Returns:
- defaultBranch
-
setDefaultBranch
public void setDefaultBranch(java.lang.String defaultBranch)
-
enabled
public StatisticRep enabled(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(java.lang.Boolean enabled)
-
version
public StatisticRep version(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(java.lang.Integer version)
-
hunkCount
public StatisticRep hunkCount(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(java.lang.Integer hunkCount)
-
fileCount
public StatisticRep fileCount(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(java.lang.Integer fileCount)
-
links
public StatisticRep links(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(java.util.Map<java.lang.String,Link> links)
-
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.
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
Return the additional (undeclared) property.
-
getAdditionalProperty
public java.lang.Object getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.
-
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
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws java.io.IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
java.io.IOException- if the JSON Object 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
-
-