@Generated(value="software.amazon.awssdk:codegen") public final class SourceCodeType extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SourceCodeType.Builder,SourceCodeType>
Specifies the source code that is analyzed in a code review.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SourceCodeType.Builder |
| Modifier and Type | Method and Description |
|---|---|
BranchDiffSourceCodeType |
branchDiff()
A type of SourceCodeType that
specifies a source branch name and a destination branch name in an associated repository.
|
static SourceCodeType.Builder |
builder() |
CommitDiffSourceCodeType |
commitDiff()
A SourceCodeType that
specifies a commit diff created by a pull request on an associated repository.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
RepositoryHeadSourceCodeType |
repositoryHead()
Returns the value of the RepositoryHead property for this object.
|
RequestMetadata |
requestMetadata()
Metadata that is associated with a code review.
|
S3BucketRepository |
s3BucketRepository()
Information about an associated repository in an S3 bucket that includes its name and an
S3RepositoryDetails object. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends SourceCodeType.Builder> |
serializableBuilderClass() |
SourceCodeType.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final CommitDiffSourceCodeType commitDiff()
A SourceCodeType that specifies a commit diff created by a pull request on an associated repository.
public final RepositoryHeadSourceCodeType repositoryHead()
public final BranchDiffSourceCodeType branchDiff()
A type of SourceCodeType that specifies a source branch name and a destination branch name in an associated repository.
public final 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.
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 final 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.
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.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SourceCodeType.Builder,SourceCodeType>public static SourceCodeType.Builder builder()
public static Class<? extends SourceCodeType.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.