Package com.launchdarkly.api.model
Class StatisticRep
- java.lang.Object
-
- com.launchdarkly.api.model.StatisticRep
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-07-11T22:46:03.646077Z[Etc/UTC]") public class StatisticRep extends java.lang.Object
StatisticRep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StatisticRep.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<java.lang.String>
openapiFields
static java.util.HashSet<java.lang.String>
openapiRequiredFields
static java.lang.String
SERIALIZED_NAME_DEFAULT_BRANCH
static java.lang.String
SERIALIZED_NAME_ENABLED
static java.lang.String
SERIALIZED_NAME_FILE_COUNT
static java.lang.String
SERIALIZED_NAME_HUNK_COUNT
static java.lang.String
SERIALIZED_NAME_LINKS
static java.lang.String
SERIALIZED_NAME_NAME
static java.lang.String
SERIALIZED_NAME_SOURCE_LINK
static java.lang.String
SERIALIZED_NAME_VERSION
-
Constructor Summary
Constructors Constructor Description StatisticRep()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StatisticRep
defaultBranch(java.lang.String defaultBranch)
StatisticRep
enabled(java.lang.Boolean enabled)
boolean
equals(java.lang.Object o)
StatisticRep
fileCount(java.lang.Integer fileCount)
static StatisticRep
fromJson(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.Object
getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.java.lang.String
getDefaultBranch()
The repository's default branchjava.lang.Boolean
getEnabled()
Whether or not a repository is enabled for code reference scanningjava.lang.Integer
getFileCount()
The number of files in which the flag appears in this repositoryjava.lang.Integer
getHunkCount()
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.String
getName()
The repository namejava.lang.String
getSourceLink()
A URL to access the repositoryjava.lang.Integer
getVersion()
The version of the repository's saved informationint
hashCode()
StatisticRep
hunkCount(java.lang.Integer hunkCount)
StatisticRep
links(java.util.Map<java.lang.String,Link> links)
StatisticRep
name(java.lang.String name)
StatisticRep
putAdditionalProperty(java.lang.String key, java.lang.Object value)
Set the additional (undeclared) property with the specified name and value.StatisticRep
putLinksItem(java.lang.String key, Link linksItem)
void
setDefaultBranch(java.lang.String defaultBranch)
void
setEnabled(java.lang.Boolean enabled)
void
setFileCount(java.lang.Integer fileCount)
void
setHunkCount(java.lang.Integer hunkCount)
void
setLinks(java.util.Map<java.lang.String,Link> links)
void
setName(java.lang.String name)
void
setSourceLink(java.lang.String sourceLink)
void
setVersion(java.lang.Integer version)
StatisticRep
sourceLink(java.lang.String sourceLink)
java.lang.String
toJson()
Convert an instance of StatisticRep to an JSON stringjava.lang.String
toString()
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues foundStatisticRep
version(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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws java.io.IOException
Validates 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
-
-