blob: 173b4946d5a5d87ddc06b251699534de7d1ac476 (
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
47
48
49
50
51
52
53
|
// 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;
private final Optional<Integer> risk;
private final Optional<String> description;
public Submission(Optional<String> repository, Optional<String> branch, Optional<String> commit,
Optional<String> sourceUrl, Optional<String> authorEmail,
Path applicationZip, Path applicationTestZip, Optional<Long> projectId,
Optional<Integer> risk, Optional<String> 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<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; }
public Optional<Integer> risk() { return risk; }
public Optional<String> description() { return description; }
}
|