View Javadoc
1   // Copyright (c) Microsoft Corporation. All rights reserved.
2   // Licensed under the MIT License.
3   // Code generated by Microsoft (R) AutoRest Code Generator.
4   
5   package com.azure.storage.blob.models;
6   
7   import com.fasterxml.jackson.annotation.JsonCreator;
8   import com.fasterxml.jackson.annotation.JsonValue;
9   
10  /**
11   * Defines values for AccountKind.
12   */
13  public enum AccountKind {
14      /**
15       * Enum value Storage.
16       */
17      STORAGE("Storage"),
18  
19      /**
20       * Enum value BlobStorage.
21       */
22      BLOB_STORAGE("BlobStorage"),
23  
24      /**
25       * Enum value StorageV2.
26       */
27      STORAGE_V2("StorageV2");
28  
29      /**
30       * The actual serialized value for a AccountKind instance.
31       */
32      private final String value;
33  
34      AccountKind(String value) {
35          this.value = value;
36      }
37  
38      /**
39       * Parses a serialized value to a AccountKind instance.
40       *
41       * @param value the serialized value to parse.
42       * @return the parsed AccountKind object, or null if unable to parse.
43       */
44      @JsonCreator
45      public static AccountKind fromString(String value) {
46          AccountKind[] items = AccountKind.values();
47          for (AccountKind item : items) {
48              if (item.toString().equalsIgnoreCase(value)) {
49                  return item;
50              }
51          }
52          return null;
53      }
54  
55      @JsonValue
56      @Override
57      public String toString() {
58          return this.value;
59      }
60  }