@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)
Marshalls this structured data using the given
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.AnalysisType
public 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.AnalysisType
public 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.AnalysisType
public 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.AnalysisType
public 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.AnalysisType
public String toString()
toString
in class Object
Object.toString()
public CodeReviewType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.