View Javadoc

1   package com.atlassian.marketplace.client.model;
2   
3   import com.atlassian.marketplace.client.api.EnumWithKey;
4   
5   /**
6    * Indicates whether an {@link AddonVersion} is publicly visible, private, or pending approval.
7    * @since 2.0.0
8    */
9   public enum AddonVersionStatus implements EnumWithKey
10  {
11      /**
12       * The version is visible to everyone.
13       */
14      PUBLIC("public"),
15      /**
16       * The version is visible only to users associated with its vendor; it can also be installed
17       * by anyone who has received an access token from the vendor.
18       */
19      PRIVATE("private"),
20      /**
21       * The version is pending approval, and will become public once it has been approved.
22       */
23      SUBMITTED("submitted");
24      
25      private final String key;
26      
27      private AddonVersionStatus(String key)
28      {
29          this.key = key;
30      }
31      
32      @Override
33      public String getKey()
34      {
35          return key;
36      }
37  }