Interface FileVersion.Builder

All Superinterfaces:
Buildable, CopyableBuilder<FileVersion.Builder,FileVersion>, SdkBuilder<FileVersion.Builder,FileVersion>, SdkPojo
Enclosing class:
FileVersion

public static interface FileVersion.Builder extends SdkPojo, CopyableBuilder<FileVersion.Builder,FileVersion>
  • Method Details

    • commit

      FileVersion.Builder commit(Commit commit)
      Sets the value of the Commit property for this object.
      Parameters:
      commit - The new value for the Commit property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • commit

      default FileVersion.Builder commit(Consumer<Commit.Builder> commit)
      Sets the value of the Commit property for this object. This is a convenience method that creates an instance of the Commit.Builder avoiding the need to create one manually via Commit.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to commit(Commit).

      Parameters:
      commit - a consumer that will call methods on Commit.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • blobId

      FileVersion.Builder blobId(String blobId)

      The blob ID of the object that represents the content of the file in this version.

      Parameters:
      blobId - The blob ID of the object that represents the content of the file in this version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • path

      The name and path of the file at which this blob is indexed which contains the data for this version of the file. This value will vary between file versions if a file is renamed or if its path changes.

      Parameters:
      path - The name and path of the file at which this blob is indexed which contains the data for this version of the file. This value will vary between file versions if a file is renamed or if its path changes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • revisionChildren

      FileVersion.Builder revisionChildren(Collection<String> revisionChildren)

      An array of commit IDs that contain more recent versions of this file. If there are no additional versions of the file, this array will be empty.

      Parameters:
      revisionChildren - An array of commit IDs that contain more recent versions of this file. If there are no additional versions of the file, this array will be empty.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • revisionChildren

      FileVersion.Builder revisionChildren(String... revisionChildren)

      An array of commit IDs that contain more recent versions of this file. If there are no additional versions of the file, this array will be empty.

      Parameters:
      revisionChildren - An array of commit IDs that contain more recent versions of this file. If there are no additional versions of the file, this array will be empty.
      Returns:
      Returns a reference to this object so that method calls can be chained together.