Class CodeReferenceModel


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2025-11-14T09:20:16.892643418Z[Etc/UTC]",
               comments="Generator version: 7.7.0")
    public class CodeReferenceModel
    extends java.lang.Object
    CodeReferenceModel
    • 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
    • Constructor Detail

      • CodeReferenceModel

        public CodeReferenceModel()
    • Method Detail

      • 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)
      • 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)
      • getCommitUrl

        @Nullable
        public java.lang.String getCommitUrl()
        The related commit's URL.
        Returns:
        commitUrl
      • setCommitUrl

        public void setCommitUrl​(java.lang.String commitUrl)
      • getCommitHash

        @Nullable
        public java.lang.String getCommitHash()
        The related commit's hash.
        Returns:
        commitHash
      • setCommitHash

        public void setCommitHash​(java.lang.String commitHash)
      • 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)
      • 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)
      • 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 property
        value - 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws java.io.IOException
        Validates 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