blob: d3ebd715da80f831305e71acbb48dba623ee5160 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// Copyright Yahoo. 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<String> repository;
private final Optional<String> branch;
private final Optional<String> commit;
private final Optional<String> sourceUrl;
private final Optional<String> authorEmail;
private final Path applicationZip;
private final Path applicationTestZip;
private final Optional<Long> projectId;
public Submission(Optional<String> repository, Optional<String> branch, Optional<String> commit,
Optional<String> sourceUrl, Optional<String> authorEmail,
Path applicationZip, Path applicationTestZip, Optional<Long> projectId) {
this.repository = repository;
this.branch = branch;
this.commit = commit;
this.sourceUrl = sourceUrl;
this.authorEmail = authorEmail;
this.applicationZip = applicationZip;
this.applicationTestZip = applicationTestZip;
this.projectId = projectId;
}
public Optional<String> repository() { return repository; }
public Optional<String> branch() { return branch; }
public Optional<String> commit() { return commit; }
public Optional<String> sourceUrl() { return sourceUrl; }
public Optional<String> authorEmail() { return authorEmail; }
public Path applicationZip() { return applicationZip; }
public Path applicationTestZip() { return applicationTestZip; }
public Optional<Long> projectId() { return projectId; }
}
|