@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SourceCodeType extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the source code that is analyzed in a code review.
Constructor and Description |
---|
SourceCodeType() |
Modifier and Type | Method and Description |
---|---|
SourceCodeType |
clone() |
boolean |
equals(Object obj) |
BranchDiffSourceCodeType |
getBranchDiff()
A type of SourceCodeType that
specifies a source branch name and a destination branch name in an associated repository.
|
CommitDiffSourceCodeType |
getCommitDiff()
A SourceCodeType that
specifies a commit diff created by a pull request on an associated repository.
|
RepositoryHeadSourceCodeType |
getRepositoryHead() |
RequestMetadata |
getRequestMetadata()
Metadata that is associated with a code review.
|
S3BucketRepository |
getS3BucketRepository()
Information about an associated repository in an S3 bucket that includes its name and an
S3RepositoryDetails object. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBranchDiff(BranchDiffSourceCodeType branchDiff)
A type of SourceCodeType that
specifies a source branch name and a destination branch name in an associated repository.
|
void |
setCommitDiff(CommitDiffSourceCodeType commitDiff)
A SourceCodeType that
specifies a commit diff created by a pull request on an associated repository.
|
void |
setRepositoryHead(RepositoryHeadSourceCodeType repositoryHead) |
void |
setRequestMetadata(RequestMetadata requestMetadata)
Metadata that is associated with a code review.
|
void |
setS3BucketRepository(S3BucketRepository s3BucketRepository)
Information about an associated repository in an S3 bucket that includes its name and an
S3RepositoryDetails object. |
String |
toString()
Returns a string representation of this object.
|
SourceCodeType |
withBranchDiff(BranchDiffSourceCodeType branchDiff)
A type of SourceCodeType that
specifies a source branch name and a destination branch name in an associated repository.
|
SourceCodeType |
withCommitDiff(CommitDiffSourceCodeType commitDiff)
A SourceCodeType that
specifies a commit diff created by a pull request on an associated repository.
|
SourceCodeType |
withRepositoryHead(RepositoryHeadSourceCodeType repositoryHead) |
SourceCodeType |
withRequestMetadata(RequestMetadata requestMetadata)
Metadata that is associated with a code review.
|
SourceCodeType |
withS3BucketRepository(S3BucketRepository s3BucketRepository)
Information about an associated repository in an S3 bucket that includes its name and an
S3RepositoryDetails object. |
public void setCommitDiff(CommitDiffSourceCodeType commitDiff)
A SourceCodeType that specifies a commit diff created by a pull request on an associated repository.
commitDiff
- A SourceCodeType
that specifies a commit diff created by a pull request on an associated repository.public CommitDiffSourceCodeType getCommitDiff()
A SourceCodeType that specifies a commit diff created by a pull request on an associated repository.
public SourceCodeType withCommitDiff(CommitDiffSourceCodeType commitDiff)
A SourceCodeType that specifies a commit diff created by a pull request on an associated repository.
commitDiff
- A SourceCodeType
that specifies a commit diff created by a pull request on an associated repository.public void setRepositoryHead(RepositoryHeadSourceCodeType repositoryHead)
repositoryHead
- public RepositoryHeadSourceCodeType getRepositoryHead()
public SourceCodeType withRepositoryHead(RepositoryHeadSourceCodeType repositoryHead)
repositoryHead
- public void setBranchDiff(BranchDiffSourceCodeType branchDiff)
A type of SourceCodeType that specifies a source branch name and a destination branch name in an associated repository.
branchDiff
- A type of SourceCodeType that
specifies a source branch name and a destination branch name in an associated repository.public BranchDiffSourceCodeType getBranchDiff()
A type of SourceCodeType that specifies a source branch name and a destination branch name in an associated repository.
public SourceCodeType withBranchDiff(BranchDiffSourceCodeType branchDiff)
A type of SourceCodeType that specifies a source branch name and a destination branch name in an associated repository.
branchDiff
- A type of SourceCodeType that
specifies a source branch name and a destination branch name in an associated repository.public void setS3BucketRepository(S3BucketRepository s3BucketRepository)
Information about an associated repository in an S3 bucket that includes its name and an
S3RepositoryDetails
object. The S3RepositoryDetails
object includes the name of an S3
bucket, an S3 key for a source code .zip file, and an S3 key for a build artifacts .zip file.
S3BucketRepository
is required in SourceCodeType for
S3BucketRepository
based code reviews.
s3BucketRepository
- Information about an associated repository in an S3 bucket that includes its name and an
S3RepositoryDetails
object. The S3RepositoryDetails
object includes the name of
an S3 bucket, an S3 key for a source code .zip file, and an S3 key for a build artifacts .zip file.
S3BucketRepository
is required in SourceCodeType for
S3BucketRepository
based code reviews.public S3BucketRepository getS3BucketRepository()
Information about an associated repository in an S3 bucket that includes its name and an
S3RepositoryDetails
object. The S3RepositoryDetails
object includes the name of an S3
bucket, an S3 key for a source code .zip file, and an S3 key for a build artifacts .zip file.
S3BucketRepository
is required in SourceCodeType for
S3BucketRepository
based code reviews.
S3RepositoryDetails
object. The S3RepositoryDetails
object includes the name of
an S3 bucket, an S3 key for a source code .zip file, and an S3 key for a build artifacts .zip file.
S3BucketRepository
is required in SourceCodeType for
S3BucketRepository
based code reviews.public SourceCodeType withS3BucketRepository(S3BucketRepository s3BucketRepository)
Information about an associated repository in an S3 bucket that includes its name and an
S3RepositoryDetails
object. The S3RepositoryDetails
object includes the name of an S3
bucket, an S3 key for a source code .zip file, and an S3 key for a build artifacts .zip file.
S3BucketRepository
is required in SourceCodeType for
S3BucketRepository
based code reviews.
s3BucketRepository
- Information about an associated repository in an S3 bucket that includes its name and an
S3RepositoryDetails
object. The S3RepositoryDetails
object includes the name of
an S3 bucket, an S3 key for a source code .zip file, and an S3 key for a build artifacts .zip file.
S3BucketRepository
is required in SourceCodeType for
S3BucketRepository
based code reviews.public void setRequestMetadata(RequestMetadata requestMetadata)
Metadata that is associated with a code review. This applies to any type of code review supported by CodeGuru
Reviewer. The RequestMetadaa
field captures any event metadata. For example, it might capture
metadata associated with an event trigger, such as a push or a pull request.
requestMetadata
- Metadata that is associated with a code review. This applies to any type of code review supported by
CodeGuru Reviewer. The RequestMetadaa
field captures any event metadata. For example, it
might capture metadata associated with an event trigger, such as a push or a pull request.public RequestMetadata getRequestMetadata()
Metadata that is associated with a code review. This applies to any type of code review supported by CodeGuru
Reviewer. The RequestMetadaa
field captures any event metadata. For example, it might capture
metadata associated with an event trigger, such as a push or a pull request.
RequestMetadaa
field captures any event metadata. For example, it
might capture metadata associated with an event trigger, such as a push or a pull request.public SourceCodeType withRequestMetadata(RequestMetadata requestMetadata)
Metadata that is associated with a code review. This applies to any type of code review supported by CodeGuru
Reviewer. The RequestMetadaa
field captures any event metadata. For example, it might capture
metadata associated with an event trigger, such as a push or a pull request.
requestMetadata
- Metadata that is associated with a code review. This applies to any type of code review supported by
CodeGuru Reviewer. The RequestMetadaa
field captures any event metadata. For example, it
might capture metadata associated with an event trigger, such as a push or a pull request.public String toString()
toString
in class Object
Object.toString()
public SourceCodeType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.