Class CodeReferenceModel
- java.lang.Object
-
- com.configcat.publicapi.java.client.model.CodeReferenceModel
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-11-28T09:20:10.031721056Z[Etc/UTC]", comments="Generator version: 7.7.0") public class CodeReferenceModel extends java.lang.ObjectCodeReferenceModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCodeReferenceModel.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_BRANCHstatic java.lang.StringSERIALIZED_NAME_CODE_REFERENCE_IDstatic java.lang.StringSERIALIZED_NAME_COMMIT_HASHstatic java.lang.StringSERIALIZED_NAME_COMMIT_URLstatic java.lang.StringSERIALIZED_NAME_REFERENCESstatic java.lang.StringSERIALIZED_NAME_REPOSITORYstatic java.lang.StringSERIALIZED_NAME_SYNCED_ATstatic java.lang.StringSERIALIZED_NAME_UPLOADER
-
Constructor Summary
Constructors Constructor Description CodeReferenceModel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CodeReferenceModeladdReferencesItem(ReferenceLinesModel referencesItem)CodeReferenceModelbranch(java.lang.String branch)CodeReferenceModelcodeReferenceId(java.util.UUID codeReferenceId)CodeReferenceModelcommitHash(java.lang.String commitHash)CodeReferenceModelcommitUrl(java.lang.String commitUrl)booleanequals(java.lang.Object o)static CodeReferenceModelfromJson(java.lang.String jsonString)Create an instance of CodeReferenceModel 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.StringgetBranch()The source control branch on where the scan was performed.java.util.UUIDgetCodeReferenceId()The identifier of the reference report.java.lang.StringgetCommitHash()The related commit's hash.java.lang.StringgetCommitUrl()The related commit's URL.java.util.List<ReferenceLinesModel>getReferences()The actual references to the given Feature Flag or Setting.java.lang.StringgetRepository()The source control repository that contains the scanned code.java.time.OffsetDateTimegetSyncedAt()The date and time when the reference report was uploaded.java.lang.StringgetUploader()The code reference scanning tool's name.inthashCode()CodeReferenceModelputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.CodeReferenceModelreferences(java.util.List<ReferenceLinesModel> references)CodeReferenceModelrepository(java.lang.String repository)voidsetBranch(java.lang.String branch)voidsetCodeReferenceId(java.util.UUID codeReferenceId)voidsetCommitHash(java.lang.String commitHash)voidsetCommitUrl(java.lang.String commitUrl)voidsetReferences(java.util.List<ReferenceLinesModel> references)voidsetRepository(java.lang.String repository)voidsetSyncedAt(java.time.OffsetDateTime syncedAt)voidsetUploader(java.lang.String uploader)CodeReferenceModelsyncedAt(java.time.OffsetDateTime syncedAt)java.lang.StringtoJson()Convert an instance of CodeReferenceModel to an JSON stringjava.lang.StringtoString()CodeReferenceModeluploader(java.lang.String uploader)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_BRANCH
public static final java.lang.String SERIALIZED_NAME_BRANCH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCES
public static final java.lang.String SERIALIZED_NAME_REFERENCES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COMMIT_URL
public static final java.lang.String SERIALIZED_NAME_COMMIT_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COMMIT_HASH
public static final java.lang.String SERIALIZED_NAME_COMMIT_HASH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SYNCED_AT
public static final java.lang.String SERIALIZED_NAME_SYNCED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REPOSITORY
public static final java.lang.String SERIALIZED_NAME_REPOSITORY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CODE_REFERENCE_ID
public static final java.lang.String SERIALIZED_NAME_CODE_REFERENCE_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPLOADER
public static final java.lang.String SERIALIZED_NAME_UPLOADER
- 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
-
branch
public CodeReferenceModel branch(java.lang.String branch)
-
getBranch
@Nullable public java.lang.String getBranch()
The source control branch on where the scan was performed. (Source of the branch selector on the ConfigCat Dashboard)- Returns:
- branch
-
setBranch
public void setBranch(java.lang.String branch)
-
references
public CodeReferenceModel references(java.util.List<ReferenceLinesModel> references)
-
addReferencesItem
public CodeReferenceModel addReferencesItem(ReferenceLinesModel referencesItem)
-
getReferences
@Nullable public java.util.List<ReferenceLinesModel> getReferences()
The actual references to the given Feature Flag or Setting.- Returns:
- references
-
setReferences
public void setReferences(java.util.List<ReferenceLinesModel> references)
-
commitUrl
public CodeReferenceModel commitUrl(java.lang.String commitUrl)
-
getCommitUrl
@Nullable public java.lang.String getCommitUrl()
The related commit's URL.- Returns:
- commitUrl
-
setCommitUrl
public void setCommitUrl(java.lang.String commitUrl)
-
commitHash
public CodeReferenceModel commitHash(java.lang.String commitHash)
-
getCommitHash
@Nullable public java.lang.String getCommitHash()
The related commit's hash.- Returns:
- commitHash
-
setCommitHash
public void setCommitHash(java.lang.String commitHash)
-
syncedAt
public CodeReferenceModel syncedAt(java.time.OffsetDateTime syncedAt)
-
getSyncedAt
@Nonnull public java.time.OffsetDateTime getSyncedAt()
The date and time when the reference report was uploaded.- Returns:
- syncedAt
-
setSyncedAt
public void setSyncedAt(java.time.OffsetDateTime syncedAt)
-
repository
public CodeReferenceModel repository(java.lang.String repository)
-
getRepository
@Nullable public java.lang.String getRepository()
The source control repository that contains the scanned code.- Returns:
- repository
-
setRepository
public void setRepository(java.lang.String repository)
-
codeReferenceId
public CodeReferenceModel codeReferenceId(java.util.UUID codeReferenceId)
-
getCodeReferenceId
@Nonnull public java.util.UUID getCodeReferenceId()
The identifier of the reference report.- Returns:
- codeReferenceId
-
setCodeReferenceId
public void setCodeReferenceId(java.util.UUID codeReferenceId)
-
uploader
public CodeReferenceModel uploader(java.lang.String uploader)
-
getUploader
@Nullable public java.lang.String getUploader()
The code reference scanning tool's name.- Returns:
- uploader
-
setUploader
public void setUploader(java.lang.String uploader)
-
putAdditionalProperty
public CodeReferenceModel 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 CodeReferenceModel 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 CodeReferenceModel
-
fromJson
public static CodeReferenceModel fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of CodeReferenceModel given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CodeReferenceModel
- Throws:
java.io.IOException- if the JSON string is invalid with respect to CodeReferenceModel
-
toJson
public java.lang.String toJson()
Convert an instance of CodeReferenceModel to an JSON string- Returns:
- JSON string
-
-