// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package ai.vespa.hosted.api; import java.nio.file.Path; import java.util.Optional; import java.util.OptionalLong; /** * A submission intended for hosted Vespa, containing an application package with tests, and meta data. * * @author jonmv */ public class Submission { private final Optional repository; private final Optional branch; private final Optional commit; private final Optional sourceUrl; private final Optional authorEmail; private final Path applicationZip; private final Path applicationTestZip; private final Optional projectId; private final Optional risk; private final Optional description; public Submission(Optional repository, Optional branch, Optional commit, Optional sourceUrl, Optional authorEmail, Path applicationZip, Path applicationTestZip, Optional projectId, Optional risk, Optional description) { this.repository = repository; this.branch = branch; this.commit = commit; this.sourceUrl = sourceUrl; this.authorEmail = authorEmail; this.applicationZip = applicationZip; this.applicationTestZip = applicationTestZip; this.projectId = projectId; this.risk = risk; this.description = description; } public Optional repository() { return repository; } public Optional branch() { return branch; } public Optional commit() { return commit; } public Optional sourceUrl() { return sourceUrl; } public Optional authorEmail() { return authorEmail; } public Path applicationZip() { return applicationZip; } public Path applicationTestZip() { return applicationTestZip; } public Optional projectId() { return projectId; } public Optional risk() { return risk; } public Optional description() { return description; } }