in src/main/java/com/amazon/inspector/jenkins/amazoninspectorbuildstep/AmazonInspectorBuilder.java [95:123]
public AmazonInspectorBuilder(String archivePath, String artifactPath, String archiveType, boolean osArch, String iamRole,
String awsRegion, String credentialId, String awsProfileName, String awsCredentialId,
String sbomgenSelection, String sbomgenPath, boolean isThresholdEnabled,
int countCritical, int countHigh, int countMedium, int countLow, String oidcCredentialId,
String sbomgenSkipFiles, Double epssThreshold) {
if (artifactPath != null && !artifactPath.isEmpty()) {
this.archivePath = artifactPath;
} else {
this.archivePath = archivePath;
}
this.archiveType = archiveType;
this.credentialId = credentialId;
this.awsCredentialId = awsCredentialId;
this.oidcCredentialId = oidcCredentialId;
this.awsProfileName = awsProfileName;
this.osArch = osArch;
this.iamRole = iamRole;
this.awsRegion = awsRegion;
this.sbomgenSelection = (sbomgenSelection != null) ? sbomgenSelection : "automatic";
this.sbomgenPath = sbomgenPath;
this.sbomgenSkipFiles = sbomgenSkipFiles;
this.isThresholdEnabled = isThresholdEnabled;
this.countCritical = countCritical;
this.countHigh = countHigh;
this.countMedium = countMedium;
this.countLow = countLow;
this.epssThreshold = epssThreshold;
this.reportArtifactName = (reportArtifactName != null && !reportArtifactName.isEmpty()) ? reportArtifactName : "default-report";
}