}
if (buildNumber == null) {
throw new IllegalArgumentException("BuildPatternArtifactsRequest must have a build number.");
}
BuildPatternArtifactsRequest request = new BuildPatternArtifactsRequest(buildName, buildNumber);
request.setTransitive(transitive);
request.setPatterns(patterns);
return request;
}