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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateBranchRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateBranchRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetBranchName()The name of the new branch to create.StringgetCommitId()The ID of the commit to point the new branch to.StringgetRepositoryName()The name of the repository in which you want to create the new branch.inthashCode()voidsetBranchName(String branchName)The name of the new branch to create.voidsetCommitId(String commitId)The ID of the commit to point the new branch to.voidsetRepositoryName(String repositoryName)The name of the repository in which you want to create the new branch.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateBranchRequestwithBranchName(String branchName)The name of the new branch to create.CreateBranchRequestwithCommitId(String commitId)The ID of the commit to point the new branch to.CreateBranchRequestwithRepositoryName(String repositoryName)The name of the repository in which you want to create the new branch.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateBranchRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-