View Javadoc

1   package com.atlassian.marketplace.client.model;
2   
3   import java.net.URI;
4   
5   import com.atlassian.marketplace.client.api.AddonCategoryId;
6   
7   /**
8    * Describes a category that add-ons can be listed in.
9    * @since 2.0.0
10   */
11  public final class AddonCategorySummary implements Entity
12  {
13      Links _links;
14      @RequiredLink(rel = "self") URI selfUri;
15      
16      String name;
17      
18      public Links getLinks()
19      {
20          return _links;
21      }
22  
23      public URI getSelfUri()
24      {
25          return selfUri;
26      }
27      
28      /**
29       * The unique resource identifier for the category.
30       * @see AddonBase#getCategoryIds()
31       * @see AddonVersionBase#getFunctionalCategoryIds()
32       * @see ModelBuilders.AddonBuilder#categories(Iterable)
33       */
34      public AddonCategoryId getId()
35      {
36          return AddonCategoryId.fromUri(selfUri);
37      }
38      
39      /**
40       * The category name.
41       */
42      public String getName()
43      {
44          return name;
45      }
46  }