reseller  v1
customer.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-30, 01:43:20 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Enterprise Apps Reseller API (reseller/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 81
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_RESELLER_API_CUSTOMER_H_
31 #define GOOGLE_RESELLER_API_CUSTOMER_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/reseller_api/address.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_reseller_api {
45 using namespace googleapis;
46 
52 class Customer : public client::JsonCppData {
53  public:
59  static Customer* New();
60 
66  explicit Customer(const Json::Value& storage);
67 
73  explicit Customer(Json::Value* storage);
74 
78  virtual ~Customer();
79 
85  const StringPiece GetTypeName() const {
86  return StringPiece("google_reseller_api::Customer");
87  }
88 
94  bool has_alternate_email() const {
95  return Storage().isMember("alternateEmail");
96  }
97 
102  MutableStorage()->removeMember("alternateEmail");
103  }
104 
105 
109  const StringPiece get_alternate_email() const {
110  const Json::Value& v = Storage("alternateEmail");
111  if (v == Json::Value::null) return StringPiece("");
112  return StringPiece(v.asCString());
113  }
114 
126  void set_alternate_email(const StringPiece& value) {
127  *MutableStorage("alternateEmail") = value.data();
128  }
129 
135  bool has_customer_domain() const {
136  return Storage().isMember("customerDomain");
137  }
138 
143  MutableStorage()->removeMember("customerDomain");
144  }
145 
146 
150  const StringPiece get_customer_domain() const {
151  const Json::Value& v = Storage("customerDomain");
152  if (v == Json::Value::null) return StringPiece("");
153  return StringPiece(v.asCString());
154  }
155 
165  void set_customer_domain(const StringPiece& value) {
166  *MutableStorage("customerDomain") = value.data();
167  }
168 
176  return Storage().isMember("customerDomainVerified");
177  }
178 
183  MutableStorage()->removeMember("customerDomainVerified");
184  }
185 
186 
191  const Json::Value& storage = Storage("customerDomainVerified");
192  return client::JsonValueToCppValueHelper<bool >(storage);
193  }
194 
202  void set_customer_domain_verified(bool value) {
203  client::SetJsonValueFromCppValueHelper<bool >(
204  value, MutableStorage("customerDomainVerified"));
205  }
206 
212  bool has_customer_id() const {
213  return Storage().isMember("customerId");
214  }
215 
220  MutableStorage()->removeMember("customerId");
221  }
222 
223 
227  const StringPiece get_customer_id() const {
228  const Json::Value& v = Storage("customerId");
229  if (v == Json::Value::null) return StringPiece("");
230  return StringPiece(v.asCString());
231  }
232 
242  void set_customer_id(const StringPiece& value) {
243  *MutableStorage("customerId") = value.data();
244  }
245 
251  bool has_kind() const {
252  return Storage().isMember("kind");
253  }
254 
258  void clear_kind() {
259  MutableStorage()->removeMember("kind");
260  }
261 
262 
266  const StringPiece get_kind() const {
267  const Json::Value& v = Storage("kind");
268  if (v == Json::Value::null) return StringPiece("");
269  return StringPiece(v.asCString());
270  }
271 
279  void set_kind(const StringPiece& value) {
280  *MutableStorage("kind") = value.data();
281  }
282 
288  bool has_phone_number() const {
289  return Storage().isMember("phoneNumber");
290  }
291 
296  MutableStorage()->removeMember("phoneNumber");
297  }
298 
299 
303  const StringPiece get_phone_number() const {
304  const Json::Value& v = Storage("phoneNumber");
305  if (v == Json::Value::null) return StringPiece("");
306  return StringPiece(v.asCString());
307  }
308 
319  void set_phone_number(const StringPiece& value) {
320  *MutableStorage("phoneNumber") = value.data();
321  }
322 
328  bool has_postal_address() const {
329  return Storage().isMember("postalAddress");
330  }
331 
336  MutableStorage()->removeMember("postalAddress");
337  }
338 
339 
343  const Address get_postal_address() const;
344 
353  Address mutable_postalAddress();
354 
360  bool has_resource_ui_url() const {
361  return Storage().isMember("resourceUiUrl");
362  }
363 
368  MutableStorage()->removeMember("resourceUiUrl");
369  }
370 
371 
375  const StringPiece get_resource_ui_url() const {
376  const Json::Value& v = Storage("resourceUiUrl");
377  if (v == Json::Value::null) return StringPiece("");
378  return StringPiece(v.asCString());
379  }
380 
390  void set_resource_ui_url(const StringPiece& value) {
391  *MutableStorage("resourceUiUrl") = value.data();
392  }
393 
394  private:
395  void operator=(const Customer&);
396 }; // Customer
397 } // namespace google_reseller_api
398 #endif // GOOGLE_RESELLER_API_CUSTOMER_H_
void set_resource_ui_url(const StringPiece &value)
Definition: customer.h:390
Definition: address.cc:40
void clear_customer_domain_verified()
Definition: customer.h:182
void clear_resource_ui_url()
Definition: customer.h:367
void clear_alternate_email()
Definition: customer.h:101
const StringPiece get_customer_id() const
Definition: customer.h:227
bool has_kind() const
Definition: customer.h:251
void set_kind(const StringPiece &value)
Definition: customer.h:279
const StringPiece get_kind() const
Definition: customer.h:266
Definition: customer.h:52
bool has_customer_domain_verified() const
Definition: customer.h:175
void clear_postal_address()
Definition: customer.h:335
void set_customer_domain(const StringPiece &value)
Definition: customer.h:165
bool has_alternate_email() const
Definition: customer.h:94
const StringPiece get_phone_number() const
Definition: customer.h:303
void set_customer_domain_verified(bool value)
Definition: customer.h:202
void clear_kind()
Definition: customer.h:258
void clear_phone_number()
Definition: customer.h:295
const StringPiece GetTypeName() const
Definition: customer.h:85
void clear_customer_domain()
Definition: customer.h:142
Definition: address.h:50
bool has_postal_address() const
Definition: customer.h:328
void set_alternate_email(const StringPiece &value)
Definition: customer.h:126
Definition: address.h:38
bool has_phone_number() const
Definition: customer.h:288
void set_customer_id(const StringPiece &value)
Definition: customer.h:242
const StringPiece get_customer_domain() const
Definition: customer.h:150
void set_phone_number(const StringPiece &value)
Definition: customer.h:319
void clear_customer_id()
Definition: customer.h:219
const StringPiece get_resource_ui_url() const
Definition: customer.h:375
bool has_customer_id() const
Definition: customer.h:212
const StringPiece get_alternate_email() const
Definition: customer.h:109
bool has_resource_ui_url() const
Definition: customer.h:360
bool has_customer_domain() const
Definition: customer.h:135
bool get_customer_domain_verified() const
Definition: customer.h:190