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 CreateBranchRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getBranchName()
The name of the new branch to create.String
getCommitId()
The ID of the commit to point the new branch to.String
getRepositoryName()
The name of the repository in which you want to create the new branch.int
hashCode()
void
setBranchName(String branchName)
The name of the new branch to create.void
setCommitId(String commitId)
The ID of the commit to point the new branch to.void
setRepositoryName(String repositoryName)
The name of the repository in which you want to create the new branch.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateBranchRequest
withBranchName(String branchName)
The name of the new branch to create.CreateBranchRequest
withCommitId(String commitId)
The ID of the commit to point the new branch to.CreateBranchRequest
withRepositoryName(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
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 classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-