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.JsonProperty;
8   import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
9   
10  /**
11   * The StorageError model.
12   */
13  @JacksonXmlRootElement(localName = "StorageError")
14  public final class StorageError {
15      /*
16       * The code property.
17       */
18      @JsonProperty(value = "Code")
19      private String code;
20  
21      /*
22       * The message property.
23       */
24      @JsonProperty(value = "Message")
25      private String message;
26  
27      /**
28       * Get the code property: The code property.
29       *
30       * @return the code value.
31       */
32      public String code() {
33          return this.code;
34      }
35  
36      /**
37       * Set the code property: The code property.
38       *
39       * @param code the code value to set.
40       * @return the StorageError object itself.
41       */
42      public StorageError code(String code) {
43          this.code = code;
44          return this;
45      }
46  
47      /**
48       * Get the message property: The message property.
49       *
50       * @return the message value.
51       */
52      public String message() {
53          return this.message;
54      }
55  
56      /**
57       * Set the message property: The message property.
58       *
59       * @param message the message value to set.
60       * @return the StorageError object itself.
61       */
62      public StorageError message(String message) {
63          this.message = message;
64          return this;
65      }
66  }