Class PutBranch


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2022-07-11T22:46:03.646077Z[Etc/UTC]")
    public class PutBranch
    extends java.lang.Object
    PutBranch
    • Field Detail

      • SERIALIZED_NAME_NAME

        public static final java.lang.String SERIALIZED_NAME_NAME
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_HEAD

        public static final java.lang.String SERIALIZED_NAME_HEAD
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_UPDATE_SEQUENCE_ID

        public static final java.lang.String SERIALIZED_NAME_UPDATE_SEQUENCE_ID
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_SYNC_TIME

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

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

      • PutBranch

        public PutBranch()
    • Method Detail

      • name

        public PutBranch name​(java.lang.String name)
      • getName

        @Nonnull
        public java.lang.String getName()
        The branch name
        Returns:
        name
      • setName

        public void setName​(java.lang.String name)
      • head

        public PutBranch head​(java.lang.String head)
      • getHead

        @Nonnull
        public java.lang.String getHead()
        An ID representing the branch HEAD. For example, a commit SHA.
        Returns:
        head
      • setHead

        public void setHead​(java.lang.String head)
      • updateSequenceId

        public PutBranch updateSequenceId​(java.lang.Long updateSequenceId)
      • getUpdateSequenceId

        @Nullable
        public java.lang.Long getUpdateSequenceId()
        An optional ID used to prevent older data from overwriting newer data. If no sequence ID is included, the newly submitted data will always be saved.
        Returns:
        updateSequenceId
      • setUpdateSequenceId

        public void setUpdateSequenceId​(java.lang.Long updateSequenceId)
      • syncTime

        public PutBranch syncTime​(java.lang.Long syncTime)
      • getSyncTime

        @Nonnull
        public java.lang.Long getSyncTime()
        Get syncTime
        Returns:
        syncTime
      • setSyncTime

        public void setSyncTime​(java.lang.Long syncTime)
      • getReferences

        @Nullable
        public java.util.List<ReferenceRep> getReferences()
        An array of flag references found on the branch
        Returns:
        references
      • setReferences

        public void setReferences​(java.util.List<ReferenceRep> references)
      • commitTime

        public PutBranch commitTime​(java.lang.Long commitTime)
      • getCommitTime

        @Nullable
        public java.lang.Long getCommitTime()
        Get commitTime
        Returns:
        commitTime
      • setCommitTime

        public void setCommitTime​(java.lang.Long commitTime)
      • putAdditionalProperty

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

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

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