dns  v1
changes_list_response.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: 2020-01-29, 22:13:38 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Google Cloud DNS API (dns/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 112
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_DNS_API_CHANGES_LIST_RESPONSE_H_
31 #define GOOGLE_DNS_API_CHANGES_LIST_RESPONSE_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/dns_api/change.h"
39 #include "google/dns_api/response_header.h"
40 
41 namespace Json {
42 class Value;
43 } // namespace Json
44 
45 namespace google_dns_api {
46 using namespace googleapis;
47 
54 class ChangesListResponse : public client::JsonCppData {
55  public:
61  static ChangesListResponse* New();
62 
68  explicit ChangesListResponse(const Json::Value& storage);
69 
75  explicit ChangesListResponse(Json::Value* storage);
76 
80  virtual ~ChangesListResponse();
81 
87  const StringPiece GetTypeName() const {
88  return StringPiece("google_dns_api::ChangesListResponse");
89  }
90 
96  bool has_changes() const {
97  return Storage().isMember("changes");
98  }
99 
103  void clear_changes() {
104  MutableStorage()->removeMember("changes");
105  }
106 
107 
111  const client::JsonCppArray<Change > get_changes() const;
112 
120  client::JsonCppArray<Change > mutable_changes();
121 
127  bool has_header() const {
128  return Storage().isMember("header");
129  }
130 
134  void clear_header() {
135  MutableStorage()->removeMember("header");
136  }
137 
138 
142  const ResponseHeader get_header() const;
143 
148  ResponseHeader mutable_header();
149 
155  bool has_kind() const {
156  return Storage().isMember("kind");
157  }
158 
162  void clear_kind() {
163  MutableStorage()->removeMember("kind");
164  }
165 
166 
170  const StringPiece get_kind() const {
171  const Json::Value& v = Storage("kind");
172  if (v == Json::Value::null) return StringPiece("");
173  return StringPiece(v.asCString());
174  }
175 
183  void set_kind(const StringPiece& value) {
184  *MutableStorage("kind") = value.data();
185  }
186 
192  bool has_next_page_token() const {
193  return Storage().isMember("nextPageToken");
194  }
195 
200  MutableStorage()->removeMember("nextPageToken");
201  }
202 
203 
207  const StringPiece get_next_page_token() const {
208  const Json::Value& v = Storage("nextPageToken");
209  if (v == Json::Value::null) return StringPiece("");
210  return StringPiece(v.asCString());
211  }
212 
229  void set_next_page_token(const StringPiece& value) {
230  *MutableStorage("nextPageToken") = value.data();
231  }
232 
233  private:
234  void operator=(const ChangesListResponse&);
235 }; // ChangesListResponse
236 } // namespace google_dns_api
237 #endif // GOOGLE_DNS_API_CHANGES_LIST_RESPONSE_H_
bool has_header() const
Definition: changes_list_response.h:127
bool has_kind() const
Definition: changes_list_response.h:155
void clear_kind()
Definition: changes_list_response.h:162
const StringPiece get_kind() const
Definition: changes_list_response.h:170
void clear_header()
Definition: changes_list_response.h:134
void clear_changes()
Definition: changes_list_response.h:103
void clear_next_page_token()
Definition: changes_list_response.h:199
void set_next_page_token(const StringPiece &value)
Definition: changes_list_response.h:229
bool has_next_page_token() const
Definition: changes_list_response.h:192
Definition: change.h:40
const StringPiece GetTypeName() const
Definition: changes_list_response.h:87
Definition: response_header.h:50
Definition: changes_list_response.h:54
bool has_changes() const
Definition: changes_list_response.h:96
Definition: change.cc:42
const StringPiece get_next_page_token() const
Definition: changes_list_response.h:207
void set_kind(const StringPiece &value)
Definition: changes_list_response.h:183