@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-20T16:55:24.304297906Z[Etc/UTC]",
comments="Generator version: 7.7.0")
public class CodeReferenceModel
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CodeReferenceModel.CustomTypeAdapterFactory |
| Modifier and Type | Field and Description |
|---|---|
static java.util.HashSet<java.lang.String> |
openapiFields |
static java.util.HashSet<java.lang.String> |
openapiRequiredFields |
static java.lang.String |
SERIALIZED_NAME_BRANCH |
static java.lang.String |
SERIALIZED_NAME_CODE_REFERENCE_ID |
static java.lang.String |
SERIALIZED_NAME_COMMIT_HASH |
static java.lang.String |
SERIALIZED_NAME_COMMIT_URL |
static java.lang.String |
SERIALIZED_NAME_REFERENCES |
static java.lang.String |
SERIALIZED_NAME_REPOSITORY |
static java.lang.String |
SERIALIZED_NAME_SYNCED_AT |
static java.lang.String |
SERIALIZED_NAME_UPLOADER |
| Constructor and Description |
|---|
CodeReferenceModel() |
| Modifier and Type | Method and Description |
|---|---|
CodeReferenceModel |
addReferencesItem(ReferenceLines referencesItem) |
CodeReferenceModel |
branch(java.lang.String branch) |
CodeReferenceModel |
codeReferenceId(java.util.UUID codeReferenceId) |
CodeReferenceModel |
commitHash(java.lang.String commitHash) |
CodeReferenceModel |
commitUrl(java.lang.String commitUrl) |
boolean |
equals(java.lang.Object o) |
static CodeReferenceModel |
fromJson(java.lang.String jsonString)
Create an instance of CodeReferenceModel given an JSON string
|
java.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 |
getBranch()
The source control branch on where the scan was performed.
|
java.util.UUID |
getCodeReferenceId()
The identifier of the reference report.
|
java.lang.String |
getCommitHash()
The related commit's hash.
|
java.lang.String |
getCommitUrl()
The related commit's URL.
|
java.util.List<ReferenceLines> |
getReferences()
The actual references to the given Feature Flag or Setting.
|
java.lang.String |
getRepository()
The source control repository that contains the scanned code.
|
java.time.OffsetDateTime |
getSyncedAt()
The date and time when the reference report was uploaded.
|
java.lang.String |
getUploader()
The code reference scanning tool's name.
|
int |
hashCode() |
CodeReferenceModel |
putAdditionalProperty(java.lang.String key,
java.lang.Object value)
Set the additional (undeclared) property with the specified name and value.
|
CodeReferenceModel |
references(java.util.List<ReferenceLines> references) |
CodeReferenceModel |
repository(java.lang.String repository) |
void |
setBranch(java.lang.String branch) |
void |
setCodeReferenceId(java.util.UUID codeReferenceId) |
void |
setCommitHash(java.lang.String commitHash) |
void |
setCommitUrl(java.lang.String commitUrl) |
void |
setReferences(java.util.List<ReferenceLines> references) |
void |
setRepository(java.lang.String repository) |
void |
setSyncedAt(java.time.OffsetDateTime syncedAt) |
void |
setUploader(java.lang.String uploader) |
CodeReferenceModel |
syncedAt(java.time.OffsetDateTime syncedAt) |
java.lang.String |
toJson()
Convert an instance of CodeReferenceModel to an JSON string
|
java.lang.String |
toString() |
CodeReferenceModel |
uploader(java.lang.String uploader) |
static void |
validateJsonElement(com.google.gson.JsonElement jsonElement)
Validates the JSON Element and throws an exception if issues found
|
public static final java.lang.String SERIALIZED_NAME_BRANCH
public static final java.lang.String SERIALIZED_NAME_REFERENCES
public static final java.lang.String SERIALIZED_NAME_COMMIT_URL
public static final java.lang.String SERIALIZED_NAME_COMMIT_HASH
public static final java.lang.String SERIALIZED_NAME_SYNCED_AT
public static final java.lang.String SERIALIZED_NAME_REPOSITORY
public static final java.lang.String SERIALIZED_NAME_CODE_REFERENCE_ID
public static final java.lang.String SERIALIZED_NAME_UPLOADER
public static java.util.HashSet<java.lang.String> openapiFields
public static java.util.HashSet<java.lang.String> openapiRequiredFields
public CodeReferenceModel branch(java.lang.String branch)
@Nullable public java.lang.String getBranch()
public void setBranch(java.lang.String branch)
public CodeReferenceModel references(java.util.List<ReferenceLines> references)
public CodeReferenceModel addReferencesItem(ReferenceLines referencesItem)
@Nullable public java.util.List<ReferenceLines> getReferences()
public void setReferences(java.util.List<ReferenceLines> references)
public CodeReferenceModel commitUrl(java.lang.String commitUrl)
@Nullable public java.lang.String getCommitUrl()
public void setCommitUrl(java.lang.String commitUrl)
public CodeReferenceModel commitHash(java.lang.String commitHash)
@Nullable public java.lang.String getCommitHash()
public void setCommitHash(java.lang.String commitHash)
public CodeReferenceModel syncedAt(java.time.OffsetDateTime syncedAt)
@Nullable public java.time.OffsetDateTime getSyncedAt()
public void setSyncedAt(java.time.OffsetDateTime syncedAt)
public CodeReferenceModel repository(java.lang.String repository)
@Nullable public java.lang.String getRepository()
public void setRepository(java.lang.String repository)
public CodeReferenceModel codeReferenceId(java.util.UUID codeReferenceId)
@Nullable public java.util.UUID getCodeReferenceId()
public void setCodeReferenceId(java.util.UUID codeReferenceId)
public CodeReferenceModel uploader(java.lang.String uploader)
@Nullable public java.lang.String getUploader()
public void setUploader(java.lang.String uploader)
public CodeReferenceModel putAdditionalProperty(java.lang.String key, java.lang.Object value)
key - name of the propertyvalue - value of the propertypublic java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
public java.lang.Object getAdditionalProperty(java.lang.String key)
key - name of the propertypublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static void validateJsonElement(com.google.gson.JsonElement jsonElement)
throws java.io.IOException
jsonElement - JSON Elementjava.io.IOException - if the JSON Element is invalid with respect to CodeReferenceModelpublic static CodeReferenceModel fromJson(java.lang.String jsonString) throws java.io.IOException
jsonString - JSON stringjava.io.IOException - if the JSON string is invalid with respect to CodeReferenceModelpublic java.lang.String toJson()