-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
58 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
SingularityBase/src/main/java/com/hubspot/deploy/ArtifactList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package com.hubspot.deploy; | ||
|
||
import java.util.List; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.hubspot.mesos.JavaUtils; | ||
|
||
public class ArtifactList { | ||
|
||
private final List<EmbeddedArtifact> embeddedArtifacts; | ||
private final List<ExternalArtifact> externalArtifacts; | ||
private final List<S3Artifact> s3Artifacts; | ||
private final List<S3ArtifactSignature> s3ArtifactSignatures; | ||
|
||
@JsonCreator | ||
public ArtifactList(@JsonProperty("embeddedArtifacts") List<EmbeddedArtifact> embeddedArtifacts, | ||
@JsonProperty("externalArtifacts") List<ExternalArtifact> externalArtifacts, | ||
@JsonProperty("s3Artifacts") List<S3Artifact> s3Artifacts, | ||
@JsonProperty("s3ArtifactSignatures") List<S3ArtifactSignature> s3ArtifactSignatures) { | ||
this.embeddedArtifacts = JavaUtils.nonNullImmutable(embeddedArtifacts); | ||
this.externalArtifacts = JavaUtils.nonNullImmutable(externalArtifacts); | ||
this.s3Artifacts = JavaUtils.nonNullImmutable(s3Artifacts); | ||
this.s3ArtifactSignatures = JavaUtils.nonNullImmutable(s3ArtifactSignatures); | ||
} | ||
|
||
public List<EmbeddedArtifact> getEmbeddedArtifacts() { | ||
return embeddedArtifacts; | ||
} | ||
|
||
public List<ExternalArtifact> getExternalArtifacts() { | ||
return externalArtifacts; | ||
} | ||
|
||
public List<S3Artifact> getS3Artifacts() { | ||
return s3Artifacts; | ||
} | ||
|
||
public List<S3ArtifactSignature> getS3ArtifactSignatures() { | ||
return s3ArtifactSignatures; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
acad6b5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢