|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.compute.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Model definition for BackendBucketAggregatedList. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: |
| 24 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 25 | + * </p> |
| 26 | + * |
| 27 | + * @author Google, Inc. |
| 28 | + */ |
| 29 | +@SuppressWarnings("javadoc") |
| 30 | +public final class BackendBucketAggregatedList extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * [Output Only] Unique identifier for the resource; defined by the server. |
| 34 | + * The value may be {@code null}. |
| 35 | + */ |
| 36 | + @com.google.api.client.util.Key |
| 37 | + private java.lang.String id; |
| 38 | + |
| 39 | + /** |
| 40 | + * A list of BackendBucketsScopedList resources. |
| 41 | + * The value may be {@code null}. |
| 42 | + */ |
| 43 | + @com.google.api.client.util.Key |
| 44 | + private java.util.Map<String, BackendBucketsScopedList> items; |
| 45 | + |
| 46 | + /** |
| 47 | + * Type of resource. |
| 48 | + * The value may be {@code null}. |
| 49 | + */ |
| 50 | + @com.google.api.client.util.Key |
| 51 | + private java.lang.String kind; |
| 52 | + |
| 53 | + /** |
| 54 | + * [Output Only] This token allows you to get the next page of results for list requests. If the |
| 55 | + * number of results is larger than maxResults, use the nextPageToken as a value for the query |
| 56 | + * parameter pageToken in the next list request. Subsequent list requests will have their own |
| 57 | + * nextPageToken to continue paging through the results. |
| 58 | + * The value may be {@code null}. |
| 59 | + */ |
| 60 | + @com.google.api.client.util.Key |
| 61 | + private java.lang.String nextPageToken; |
| 62 | + |
| 63 | + /** |
| 64 | + * [Output Only] Server-defined URL for this resource. |
| 65 | + * The value may be {@code null}. |
| 66 | + */ |
| 67 | + @com.google.api.client.util.Key |
| 68 | + private java.lang.String selfLink; |
| 69 | + |
| 70 | + /** |
| 71 | + * [Output Only] Informational warning message. |
| 72 | + * The value may be {@code null}. |
| 73 | + */ |
| 74 | + @com.google.api.client.util.Key |
| 75 | + private Warning warning; |
| 76 | + |
| 77 | + /** |
| 78 | + * [Output Only] Unique identifier for the resource; defined by the server. |
| 79 | + * @return value or {@code null} for none |
| 80 | + */ |
| 81 | + public java.lang.String getId() { |
| 82 | + return id; |
| 83 | + } |
| 84 | + |
| 85 | + /** |
| 86 | + * [Output Only] Unique identifier for the resource; defined by the server. |
| 87 | + * @param id id or {@code null} for none |
| 88 | + */ |
| 89 | + public BackendBucketAggregatedList setId(java.lang.String id) { |
| 90 | + this.id = id; |
| 91 | + return this; |
| 92 | + } |
| 93 | + |
| 94 | + /** |
| 95 | + * A list of BackendBucketsScopedList resources. |
| 96 | + * @return value or {@code null} for none |
| 97 | + */ |
| 98 | + public java.util.Map<String, BackendBucketsScopedList> getItems() { |
| 99 | + return items; |
| 100 | + } |
| 101 | + |
| 102 | + /** |
| 103 | + * A list of BackendBucketsScopedList resources. |
| 104 | + * @param items items or {@code null} for none |
| 105 | + */ |
| 106 | + public BackendBucketAggregatedList setItems(java.util.Map<String, BackendBucketsScopedList> items) { |
| 107 | + this.items = items; |
| 108 | + return this; |
| 109 | + } |
| 110 | + |
| 111 | + /** |
| 112 | + * Type of resource. |
| 113 | + * @return value or {@code null} for none |
| 114 | + */ |
| 115 | + public java.lang.String getKind() { |
| 116 | + return kind; |
| 117 | + } |
| 118 | + |
| 119 | + /** |
| 120 | + * Type of resource. |
| 121 | + * @param kind kind or {@code null} for none |
| 122 | + */ |
| 123 | + public BackendBucketAggregatedList setKind(java.lang.String kind) { |
| 124 | + this.kind = kind; |
| 125 | + return this; |
| 126 | + } |
| 127 | + |
| 128 | + /** |
| 129 | + * [Output Only] This token allows you to get the next page of results for list requests. If the |
| 130 | + * number of results is larger than maxResults, use the nextPageToken as a value for the query |
| 131 | + * parameter pageToken in the next list request. Subsequent list requests will have their own |
| 132 | + * nextPageToken to continue paging through the results. |
| 133 | + * @return value or {@code null} for none |
| 134 | + */ |
| 135 | + public java.lang.String getNextPageToken() { |
| 136 | + return nextPageToken; |
| 137 | + } |
| 138 | + |
| 139 | + /** |
| 140 | + * [Output Only] This token allows you to get the next page of results for list requests. If the |
| 141 | + * number of results is larger than maxResults, use the nextPageToken as a value for the query |
| 142 | + * parameter pageToken in the next list request. Subsequent list requests will have their own |
| 143 | + * nextPageToken to continue paging through the results. |
| 144 | + * @param nextPageToken nextPageToken or {@code null} for none |
| 145 | + */ |
| 146 | + public BackendBucketAggregatedList setNextPageToken(java.lang.String nextPageToken) { |
| 147 | + this.nextPageToken = nextPageToken; |
| 148 | + return this; |
| 149 | + } |
| 150 | + |
| 151 | + /** |
| 152 | + * [Output Only] Server-defined URL for this resource. |
| 153 | + * @return value or {@code null} for none |
| 154 | + */ |
| 155 | + public java.lang.String getSelfLink() { |
| 156 | + return selfLink; |
| 157 | + } |
| 158 | + |
| 159 | + /** |
| 160 | + * [Output Only] Server-defined URL for this resource. |
| 161 | + * @param selfLink selfLink or {@code null} for none |
| 162 | + */ |
| 163 | + public BackendBucketAggregatedList setSelfLink(java.lang.String selfLink) { |
| 164 | + this.selfLink = selfLink; |
| 165 | + return this; |
| 166 | + } |
| 167 | + |
| 168 | + /** |
| 169 | + * [Output Only] Informational warning message. |
| 170 | + * @return value or {@code null} for none |
| 171 | + */ |
| 172 | + public Warning getWarning() { |
| 173 | + return warning; |
| 174 | + } |
| 175 | + |
| 176 | + /** |
| 177 | + * [Output Only] Informational warning message. |
| 178 | + * @param warning warning or {@code null} for none |
| 179 | + */ |
| 180 | + public BackendBucketAggregatedList setWarning(Warning warning) { |
| 181 | + this.warning = warning; |
| 182 | + return this; |
| 183 | + } |
| 184 | + |
| 185 | + @Override |
| 186 | + public BackendBucketAggregatedList set(String fieldName, Object value) { |
| 187 | + return (BackendBucketAggregatedList) super.set(fieldName, value); |
| 188 | + } |
| 189 | + |
| 190 | + @Override |
| 191 | + public BackendBucketAggregatedList clone() { |
| 192 | + return (BackendBucketAggregatedList) super.clone(); |
| 193 | + } |
| 194 | + |
| 195 | + /** |
| 196 | + * [Output Only] Informational warning message. |
| 197 | + */ |
| 198 | + public static final class Warning extends com.google.api.client.json.GenericJson { |
| 199 | + |
| 200 | + /** |
| 201 | + * [Output Only] A warning code, if applicable. For example, Compute Engine returns |
| 202 | + * NO_RESULTS_ON_PAGE if there are no results in the response. |
| 203 | + * The value may be {@code null}. |
| 204 | + */ |
| 205 | + @com.google.api.client.util.Key |
| 206 | + private java.lang.String code; |
| 207 | + |
| 208 | + /** |
| 209 | + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": |
| 210 | + * "scope", "value": "zones/us-east1-d" } |
| 211 | + * The value may be {@code null}. |
| 212 | + */ |
| 213 | + @com.google.api.client.util.Key |
| 214 | + private java.util.List<Data> data; |
| 215 | + |
| 216 | + static { |
| 217 | + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out |
| 218 | + // see https://github.com/google/google-api-java-client/issues/543 |
| 219 | + com.google.api.client.util.Data.nullOf(Data.class); |
| 220 | + } |
| 221 | + |
| 222 | + /** |
| 223 | + * [Output Only] A human-readable description of the warning code. |
| 224 | + * The value may be {@code null}. |
| 225 | + */ |
| 226 | + @com.google.api.client.util.Key |
| 227 | + private java.lang.String message; |
| 228 | + |
| 229 | + /** |
| 230 | + * [Output Only] A warning code, if applicable. For example, Compute Engine returns |
| 231 | + * NO_RESULTS_ON_PAGE if there are no results in the response. |
| 232 | + * @return value or {@code null} for none |
| 233 | + */ |
| 234 | + public java.lang.String getCode() { |
| 235 | + return code; |
| 236 | + } |
| 237 | + |
| 238 | + /** |
| 239 | + * [Output Only] A warning code, if applicable. For example, Compute Engine returns |
| 240 | + * NO_RESULTS_ON_PAGE if there are no results in the response. |
| 241 | + * @param code code or {@code null} for none |
| 242 | + */ |
| 243 | + public Warning setCode(java.lang.String code) { |
| 244 | + this.code = code; |
| 245 | + return this; |
| 246 | + } |
| 247 | + |
| 248 | + /** |
| 249 | + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": |
| 250 | + * "scope", "value": "zones/us-east1-d" } |
| 251 | + * @return value or {@code null} for none |
| 252 | + */ |
| 253 | + public java.util.List<Data> getData() { |
| 254 | + return data; |
| 255 | + } |
| 256 | + |
| 257 | + /** |
| 258 | + * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": |
| 259 | + * "scope", "value": "zones/us-east1-d" } |
| 260 | + * @param data data or {@code null} for none |
| 261 | + */ |
| 262 | + public Warning setData(java.util.List<Data> data) { |
| 263 | + this.data = data; |
| 264 | + return this; |
| 265 | + } |
| 266 | + |
| 267 | + /** |
| 268 | + * [Output Only] A human-readable description of the warning code. |
| 269 | + * @return value or {@code null} for none |
| 270 | + */ |
| 271 | + public java.lang.String getMessage() { |
| 272 | + return message; |
| 273 | + } |
| 274 | + |
| 275 | + /** |
| 276 | + * [Output Only] A human-readable description of the warning code. |
| 277 | + * @param message message or {@code null} for none |
| 278 | + */ |
| 279 | + public Warning setMessage(java.lang.String message) { |
| 280 | + this.message = message; |
| 281 | + return this; |
| 282 | + } |
| 283 | + |
| 284 | + @Override |
| 285 | + public Warning set(String fieldName, Object value) { |
| 286 | + return (Warning) super.set(fieldName, value); |
| 287 | + } |
| 288 | + |
| 289 | + @Override |
| 290 | + public Warning clone() { |
| 291 | + return (Warning) super.clone(); |
| 292 | + } |
| 293 | + |
| 294 | + /** |
| 295 | + * Model definition for BackendBucketAggregatedListWarningData. |
| 296 | + */ |
| 297 | + public static final class Data extends com.google.api.client.json.GenericJson { |
| 298 | + |
| 299 | + /** |
| 300 | + * [Output Only] A key that provides more detail on the warning being returned. For example, for |
| 301 | + * warnings where there are no results in a list request for a particular zone, this key might be |
| 302 | + * scope and the key value might be the zone name. Other examples might be a key indicating a |
| 303 | + * deprecated resource and a suggested replacement, or a warning about invalid network settings |
| 304 | + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP |
| 305 | + * forwarding). |
| 306 | + * The value may be {@code null}. |
| 307 | + */ |
| 308 | + @com.google.api.client.util.Key |
| 309 | + private java.lang.String key; |
| 310 | + |
| 311 | + /** |
| 312 | + * [Output Only] A warning data value corresponding to the key. |
| 313 | + * The value may be {@code null}. |
| 314 | + */ |
| 315 | + @com.google.api.client.util.Key |
| 316 | + private java.lang.String value; |
| 317 | + |
| 318 | + /** |
| 319 | + * [Output Only] A key that provides more detail on the warning being returned. For example, for |
| 320 | + * warnings where there are no results in a list request for a particular zone, this key might be |
| 321 | + * scope and the key value might be the zone name. Other examples might be a key indicating a |
| 322 | + * deprecated resource and a suggested replacement, or a warning about invalid network settings |
| 323 | + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP |
| 324 | + * forwarding). |
| 325 | + * @return value or {@code null} for none |
| 326 | + */ |
| 327 | + public java.lang.String getKey() { |
| 328 | + return key; |
| 329 | + } |
| 330 | + |
| 331 | + /** |
| 332 | + * [Output Only] A key that provides more detail on the warning being returned. For example, for |
| 333 | + * warnings where there are no results in a list request for a particular zone, this key might be |
| 334 | + * scope and the key value might be the zone name. Other examples might be a key indicating a |
| 335 | + * deprecated resource and a suggested replacement, or a warning about invalid network settings |
| 336 | + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP |
| 337 | + * forwarding). |
| 338 | + * @param key key or {@code null} for none |
| 339 | + */ |
| 340 | + public Data setKey(java.lang.String key) { |
| 341 | + this.key = key; |
| 342 | + return this; |
| 343 | + } |
| 344 | + |
| 345 | + /** |
| 346 | + * [Output Only] A warning data value corresponding to the key. |
| 347 | + * @return value or {@code null} for none |
| 348 | + */ |
| 349 | + public java.lang.String getValue() { |
| 350 | + return value; |
| 351 | + } |
| 352 | + |
| 353 | + /** |
| 354 | + * [Output Only] A warning data value corresponding to the key. |
| 355 | + * @param value value or {@code null} for none |
| 356 | + */ |
| 357 | + public Data setValue(java.lang.String value) { |
| 358 | + this.value = value; |
| 359 | + return this; |
| 360 | + } |
| 361 | + |
| 362 | + @Override |
| 363 | + public Data set(String fieldName, Object value) { |
| 364 | + return (Data) super.set(fieldName, value); |
| 365 | + } |
| 366 | + |
| 367 | + @Override |
| 368 | + public Data clone() { |
| 369 | + return (Data) super.clone(); |
| 370 | + } |
| 371 | + |
| 372 | + } |
| 373 | + } |
| 374 | +} |
0 commit comments