|
| 1 | +/* |
| 2 | + * The MIT License |
| 3 | + * |
| 4 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 5 | + * of this software and associated documentation files (the "Software"), to deal |
| 6 | + * in the Software without restriction, including without limitation the rights |
| 7 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 8 | + * copies of the Software, and to permit persons to whom the Software is |
| 9 | + * furnished to do so, subject to the following conditions: |
| 10 | + * |
| 11 | + * The above copyright notice and this permission notice shall be included in |
| 12 | + * all copies or substantial portions of the Software. |
| 13 | + * |
| 14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 17 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 19 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 20 | + * THE SOFTWARE. |
| 21 | + */ |
| 22 | +package com.influxdb.client; |
| 23 | + |
| 24 | +import javax.annotation.Nullable; |
| 25 | + |
| 26 | +public class BucketsQuery { |
| 27 | + |
| 28 | + /** |
| 29 | + * Offset. (optional) |
| 30 | + */ |
| 31 | + @Nullable |
| 32 | + private Integer offset; |
| 33 | + |
| 34 | + /** |
| 35 | + * Limit. (optional, default to 20) |
| 36 | + */ |
| 37 | + @Nullable |
| 38 | + private Integer limit; |
| 39 | + |
| 40 | + /** |
| 41 | + * The last resource ID from which to seek from (but not including). |
| 42 | + * This is to be used instead of `offset`. (optional) |
| 43 | + */ |
| 44 | + @Nullable |
| 45 | + private String after; |
| 46 | + |
| 47 | + /** |
| 48 | + * The name of the organization. (optional) |
| 49 | + */ |
| 50 | + @Nullable |
| 51 | + private String org; |
| 52 | + |
| 53 | + /** |
| 54 | + * The organization ID. (optional) |
| 55 | + */ |
| 56 | + @Nullable |
| 57 | + private String orgID; |
| 58 | + |
| 59 | + /** |
| 60 | + * Only returns buckets with a specific name. (optional) |
| 61 | + */ |
| 62 | + @Nullable |
| 63 | + private String name; |
| 64 | + |
| 65 | + /** |
| 66 | + * Only returns buckets with a specific ID. (optional) |
| 67 | + */ |
| 68 | + @Nullable |
| 69 | + private String id; |
| 70 | + |
| 71 | + @Nullable |
| 72 | + public Integer getOffset() { |
| 73 | + return offset; |
| 74 | + } |
| 75 | + |
| 76 | + public void setOffset(@Nullable final Integer offset) { |
| 77 | + this.offset = offset; |
| 78 | + } |
| 79 | + |
| 80 | + @Nullable |
| 81 | + public Integer getLimit() { |
| 82 | + return limit; |
| 83 | + } |
| 84 | + |
| 85 | + public void setLimit(@Nullable final Integer limit) { |
| 86 | + this.limit = limit; |
| 87 | + } |
| 88 | + |
| 89 | + @Nullable |
| 90 | + public String getAfter() { |
| 91 | + return after; |
| 92 | + } |
| 93 | + |
| 94 | + public void setAfter(@Nullable final String after) { |
| 95 | + this.after = after; |
| 96 | + } |
| 97 | + |
| 98 | + @Nullable |
| 99 | + public String getOrg() { |
| 100 | + return org; |
| 101 | + } |
| 102 | + |
| 103 | + public void setOrg(@Nullable final String org) { |
| 104 | + this.org = org; |
| 105 | + } |
| 106 | + |
| 107 | + @Nullable |
| 108 | + public String getOrgID() { |
| 109 | + return orgID; |
| 110 | + } |
| 111 | + |
| 112 | + public void setOrgID(@Nullable final String orgID) { |
| 113 | + this.orgID = orgID; |
| 114 | + } |
| 115 | + |
| 116 | + @Nullable |
| 117 | + public String getName() { |
| 118 | + return name; |
| 119 | + } |
| 120 | + |
| 121 | + public void setName(@Nullable final String name) { |
| 122 | + this.name = name; |
| 123 | + } |
| 124 | + |
| 125 | + @Nullable |
| 126 | + public String getId() { |
| 127 | + return id; |
| 128 | + } |
| 129 | + |
| 130 | + public void setId(@Nullable final String id) { |
| 131 | + this.id = id; |
| 132 | + } |
| 133 | + |
| 134 | +} |
0 commit comments