androidenterprise  v1
enterprise.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-02-11, 20:26:36 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 Play EMM API (androidenterprise/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 218
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_ANDROIDENTERPRISE_API_ENTERPRISE_H_
31 #define GOOGLE_ANDROIDENTERPRISE_API_ENTERPRISE_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/androidenterprise_api/administrator.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
45 using namespace googleapis;
46 
63 class Enterprise : public client::JsonCppData {
64  public:
70  static Enterprise* New();
71 
77  explicit Enterprise(const Json::Value& storage);
78 
84  explicit Enterprise(Json::Value* storage);
85 
89  virtual ~Enterprise();
90 
96  const StringPiece GetTypeName() const {
97  return StringPiece("google_androidenterprise_api::Enterprise");
98  }
99 
105  bool has_administrator() const {
106  return Storage().isMember("administrator");
107  }
108 
113  MutableStorage()->removeMember("administrator");
114  }
115 
116 
120  const client::JsonCppArray<Administrator > get_administrator() const;
121 
131  client::JsonCppArray<Administrator > mutable_administrator();
132 
138  bool has_id() const {
139  return Storage().isMember("id");
140  }
141 
145  void clear_id() {
146  MutableStorage()->removeMember("id");
147  }
148 
149 
153  const StringPiece get_id() const {
154  const Json::Value& v = Storage("id");
155  if (v == Json::Value::null) return StringPiece("");
156  return StringPiece(v.asCString());
157  }
158 
166  void set_id(const StringPiece& value) {
167  *MutableStorage("id") = value.data();
168  }
169 
175  bool has_kind() const {
176  return Storage().isMember("kind");
177  }
178 
182  void clear_kind() {
183  MutableStorage()->removeMember("kind");
184  }
185 
186 
190  const StringPiece get_kind() const {
191  const Json::Value& v = Storage("kind");
192  if (v == Json::Value::null) return StringPiece("");
193  return StringPiece(v.asCString());
194  }
195 
200  void set_kind(const StringPiece& value) {
201  *MutableStorage("kind") = value.data();
202  }
203 
209  bool has_name() const {
210  return Storage().isMember("name");
211  }
212 
216  void clear_name() {
217  MutableStorage()->removeMember("name");
218  }
219 
220 
224  const StringPiece get_name() const {
225  const Json::Value& v = Storage("name");
226  if (v == Json::Value::null) return StringPiece("");
227  return StringPiece(v.asCString());
228  }
229 
237  void set_name(const StringPiece& value) {
238  *MutableStorage("name") = value.data();
239  }
240 
246  bool has_primary_domain() const {
247  return Storage().isMember("primaryDomain");
248  }
249 
254  MutableStorage()->removeMember("primaryDomain");
255  }
256 
257 
261  const StringPiece get_primary_domain() const {
262  const Json::Value& v = Storage("primaryDomain");
263  if (v == Json::Value::null) return StringPiece("");
264  return StringPiece(v.asCString());
265  }
266 
274  void set_primary_domain(const StringPiece& value) {
275  *MutableStorage("primaryDomain") = value.data();
276  }
277 
278  private:
279  void operator=(const Enterprise&);
280 }; // Enterprise
281 } // namespace google_androidenterprise_api
282 #endif // GOOGLE_ANDROIDENTERPRISE_API_ENTERPRISE_H_
void set_primary_domain(const StringPiece &value)
Definition: enterprise.h:274
void clear_administrator()
Definition: enterprise.h:112
void clear_id()
Definition: enterprise.h:145
void clear_primary_domain()
Definition: enterprise.h:253
void set_id(const StringPiece &value)
Definition: enterprise.h:166
const StringPiece get_id() const
Definition: enterprise.h:153
void clear_kind()
Definition: enterprise.h:182
bool has_name() const
Definition: enterprise.h:209
void clear_name()
Definition: enterprise.h:216
const StringPiece get_name() const
Definition: enterprise.h:224
const StringPiece get_kind() const
Definition: enterprise.h:190
Definition: administrator.h:38
Definition: administrator.cc:40
Definition: enterprise.h:63
bool has_kind() const
Definition: enterprise.h:175
bool has_id() const
Definition: enterprise.h:138
bool has_primary_domain() const
Definition: enterprise.h:246
const StringPiece get_primary_domain() const
Definition: enterprise.h:261
const StringPiece GetTypeName() const
Definition: enterprise.h:96
void set_kind(const StringPiece &value)
Definition: enterprise.h:200
void set_name(const StringPiece &value)
Definition: enterprise.h:237
bool has_administrator() const
Definition: enterprise.h:105