public class CreateBranchRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Represents the input of a create branch operation.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
branchName
The name of the new branch to create.
|
private java.lang.String |
commitId
The ID of the commit to point the new branch to.
|
private java.lang.String |
repositoryName
The name of the repository in which you want to create the new branch.
|
NOOP
Constructor and Description |
---|
CreateBranchRequest() |
Modifier and Type | Method and Description |
---|---|
CreateBranchRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBranchName()
The name of the new branch to create.
|
java.lang.String |
getCommitId()
The ID of the commit to point the new branch to.
|
java.lang.String |
getRepositoryName()
The name of the repository in which you want to create the new branch.
|
int |
hashCode() |
void |
setBranchName(java.lang.String branchName)
The name of the new branch to create.
|
void |
setCommitId(java.lang.String commitId)
The ID of the commit to point the new branch to.
|
void |
setRepositoryName(java.lang.String repositoryName)
The name of the repository in which you want to create the new branch.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateBranchRequest |
withBranchName(java.lang.String branchName)
The name of the new branch to create.
|
CreateBranchRequest |
withCommitId(java.lang.String commitId)
The ID of the commit to point the new branch to.
|
CreateBranchRequest |
withRepositoryName(java.lang.String repositoryName)
The name of the repository in which you want to create the new branch.
|
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
private java.lang.String repositoryName
The name of the repository in which you want to create the new branch.
private java.lang.String branchName
The name of the new branch to create.
private java.lang.String commitId
The ID of the commit to point the new branch to.
public void setRepositoryName(java.lang.String repositoryName)
The name of the repository in which you want to create the new branch.
repositoryName
- The name of the repository in which you want to create the new
branch.public java.lang.String getRepositoryName()
The name of the repository in which you want to create the new branch.
public CreateBranchRequest withRepositoryName(java.lang.String repositoryName)
The name of the repository in which you want to create the new branch.
repositoryName
- The name of the repository in which you want to create the new
branch.public void setBranchName(java.lang.String branchName)
The name of the new branch to create.
branchName
- The name of the new branch to create.public java.lang.String getBranchName()
The name of the new branch to create.
public CreateBranchRequest withBranchName(java.lang.String branchName)
The name of the new branch to create.
branchName
- The name of the new branch to create.public void setCommitId(java.lang.String commitId)
The ID of the commit to point the new branch to.
commitId
- The ID of the commit to point the new branch to.public java.lang.String getCommitId()
The ID of the commit to point the new branch to.
public CreateBranchRequest withCommitId(java.lang.String commitId)
The ID of the commit to point the new branch to.
commitId
- The ID of the commit to point the new branch to.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateBranchRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()