Class SourceCodeType
- java.lang.Object
-
- software.amazon.awssdk.services.codegurureviewer.model.SourceCodeType
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SourceCodeType.Builder,SourceCodeType>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSourceCodeType.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BranchDiffSourceCodeTypebranchDiff()A type of SourceCodeType that specifies a source branch name and a destination branch name in an associated repository.static SourceCodeType.Builderbuilder()CommitDiffSourceCodeTypecommitDiff()A SourceCodeType that specifies a commit diff created by a pull request on an associated repository.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()RepositoryHeadSourceCodeTyperepositoryHead()Returns the value of the RepositoryHead property for this object.RequestMetadatarequestMetadata()Metadata that is associated with a code review.S3BucketRepositorys3BucketRepository()Information about an associated repository in an S3 bucket that includes its name and anS3RepositoryDetailsobject.List<SdkField<?>>sdkFields()static Class<? extends SourceCodeType.Builder>serializableBuilderClass()SourceCodeType.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
commitDiff
public final CommitDiffSourceCodeType commitDiff()
A SourceCodeType that specifies a commit diff created by a pull request on an associated repository.
- Returns:
- A SourceCodeType that specifies a commit diff created by a pull request on an associated repository.
-
repositoryHead
public final RepositoryHeadSourceCodeType repositoryHead()
Returns the value of the RepositoryHead property for this object.- Returns:
- The value of the RepositoryHead property for this object.
-
branchDiff
public final BranchDiffSourceCodeType branchDiff()
A type of SourceCodeType that specifies a source branch name and a destination branch name in an associated repository.
- Returns:
- A type of SourceCodeType that specifies a source branch name and a destination branch name in an associated repository.
-
s3BucketRepository
public final S3BucketRepository s3BucketRepository()
Information about an associated repository in an S3 bucket that includes its name and an
S3RepositoryDetailsobject. TheS3RepositoryDetailsobject 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.S3BucketRepositoryis required in SourceCodeType forS3BucketRepositorybased code reviews.- Returns:
- Information about an associated repository in an S3 bucket that includes its name and an
S3RepositoryDetailsobject. TheS3RepositoryDetailsobject 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.S3BucketRepositoryis required in SourceCodeType forS3BucketRepositorybased code reviews.
-
requestMetadata
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
RequestMetadaafield captures any event metadata. For example, it might capture metadata associated with an event trigger, such as a push or a pull request.- Returns:
- Metadata that is associated with a code review. This applies to any type of code review supported by
CodeGuru Reviewer. The
RequestMetadaafield captures any event metadata. For example, it might capture metadata associated with an event trigger, such as a push or a pull request.
-
toBuilder
public SourceCodeType.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SourceCodeType.Builder,SourceCodeType>
-
builder
public static SourceCodeType.Builder builder()
-
serializableBuilderClass
public static Class<? extends SourceCodeType.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-