Interface CreateCommitRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CodeCommitRequest.Builder, CopyableBuilder<CreateCommitRequest.Builder,CreateCommitRequest>, SdkBuilder<CreateCommitRequest.Builder,CreateCommitRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
CreateCommitRequest

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

    • repositoryName

      CreateCommitRequest.Builder repositoryName(String repositoryName)

      The name of the repository where you create the commit.

      Parameters:
      repositoryName - The name of the repository where you create the commit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • branchName

      CreateCommitRequest.Builder branchName(String branchName)

      The name of the branch where you create the commit.

      Parameters:
      branchName - The name of the branch where you create the commit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parentCommitId

      CreateCommitRequest.Builder parentCommitId(String parentCommitId)

      The ID of the commit that is the parent of the commit you create. Not required if this is an empty repository.

      Parameters:
      parentCommitId - The ID of the commit that is the parent of the commit you create. Not required if this is an empty repository.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • authorName

      CreateCommitRequest.Builder authorName(String authorName)

      The name of the author who created the commit. This information is used as both the author and committer for the commit.

      Parameters:
      authorName - The name of the author who created the commit. This information is used as both the author and committer for the commit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • email

      The email address of the person who created the commit.

      Parameters:
      email - The email address of the person who created the commit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • commitMessage

      CreateCommitRequest.Builder commitMessage(String commitMessage)

      The commit message you want to include in the commit. Commit messages are limited to 256 KB. If no message is specified, a default message is used.

      Parameters:
      commitMessage - The commit message you want to include in the commit. Commit messages are limited to 256 KB. If no message is specified, a default message is used.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keepEmptyFolders

      CreateCommitRequest.Builder keepEmptyFolders(Boolean keepEmptyFolders)

      If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a ..gitkeep file is created for empty folders. The default is false.

      Parameters:
      keepEmptyFolders - If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a ..gitkeep file is created for empty folders. The default is false.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • putFiles

      The files to add or update in this commit.

      Parameters:
      putFiles - The files to add or update in this commit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • putFiles

      The files to add or update in this commit.

      Parameters:
      putFiles - The files to add or update in this commit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • putFiles

      The files to add or update in this commit.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to putFiles(List<PutFileEntry>).

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

      The files to delete in this commit. These files still exist in earlier commits.

      Parameters:
      deleteFiles - The files to delete in this commit. These files still exist in earlier commits.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • deleteFiles

      CreateCommitRequest.Builder deleteFiles(DeleteFileEntry... deleteFiles)

      The files to delete in this commit. These files still exist in earlier commits.

      Parameters:
      deleteFiles - The files to delete in this commit. These files still exist in earlier commits.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • deleteFiles

      The files to delete in this commit. These files still exist in earlier commits.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to deleteFiles(List<DeleteFileEntry>).

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

      The file modes to update for files in this commit.

      Parameters:
      setFileModes - The file modes to update for files in this commit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setFileModes

      CreateCommitRequest.Builder setFileModes(SetFileModeEntry... setFileModes)

      The file modes to update for files in this commit.

      Parameters:
      setFileModes - The file modes to update for files in this commit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setFileModes

      The file modes to update for files in this commit.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to setFileModes(List<SetFileModeEntry>).

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

      CreateCommitRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.