Interface PutFileEntry.Builder

  • Method Details

    • filePath

      PutFileEntry.Builder filePath(String filePath)

      The full path to the file in the repository, including the name of the file.

      Parameters:
      filePath - The full path to the file in the repository, including the name of the file.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fileMode

      PutFileEntry.Builder fileMode(String fileMode)

      The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.

      Parameters:
      fileMode - The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • fileMode

      The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.

      Parameters:
      fileMode - The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • fileContent

      PutFileEntry.Builder fileContent(SdkBytes fileContent)

      The content of the file, if a source file is not specified.

      Parameters:
      fileContent - The content of the file, if a source file is not specified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceFile

      PutFileEntry.Builder sourceFile(SourceFileSpecifier sourceFile)

      The name and full path of the file that contains the changes you want to make as part of the commit, if you are not providing the file content directly.

      Parameters:
      sourceFile - The name and full path of the file that contains the changes you want to make as part of the commit, if you are not providing the file content directly.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceFile

      default PutFileEntry.Builder sourceFile(Consumer<SourceFileSpecifier.Builder> sourceFile)

      The name and full path of the file that contains the changes you want to make as part of the commit, if you are not providing the file content directly.

      This is a convenience method that creates an instance of the SourceFileSpecifier.Builder avoiding the need to create one manually via SourceFileSpecifier.builder().

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

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