Class GetBranchRequest

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

public class GetBranchRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

Represents the input of a get branch operation.

See Also:
  • Constructor Details

    • GetBranchRequest

      public GetBranchRequest()
  • Method Details

    • setRepositoryName

      public void setRepositoryName(String repositoryName)

      The name of the repository that contains the branch for which you want to retrieve information.

      Parameters:
      repositoryName - The name of the repository that contains the branch for which you want to retrieve information.
    • getRepositoryName

      public String getRepositoryName()

      The name of the repository that contains the branch for which you want to retrieve information.

      Returns:
      The name of the repository that contains the branch for which you want to retrieve information.
    • withRepositoryName

      public GetBranchRequest withRepositoryName(String repositoryName)

      The name of the repository that contains the branch for which you want to retrieve information.

      Parameters:
      repositoryName - The name of the repository that contains the branch for which you want to retrieve information.
      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 branch for which you want to retrieve information.

      Parameters:
      branchName - The name of the branch for which you want to retrieve information.
    • getBranchName

      public String getBranchName()

      The name of the branch for which you want to retrieve information.

      Returns:
      The name of the branch for which you want to retrieve information.
    • withBranchName

      public GetBranchRequest withBranchName(String branchName)

      The name of the branch for which you want to retrieve information.

      Parameters:
      branchName - The name of the branch for which you want to retrieve information.
      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 GetBranchRequest 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: