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 ApplicationVersion} is publicly visible or not.
7    * @since 2.0.0
8    */
9   public enum ApplicationVersionStatus implements EnumWithKey
10  {
11      /**
12       * The version is visible to everyone.
13       */
14      PUBLISHED("published"),
15      /**
16       * The version is visible only to Atlassian administrators.
17       */
18      UNPUBLISHED("unpublished");
19      
20      private final String key;
21      
22      private ApplicationVersionStatus(String key)
23      {
24          this.key = key;
25      }
26      
27      @Override
28      public String getKey()
29      {
30          return key;
31      }
32  }