@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CodeReviewType extends Object implements Serializable, Cloneable, StructuredPojo
The type of a code review. There are two code review types:
PullRequest - A code review that is automatically triggered by a pull request on an associated
repository.
RepositoryAnalysis - A code review that analyzes all code under a specified branch in an associated
repository. The associated repository is specified using its ARN in CreateCodeReview.
| Constructor and Description |
|---|
CodeReviewType() |
| Modifier and Type | Method and Description |
|---|---|
CodeReviewType |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAnalysisTypes()
They types of analysis performed during a repository analysis or a pull request review.
|
RepositoryAnalysis |
getRepositoryAnalysis()
A code review that analyzes all code under a specified branch in an associated repository.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setAnalysisTypes(Collection<String> analysisTypes)
They types of analysis performed during a repository analysis or a pull request review.
|
void |
setRepositoryAnalysis(RepositoryAnalysis repositoryAnalysis)
A code review that analyzes all code under a specified branch in an associated repository.
|
String |
toString()
Returns a string representation of this object.
|
CodeReviewType |
withAnalysisTypes(AnalysisType... analysisTypes)
They types of analysis performed during a repository analysis or a pull request review.
|
CodeReviewType |
withAnalysisTypes(Collection<String> analysisTypes)
They types of analysis performed during a repository analysis or a pull request review.
|
CodeReviewType |
withAnalysisTypes(String... analysisTypes)
They types of analysis performed during a repository analysis or a pull request review.
|
CodeReviewType |
withRepositoryAnalysis(RepositoryAnalysis repositoryAnalysis)
A code review that analyzes all code under a specified branch in an associated repository.
|
public void setRepositoryAnalysis(RepositoryAnalysis repositoryAnalysis)
A code review that analyzes all code under a specified branch in an associated repository. The associated repository is specified using its ARN in CreateCodeReview.
repositoryAnalysis - A code review that analyzes all code under a specified branch in an associated repository. The associated
repository is specified using its ARN in CreateCodeReview.public RepositoryAnalysis getRepositoryAnalysis()
A code review that analyzes all code under a specified branch in an associated repository. The associated repository is specified using its ARN in CreateCodeReview.
public CodeReviewType withRepositoryAnalysis(RepositoryAnalysis repositoryAnalysis)
A code review that analyzes all code under a specified branch in an associated repository. The associated repository is specified using its ARN in CreateCodeReview.
repositoryAnalysis - A code review that analyzes all code under a specified branch in an associated repository. The associated
repository is specified using its ARN in CreateCodeReview.public List<String> getAnalysisTypes()
They types of analysis performed during a repository analysis or a pull request review. You can specify either
Security, CodeQuality, or both.
Security, CodeQuality, or both.AnalysisTypepublic void setAnalysisTypes(Collection<String> analysisTypes)
They types of analysis performed during a repository analysis or a pull request review. You can specify either
Security, CodeQuality, or both.
analysisTypes - They types of analysis performed during a repository analysis or a pull request review. You can specify
either Security, CodeQuality, or both.AnalysisTypepublic CodeReviewType withAnalysisTypes(String... analysisTypes)
They types of analysis performed during a repository analysis or a pull request review. You can specify either
Security, CodeQuality, or both.
NOTE: This method appends the values to the existing list (if any). Use
setAnalysisTypes(java.util.Collection) or withAnalysisTypes(java.util.Collection) if you want
to override the existing values.
analysisTypes - They types of analysis performed during a repository analysis or a pull request review. You can specify
either Security, CodeQuality, or both.AnalysisTypepublic CodeReviewType withAnalysisTypes(Collection<String> analysisTypes)
They types of analysis performed during a repository analysis or a pull request review. You can specify either
Security, CodeQuality, or both.
analysisTypes - They types of analysis performed during a repository analysis or a pull request review. You can specify
either Security, CodeQuality, or both.AnalysisTypepublic CodeReviewType withAnalysisTypes(AnalysisType... analysisTypes)
They types of analysis performed during a repository analysis or a pull request review. You can specify either
Security, CodeQuality, or both.
analysisTypes - They types of analysis performed during a repository analysis or a pull request review. You can specify
either Security, CodeQuality, or both.AnalysisTypepublic String toString()
toString in class ObjectObject.toString()public CodeReviewType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2024. All rights reserved.