Class SourceCodeType

    • 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 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.

        Returns:
        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.
      • 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 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.

        Returns:
        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.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)