1 package com.atlassian.marketplace.client.api;
2
3 import java.net.URI;
4
5 /**
6 * Specifies an add-on artifact (such as a .jar file). This can be obtained by
7 * uploading an artifact file through the {@link Assets} API, or by providing the URI
8 * of an artifact that is available online.
9 * @since 2.0.0
10 */
11 public final class ArtifactId extends ResourceId
12 {
13 private ArtifactId(URI value)
14 {
15 super(value);
16 }
17
18 /**
19 * Specifies the URI of an artifact that is available online. The Marketplace server
20 * will download the artifact when it creates or updates the add-on that uses it.
21 */
22 public static ArtifactId fromUri(URI uri)
23 {
24 return new ArtifactId(uri);
25 }
26 }