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 PageRange model.
12   */
13  @JacksonXmlRootElement(localName = "PageRange")
14  public final class PageRange {
15      /*
16       * The start property.
17       */
18      @JsonProperty(value = "Start", required = true)
19      private long start;
20  
21      /*
22       * The end property.
23       */
24      @JsonProperty(value = "End", required = true)
25      private long end;
26  
27      /**
28       * Get the start property: The start property.
29       *
30       * @return the start value.
31       */
32      public long start() {
33          return this.start;
34      }
35  
36      /**
37       * Set the start property: The start property.
38       *
39       * @param start the start value to set.
40       * @return the PageRange object itself.
41       */
42      public PageRange start(long start) {
43          this.start = start;
44          return this;
45      }
46  
47      /**
48       * Get the end property: The end property.
49       *
50       * @return the end value.
51       */
52      public long end() {
53          return this.end;
54      }
55  
56      /**
57       * Set the end property: The end property.
58       *
59       * @param end the end value to set.
60       * @return the PageRange object itself.
61       */
62      public PageRange end(long end) {
63          this.end = end;
64          return this;
65      }
66  }