Class HunkRep


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2026-03-05T10:45:26.516033Z[Etc/UTC]",
               comments="Generator version: 7.18.0")
    public class HunkRep
    extends java.lang.Object
    HunkRep
    • Field Detail

      • SERIALIZED_NAME_STARTING_LINE_NUMBER

        public static final java.lang.String SERIALIZED_NAME_STARTING_LINE_NUMBER
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_LINES

        public static final java.lang.String SERIALIZED_NAME_LINES
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_PROJ_KEY

        public static final java.lang.String SERIALIZED_NAME_PROJ_KEY
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_FLAG_KEY

        public static final java.lang.String SERIALIZED_NAME_FLAG_KEY
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_ALIASES

        public static final java.lang.String SERIALIZED_NAME_ALIASES
        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

      • HunkRep

        public HunkRep()
    • Method Detail

      • startingLineNumber

        public HunkRep startingLineNumber​(@Nonnull
                                          java.lang.Integer startingLineNumber)
      • getStartingLineNumber

        @Nonnull
        public java.lang.Integer getStartingLineNumber()
        Line number of beginning of code reference hunk
        Returns:
        startingLineNumber
      • setStartingLineNumber

        public void setStartingLineNumber​(@Nonnull
                                          java.lang.Integer startingLineNumber)
      • lines

        public HunkRep lines​(@Nullable
                             java.lang.String lines)
      • getLines

        @Nullable
        public java.lang.String getLines()
        Contextual lines of code that include the referenced feature flag
        Returns:
        lines
      • setLines

        public void setLines​(@Nullable
                             java.lang.String lines)
      • projKey

        public HunkRep projKey​(@Nullable
                               java.lang.String projKey)
      • getProjKey

        @Nullable
        public java.lang.String getProjKey()
        The project key
        Returns:
        projKey
      • setProjKey

        public void setProjKey​(@Nullable
                               java.lang.String projKey)
      • flagKey

        public HunkRep flagKey​(@Nullable
                               java.lang.String flagKey)
      • getFlagKey

        @Nullable
        public java.lang.String getFlagKey()
        The feature flag key
        Returns:
        flagKey
      • setFlagKey

        public void setFlagKey​(@Nullable
                               java.lang.String flagKey)
      • aliases

        public HunkRep aliases​(@Nullable
                               java.util.List<java.lang.String> aliases)
      • addAliasesItem

        public HunkRep addAliasesItem​(java.lang.String aliasesItem)
      • getAliases

        @Nullable
        public java.util.List<java.lang.String> getAliases()
        An array of flag key aliases
        Returns:
        aliases
      • setAliases

        public void setAliases​(@Nullable
                               java.util.List<java.lang.String> aliases)
      • putAdditionalProperty

        public HunkRep 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 HunkRep 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 HunkRep
      • fromJson

        public static HunkRep fromJson​(java.lang.String jsonString)
                                throws java.io.IOException
        Create an instance of HunkRep given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of HunkRep
        Throws:
        java.io.IOException - if the JSON string is invalid with respect to HunkRep
      • toJson

        public java.lang.String toJson()
        Convert an instance of HunkRep to an JSON string
        Returns:
        JSON string