compute  v1
router_aggregated_list.h
1 // Copyright 2010 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of
5 // the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 // License for the specific language governing permissions and limitations under
13 // the License.
14 
15 // This code was generated by google-apis-code-generator 1.5.1
16 // Build date: 2018-10-08 17:45:39 UTC
17 // on: 2019-05-15, 03:08:54 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Compute Engine API (compute/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 214
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_COMPUTE_API_ROUTER_AGGREGATED_LIST_H_
31 #define GOOGLE_COMPUTE_API_ROUTER_AGGREGATED_LIST_H_
32 
33 #include <string>
34 #include "googleapis/base/macros.h"
35 #include "googleapis/client/data/jsoncpp_data.h"
36 #include "googleapis/strings/stringpiece.h"
37 
38 #include "google/compute_api/routers_scoped_list.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_compute_api {
45 using namespace googleapis;
46 
52 class RouterAggregatedList : public client::JsonCppData {
53  public:
59  class RouterAggregatedListWarning : public client::JsonCppData {
60  public:
66  class RouterAggregatedListWarningData : public client::JsonCppData {
67  public:
73  static RouterAggregatedListWarningData* New();
74 
80  explicit RouterAggregatedListWarningData(const Json::Value& storage);
81 
87  explicit RouterAggregatedListWarningData(Json::Value* storage);
88 
93 
100  const StringPiece GetTypeName() const {
101  return StringPiece("google_compute_api::RouterAggregatedListWarningData");
102  }
103 
109  bool has_key() const {
110  return Storage().isMember("key");
111  }
112 
116  void clear_key() {
117  MutableStorage()->removeMember("key");
118  }
119 
120 
124  const StringPiece get_key() const {
125  const Json::Value& v = Storage("key");
126  if (v == Json::Value::null) return StringPiece("");
127  return StringPiece(v.asCString());
128  }
129 
143  void set_key(const StringPiece& value) {
144  *MutableStorage("key") = value.data();
145  }
146 
152  bool has_value() const {
153  return Storage().isMember("value");
154  }
155 
159  void clear_value() {
160  MutableStorage()->removeMember("value");
161  }
162 
163 
167  const StringPiece get_value() const {
168  const Json::Value& v = Storage("value");
169  if (v == Json::Value::null) return StringPiece("");
170  return StringPiece(v.asCString());
171  }
172 
180  void set_value(const StringPiece& value) {
181  *MutableStorage("value") = value.data();
182  }
183 
184  private:
185  void operator=(const RouterAggregatedListWarningData&);
186  }; // RouterAggregatedListWarningData
192  static RouterAggregatedListWarning* New();
193 
199  explicit RouterAggregatedListWarning(const Json::Value& storage);
200 
206  explicit RouterAggregatedListWarning(Json::Value* storage);
207 
211  virtual ~RouterAggregatedListWarning();
212 
218  const StringPiece GetTypeName() const {
219  return StringPiece("google_compute_api::RouterAggregatedListWarning");
220  }
221 
227  bool has_code() const {
228  return Storage().isMember("code");
229  }
230 
234  void clear_code() {
235  MutableStorage()->removeMember("code");
236  }
237 
238 
242  const StringPiece get_code() const {
243  const Json::Value& v = Storage("code");
244  if (v == Json::Value::null) return StringPiece("");
245  return StringPiece(v.asCString());
246  }
247 
256  void set_code(const StringPiece& value) {
257  *MutableStorage("code") = value.data();
258  }
259 
265  bool has_data() const {
266  return Storage().isMember("data");
267  }
268 
272  void clear_data() {
273  MutableStorage()->removeMember("data");
274  }
275 
276 
280  const client::JsonCppArray<RouterAggregatedListWarningData > get_data() const {
281  const Json::Value& storage = Storage("data");
282  return client::JsonValueToCppValueHelper<client::JsonCppArray<RouterAggregatedListWarningData > >(storage);
283  }
284 
294  client::JsonCppArray<RouterAggregatedListWarningData > mutable_data() {
295  Json::Value* storage = MutableStorage("data");
296  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<RouterAggregatedListWarningData > >(storage);
297  }
298 
304  bool has_message() const {
305  return Storage().isMember("message");
306  }
307 
311  void clear_message() {
312  MutableStorage()->removeMember("message");
313  }
314 
315 
319  const StringPiece get_message() const {
320  const Json::Value& v = Storage("message");
321  if (v == Json::Value::null) return StringPiece("");
322  return StringPiece(v.asCString());
323  }
324 
332  void set_message(const StringPiece& value) {
333  *MutableStorage("message") = value.data();
334  }
335 
336  private:
337  void operator=(const RouterAggregatedListWarning&);
338  }; // RouterAggregatedListWarning
344  static RouterAggregatedList* New();
345 
351  explicit RouterAggregatedList(const Json::Value& storage);
352 
358  explicit RouterAggregatedList(Json::Value* storage);
359 
363  virtual ~RouterAggregatedList();
364 
370  const StringPiece GetTypeName() const {
371  return StringPiece("google_compute_api::RouterAggregatedList");
372  }
373 
379  bool has_id() const {
380  return Storage().isMember("id");
381  }
382 
386  void clear_id() {
387  MutableStorage()->removeMember("id");
388  }
389 
390 
394  const StringPiece get_id() const {
395  const Json::Value& v = Storage("id");
396  if (v == Json::Value::null) return StringPiece("");
397  return StringPiece(v.asCString());
398  }
399 
407  void set_id(const StringPiece& value) {
408  *MutableStorage("id") = value.data();
409  }
410 
416  bool has_items() const {
417  return Storage().isMember("items");
418  }
419 
423  void clear_items() {
424  MutableStorage()->removeMember("items");
425  }
426 
427 
431  const client::JsonCppAssociativeArray<RoutersScopedList > get_items() const;
432 
440  client::JsonCppAssociativeArray<RoutersScopedList > mutable_items();
441 
447  bool has_kind() const {
448  return Storage().isMember("kind");
449  }
450 
454  void clear_kind() {
455  MutableStorage()->removeMember("kind");
456  }
457 
458 
462  const StringPiece get_kind() const {
463  const Json::Value& v = Storage("kind");
464  if (v == Json::Value::null) return StringPiece("");
465  return StringPiece(v.asCString());
466  }
467 
475  void set_kind(const StringPiece& value) {
476  *MutableStorage("kind") = value.data();
477  }
478 
484  bool has_next_page_token() const {
485  return Storage().isMember("nextPageToken");
486  }
487 
492  MutableStorage()->removeMember("nextPageToken");
493  }
494 
495 
499  const StringPiece get_next_page_token() const {
500  const Json::Value& v = Storage("nextPageToken");
501  if (v == Json::Value::null) return StringPiece("");
502  return StringPiece(v.asCString());
503  }
504 
516  void set_next_page_token(const StringPiece& value) {
517  *MutableStorage("nextPageToken") = value.data();
518  }
519 
525  bool has_self_link() const {
526  return Storage().isMember("selfLink");
527  }
528 
533  MutableStorage()->removeMember("selfLink");
534  }
535 
536 
540  const StringPiece get_self_link() const {
541  const Json::Value& v = Storage("selfLink");
542  if (v == Json::Value::null) return StringPiece("");
543  return StringPiece(v.asCString());
544  }
545 
553  void set_self_link(const StringPiece& value) {
554  *MutableStorage("selfLink") = value.data();
555  }
556 
562  bool has_warning() const {
563  return Storage().isMember("warning");
564  }
565 
569  void clear_warning() {
570  MutableStorage()->removeMember("warning");
571  }
572 
573 
578  const Json::Value& storage = Storage("warning");
579  return client::JsonValueToCppValueHelper<RouterAggregatedListWarning >(storage);
580  }
581 
590  Json::Value* storage = MutableStorage("warning");
591  return client::JsonValueToMutableCppValueHelper<RouterAggregatedListWarning >(storage);
592  }
593 
594  private:
595  void operator=(const RouterAggregatedList&);
596 }; // RouterAggregatedList
597 } // namespace google_compute_api
598 #endif // GOOGLE_COMPUTE_API_ROUTER_AGGREGATED_LIST_H_
const client::JsonCppArray< RouterAggregatedListWarningData > get_data() const
Definition: router_aggregated_list.h:280
bool has_next_page_token() const
Definition: router_aggregated_list.h:484
const RouterAggregatedListWarning get_warning() const
Definition: router_aggregated_list.h:577
const StringPiece get_next_page_token() const
Definition: router_aggregated_list.h:499
bool has_kind() const
Definition: router_aggregated_list.h:447
const StringPiece get_id() const
Definition: router_aggregated_list.h:394
void clear_data()
Definition: router_aggregated_list.h:272
const StringPiece get_self_link() const
Definition: router_aggregated_list.h:540
void clear_next_page_token()
Definition: router_aggregated_list.h:491
void set_self_link(const StringPiece &value)
Definition: router_aggregated_list.h:553
const StringPiece get_kind() const
Definition: router_aggregated_list.h:462
void set_key(const StringPiece &value)
Definition: router_aggregated_list.h:143
const StringPiece GetTypeName() const
Definition: router_aggregated_list.h:370
bool has_code() const
Definition: router_aggregated_list.h:227
RouterAggregatedListWarning mutable_warning()
Definition: router_aggregated_list.h:589
void set_next_page_token(const StringPiece &value)
Definition: router_aggregated_list.h:516
const StringPiece GetTypeName() const
Definition: router_aggregated_list.h:100
bool has_warning() const
Definition: router_aggregated_list.h:562
const StringPiece get_code() const
Definition: router_aggregated_list.h:242
bool has_self_link() const
Definition: router_aggregated_list.h:525
void set_id(const StringPiece &value)
Definition: router_aggregated_list.h:407
void set_kind(const StringPiece &value)
Definition: router_aggregated_list.h:475
void clear_id()
Definition: router_aggregated_list.h:386
Definition: accelerator_config.h:39
bool has_data() const
Definition: router_aggregated_list.h:265
bool has_items() const
Definition: router_aggregated_list.h:416
bool has_message() const
Definition: router_aggregated_list.h:304
void clear_items()
Definition: router_aggregated_list.h:423
Definition: router_aggregated_list.h:52
client::JsonCppArray< RouterAggregatedListWarningData > mutable_data()
Definition: router_aggregated_list.h:294
const StringPiece get_message() const
Definition: router_aggregated_list.h:319
bool has_id() const
Definition: router_aggregated_list.h:379
Definition: accelerator_config.cc:41
void set_code(const StringPiece &value)
Definition: router_aggregated_list.h:256
void clear_kind()
Definition: router_aggregated_list.h:454
const StringPiece GetTypeName() const
Definition: router_aggregated_list.h:218
void clear_message()
Definition: router_aggregated_list.h:311
void set_value(const StringPiece &value)
Definition: router_aggregated_list.h:180
void clear_warning()
Definition: router_aggregated_list.h:569
void clear_code()
Definition: router_aggregated_list.h:234
void clear_self_link()
Definition: router_aggregated_list.h:532
void set_message(const StringPiece &value)
Definition: router_aggregated_list.h:332