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