Class CreateBranchRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.codecommit.model.CreateBranchRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class CreateBranchRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

Represents the input of a create branch operation.

See Also:
  • Constructor Details

    • CreateBranchRequest

      public CreateBranchRequest()
  • Method Details

    • setRepositoryName

      public void setRepositoryName(String repositoryName)

      The name of the repository in which you want to create the new branch.

      Parameters:
      repositoryName - The name of the repository in which you want to create the new branch.
    • getRepositoryName

      public String getRepositoryName()

      The name of the repository in which you want to create the new branch.

      Returns:
      The name of the repository in which you want to create the new branch.
    • withRepositoryName

      public CreateBranchRequest withRepositoryName(String repositoryName)

      The name of the repository in which you want to create the new branch.

      Parameters:
      repositoryName - The name of the repository in which you want to create the new branch.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setBranchName

      public void setBranchName(String branchName)

      The name of the new branch to create.

      Parameters:
      branchName - The name of the new branch to create.
    • getBranchName

      public String getBranchName()

      The name of the new branch to create.

      Returns:
      The name of the new branch to create.
    • withBranchName

      public CreateBranchRequest withBranchName(String branchName)

      The name of the new branch to create.

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

      public void setCommitId(String commitId)

      The ID of the commit to point the new branch to.

      Parameters:
      commitId - The ID of the commit to point the new branch to.
    • getCommitId

      public String getCommitId()

      The ID of the commit to point the new branch to.

      Returns:
      The ID of the commit to point the new branch to.
    • withCommitId

      public CreateBranchRequest withCommitId(String commitId)

      The ID of the commit to point the new branch to.

      Parameters:
      commitId - The ID of the commit to point the new branch to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public CreateBranchRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: