Class CreateCommitResponse

    • Method Detail

      • commitId

        public final String commitId()

        The full commit ID of the commit that contains your committed file changes.

        Returns:
        The full commit ID of the commit that contains your committed file changes.
      • treeId

        public final String treeId()

        The full SHA-1 pointer of the tree information for the commit that contains the commited file changes.

        Returns:
        The full SHA-1 pointer of the tree information for the commit that contains the commited file changes.
      • hasFilesAdded

        public final boolean hasFilesAdded()
        For responses, this returns true if the service returned a value for the FilesAdded property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • filesAdded

        public final List<FileMetadata> filesAdded()

        The files added as part of the committed file changes.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasFilesAdded() method.

        Returns:
        The files added as part of the committed file changes.
      • hasFilesUpdated

        public final boolean hasFilesUpdated()
        For responses, this returns true if the service returned a value for the FilesUpdated property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • filesUpdated

        public final List<FileMetadata> filesUpdated()

        The files updated as part of the commited file changes.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasFilesUpdated() method.

        Returns:
        The files updated as part of the commited file changes.
      • hasFilesDeleted

        public final boolean hasFilesDeleted()
        For responses, this returns true if the service returned a value for the FilesDeleted property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • filesDeleted

        public final List<FileMetadata> filesDeleted()

        The files deleted as part of the committed file changes.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasFilesDeleted() method.

        Returns:
        The files deleted as part of the committed file changes.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object