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