compute  v1
interconnect_attachment_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_INTERCONNECT_ATTACHMENT_LIST_H_
31 #define GOOGLE_COMPUTE_API_INTERCONNECT_ATTACHMENT_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/interconnect_attachment.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_compute_api {
45 using namespace googleapis;
46 
53 class InterconnectAttachmentList : public client::JsonCppData {
54  public:
60  class InterconnectAttachmentListWarning : public client::JsonCppData {
61  public:
67  class InterconnectAttachmentListWarningData : public client::JsonCppData {
68  public:
75 
81  explicit InterconnectAttachmentListWarningData(const Json::Value& storage);
82 
88  explicit InterconnectAttachmentListWarningData(Json::Value* storage);
89 
94 
101  const StringPiece GetTypeName() const {
102  return StringPiece("google_compute_api::InterconnectAttachmentListWarningData");
103  }
104 
110  bool has_key() const {
111  return Storage().isMember("key");
112  }
113 
117  void clear_key() {
118  MutableStorage()->removeMember("key");
119  }
120 
121 
125  const StringPiece get_key() const {
126  const Json::Value& v = Storage("key");
127  if (v == Json::Value::null) return StringPiece("");
128  return StringPiece(v.asCString());
129  }
130 
144  void set_key(const StringPiece& value) {
145  *MutableStorage("key") = value.data();
146  }
147 
153  bool has_value() const {
154  return Storage().isMember("value");
155  }
156 
160  void clear_value() {
161  MutableStorage()->removeMember("value");
162  }
163 
164 
168  const StringPiece get_value() const {
169  const Json::Value& v = Storage("value");
170  if (v == Json::Value::null) return StringPiece("");
171  return StringPiece(v.asCString());
172  }
173 
181  void set_value(const StringPiece& value) {
182  *MutableStorage("value") = value.data();
183  }
184 
185  private:
186  void operator=(const InterconnectAttachmentListWarningData&);
187  }; // InterconnectAttachmentListWarningData
193  static InterconnectAttachmentListWarning* New();
194 
200  explicit InterconnectAttachmentListWarning(const Json::Value& storage);
201 
207  explicit InterconnectAttachmentListWarning(Json::Value* storage);
208 
213 
220  const StringPiece GetTypeName() const {
221  return StringPiece("google_compute_api::InterconnectAttachmentListWarning");
222  }
223 
229  bool has_code() const {
230  return Storage().isMember("code");
231  }
232 
236  void clear_code() {
237  MutableStorage()->removeMember("code");
238  }
239 
240 
244  const StringPiece get_code() const {
245  const Json::Value& v = Storage("code");
246  if (v == Json::Value::null) return StringPiece("");
247  return StringPiece(v.asCString());
248  }
249 
258  void set_code(const StringPiece& value) {
259  *MutableStorage("code") = value.data();
260  }
261 
267  bool has_data() const {
268  return Storage().isMember("data");
269  }
270 
274  void clear_data() {
275  MutableStorage()->removeMember("data");
276  }
277 
278 
282  const client::JsonCppArray<InterconnectAttachmentListWarningData > get_data() const {
283  const Json::Value& storage = Storage("data");
284  return client::JsonValueToCppValueHelper<client::JsonCppArray<InterconnectAttachmentListWarningData > >(storage);
285  }
286 
296  client::JsonCppArray<InterconnectAttachmentListWarningData > mutable_data() {
297  Json::Value* storage = MutableStorage("data");
298  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<InterconnectAttachmentListWarningData > >(storage);
299  }
300 
306  bool has_message() const {
307  return Storage().isMember("message");
308  }
309 
313  void clear_message() {
314  MutableStorage()->removeMember("message");
315  }
316 
317 
321  const StringPiece get_message() const {
322  const Json::Value& v = Storage("message");
323  if (v == Json::Value::null) return StringPiece("");
324  return StringPiece(v.asCString());
325  }
326 
334  void set_message(const StringPiece& value) {
335  *MutableStorage("message") = value.data();
336  }
337 
338  private:
339  void operator=(const InterconnectAttachmentListWarning&);
340  }; // InterconnectAttachmentListWarning
346  static InterconnectAttachmentList* New();
347 
353  explicit InterconnectAttachmentList(const Json::Value& storage);
354 
360  explicit InterconnectAttachmentList(Json::Value* storage);
361 
365  virtual ~InterconnectAttachmentList();
366 
372  const StringPiece GetTypeName() const {
373  return StringPiece("google_compute_api::InterconnectAttachmentList");
374  }
375 
381  bool has_id() const {
382  return Storage().isMember("id");
383  }
384 
388  void clear_id() {
389  MutableStorage()->removeMember("id");
390  }
391 
392 
396  const StringPiece get_id() const {
397  const Json::Value& v = Storage("id");
398  if (v == Json::Value::null) return StringPiece("");
399  return StringPiece(v.asCString());
400  }
401 
409  void set_id(const StringPiece& value) {
410  *MutableStorage("id") = value.data();
411  }
412 
418  bool has_items() const {
419  return Storage().isMember("items");
420  }
421 
425  void clear_items() {
426  MutableStorage()->removeMember("items");
427  }
428 
429 
433  const client::JsonCppArray<InterconnectAttachment > get_items() const;
434 
442  client::JsonCppArray<InterconnectAttachment > mutable_items();
443 
449  bool has_kind() const {
450  return Storage().isMember("kind");
451  }
452 
456  void clear_kind() {
457  MutableStorage()->removeMember("kind");
458  }
459 
460 
464  const StringPiece get_kind() const {
465  const Json::Value& v = Storage("kind");
466  if (v == Json::Value::null) return StringPiece("");
467  return StringPiece(v.asCString());
468  }
469 
478  void set_kind(const StringPiece& value) {
479  *MutableStorage("kind") = value.data();
480  }
481 
487  bool has_next_page_token() const {
488  return Storage().isMember("nextPageToken");
489  }
490 
495  MutableStorage()->removeMember("nextPageToken");
496  }
497 
498 
502  const StringPiece get_next_page_token() const {
503  const Json::Value& v = Storage("nextPageToken");
504  if (v == Json::Value::null) return StringPiece("");
505  return StringPiece(v.asCString());
506  }
507 
519  void set_next_page_token(const StringPiece& value) {
520  *MutableStorage("nextPageToken") = value.data();
521  }
522 
528  bool has_self_link() const {
529  return Storage().isMember("selfLink");
530  }
531 
536  MutableStorage()->removeMember("selfLink");
537  }
538 
539 
543  const StringPiece get_self_link() const {
544  const Json::Value& v = Storage("selfLink");
545  if (v == Json::Value::null) return StringPiece("");
546  return StringPiece(v.asCString());
547  }
548 
556  void set_self_link(const StringPiece& value) {
557  *MutableStorage("selfLink") = value.data();
558  }
559 
565  bool has_warning() const {
566  return Storage().isMember("warning");
567  }
568 
572  void clear_warning() {
573  MutableStorage()->removeMember("warning");
574  }
575 
576 
581  const Json::Value& storage = Storage("warning");
582  return client::JsonValueToCppValueHelper<InterconnectAttachmentListWarning >(storage);
583  }
584 
593  Json::Value* storage = MutableStorage("warning");
594  return client::JsonValueToMutableCppValueHelper<InterconnectAttachmentListWarning >(storage);
595  }
596 
597  private:
598  void operator=(const InterconnectAttachmentList&);
599 }; // InterconnectAttachmentList
600 } // namespace google_compute_api
601 #endif // GOOGLE_COMPUTE_API_INTERCONNECT_ATTACHMENT_LIST_H_
const StringPiece get_message() const
Definition: interconnect_attachment_list.h:321
Definition: interconnect_attachment_list.h:53
void clear_kind()
Definition: interconnect_attachment_list.h:456
void set_self_link(const StringPiece &value)
Definition: interconnect_attachment_list.h:556
client::JsonCppArray< InterconnectAttachmentListWarningData > mutable_data()
Definition: interconnect_attachment_list.h:296
bool has_warning() const
Definition: interconnect_attachment_list.h:565
void set_id(const StringPiece &value)
Definition: interconnect_attachment_list.h:409
void clear_code()
Definition: interconnect_attachment_list.h:236
void set_next_page_token(const StringPiece &value)
Definition: interconnect_attachment_list.h:519
void clear_id()
Definition: interconnect_attachment_list.h:388
bool has_id() const
Definition: interconnect_attachment_list.h:381
bool has_self_link() const
Definition: interconnect_attachment_list.h:528
void set_kind(const StringPiece &value)
Definition: interconnect_attachment_list.h:478
const StringPiece get_id() const
Definition: interconnect_attachment_list.h:396
const InterconnectAttachmentListWarning get_warning() const
Definition: interconnect_attachment_list.h:580
const StringPiece get_self_link() const
Definition: interconnect_attachment_list.h:543
bool has_data() const
Definition: interconnect_attachment_list.h:267
bool has_items() const
Definition: interconnect_attachment_list.h:418
void clear_self_link()
Definition: interconnect_attachment_list.h:535
void clear_warning()
Definition: interconnect_attachment_list.h:572
void clear_items()
Definition: interconnect_attachment_list.h:425
bool has_message() const
Definition: interconnect_attachment_list.h:306
const StringPiece GetTypeName() const
Definition: interconnect_attachment_list.h:220
const StringPiece GetTypeName() const
Definition: interconnect_attachment_list.h:372
Definition: accelerator_config.h:39
bool has_code() const
Definition: interconnect_attachment_list.h:229
const StringPiece get_next_page_token() const
Definition: interconnect_attachment_list.h:502
const StringPiece get_code() const
Definition: interconnect_attachment_list.h:244
Definition: accelerator_config.cc:41
const client::JsonCppArray< InterconnectAttachmentListWarningData > get_data() const
Definition: interconnect_attachment_list.h:282
void set_message(const StringPiece &value)
Definition: interconnect_attachment_list.h:334
void clear_next_page_token()
Definition: interconnect_attachment_list.h:494
const StringPiece get_kind() const
Definition: interconnect_attachment_list.h:464
bool has_next_page_token() const
Definition: interconnect_attachment_list.h:487
void clear_data()
Definition: interconnect_attachment_list.h:274
bool has_kind() const
Definition: interconnect_attachment_list.h:449
void clear_message()
Definition: interconnect_attachment_list.h:313
void set_code(const StringPiece &value)
Definition: interconnect_attachment_list.h:258
InterconnectAttachmentListWarning mutable_warning()
Definition: interconnect_attachment_list.h:592