@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CommitDiffSourceCodeType extends Object implements Serializable, Cloneable, StructuredPojo
A type of SourceCodeType
that specifies the commit diff for a pull request on an associated repository. The SourceCommit and
DestinationCommit fields are required to do a pull request code review.
| Constructor and Description |
|---|
CommitDiffSourceCodeType() |
| Modifier and Type | Method and Description |
|---|---|
CommitDiffSourceCodeType |
clone() |
boolean |
equals(Object obj) |
String |
getDestinationCommit()
The SHA of the destination commit used to generate a commit diff.
|
String |
getMergeBaseCommit()
The SHA of the merge base of a commit.
|
String |
getSourceCommit()
The SHA of the source commit used to generate a commit diff.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setDestinationCommit(String destinationCommit)
The SHA of the destination commit used to generate a commit diff.
|
void |
setMergeBaseCommit(String mergeBaseCommit)
The SHA of the merge base of a commit.
|
void |
setSourceCommit(String sourceCommit)
The SHA of the source commit used to generate a commit diff.
|
String |
toString()
Returns a string representation of this object.
|
CommitDiffSourceCodeType |
withDestinationCommit(String destinationCommit)
The SHA of the destination commit used to generate a commit diff.
|
CommitDiffSourceCodeType |
withMergeBaseCommit(String mergeBaseCommit)
The SHA of the merge base of a commit.
|
CommitDiffSourceCodeType |
withSourceCommit(String sourceCommit)
The SHA of the source commit used to generate a commit diff.
|
public void setSourceCommit(String sourceCommit)
The SHA of the source commit used to generate a commit diff. This field is required for a pull request code review.
sourceCommit - The SHA of the source commit used to generate a commit diff. This field is required for a pull request
code review.public String getSourceCommit()
The SHA of the source commit used to generate a commit diff. This field is required for a pull request code review.
public CommitDiffSourceCodeType withSourceCommit(String sourceCommit)
The SHA of the source commit used to generate a commit diff. This field is required for a pull request code review.
sourceCommit - The SHA of the source commit used to generate a commit diff. This field is required for a pull request
code review.public void setDestinationCommit(String destinationCommit)
The SHA of the destination commit used to generate a commit diff. This field is required for a pull request code review.
destinationCommit - The SHA of the destination commit used to generate a commit diff. This field is required for a pull
request code review.public String getDestinationCommit()
The SHA of the destination commit used to generate a commit diff. This field is required for a pull request code review.
public CommitDiffSourceCodeType withDestinationCommit(String destinationCommit)
The SHA of the destination commit used to generate a commit diff. This field is required for a pull request code review.
destinationCommit - The SHA of the destination commit used to generate a commit diff. This field is required for a pull
request code review.public void setMergeBaseCommit(String mergeBaseCommit)
The SHA of the merge base of a commit.
mergeBaseCommit - The SHA of the merge base of a commit.public String getMergeBaseCommit()
The SHA of the merge base of a commit.
public CommitDiffSourceCodeType withMergeBaseCommit(String mergeBaseCommit)
The SHA of the merge base of a commit.
mergeBaseCommit - The SHA of the merge base of a commit.public String toString()
toString in class ObjectObject.toString()public CommitDiffSourceCodeType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2022. All rights reserved.