androidenterprise  v1
managed_configuration.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_MANAGED_CONFIGURATION_H_
31 #define GOOGLE_ANDROIDENTERPRISE_API_MANAGED_CONFIGURATION_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/configuration_variables.h"
39 #include "google/androidenterprise_api/managed_property.h"
40 
41 namespace Json {
42 class Value;
43 } // namespace Json
44 
46 using namespace googleapis;
47 
55 class ManagedConfiguration : public client::JsonCppData {
56  public:
62  static ManagedConfiguration* New();
63 
69  explicit ManagedConfiguration(const Json::Value& storage);
70 
76  explicit ManagedConfiguration(Json::Value* storage);
77 
81  virtual ~ManagedConfiguration();
82 
88  const StringPiece GetTypeName() const {
89  return StringPiece("google_androidenterprise_api::ManagedConfiguration");
90  }
91 
99  return Storage().isMember("configurationVariables");
100  }
101 
106  MutableStorage()->removeMember("configurationVariables");
107  }
108 
109 
114  const ConfigurationVariables get_configuration_variables() const;
115 
125  ConfigurationVariables mutable_configurationVariables();
126 
132  bool has_kind() const {
133  return Storage().isMember("kind");
134  }
135 
139  void clear_kind() {
140  MutableStorage()->removeMember("kind");
141  }
142 
143 
147  const StringPiece get_kind() const {
148  const Json::Value& v = Storage("kind");
149  if (v == Json::Value::null) return StringPiece("");
150  return StringPiece(v.asCString());
151  }
152 
162  void set_kind(const StringPiece& value) {
163  *MutableStorage("kind") = value.data();
164  }
165 
171  bool has_managed_property() const {
172  return Storage().isMember("managedProperty");
173  }
174 
179  MutableStorage()->removeMember("managedProperty");
180  }
181 
182 
187  const client::JsonCppArray<ManagedProperty > get_managed_property() const;
188 
197  client::JsonCppArray<ManagedProperty > mutable_managedProperty();
198 
204  bool has_product_id() const {
205  return Storage().isMember("productId");
206  }
207 
212  MutableStorage()->removeMember("productId");
213  }
214 
215 
219  const StringPiece get_product_id() const {
220  const Json::Value& v = Storage("productId");
221  if (v == Json::Value::null) return StringPiece("");
222  return StringPiece(v.asCString());
223  }
224 
233  void set_product_id(const StringPiece& value) {
234  *MutableStorage("productId") = value.data();
235  }
236 
237  private:
238  void operator=(const ManagedConfiguration&);
239 }; // ManagedConfiguration
240 } // namespace google_androidenterprise_api
241 #endif // GOOGLE_ANDROIDENTERPRISE_API_MANAGED_CONFIGURATION_H_
bool has_product_id() const
Definition: managed_configuration.h:204
bool has_kind() const
Definition: managed_configuration.h:132
void set_product_id(const StringPiece &value)
Definition: managed_configuration.h:233
bool has_configuration_variables() const
Definition: managed_configuration.h:98
const StringPiece get_kind() const
Definition: managed_configuration.h:147
const StringPiece get_product_id() const
Definition: managed_configuration.h:219
void clear_configuration_variables()
Definition: managed_configuration.h:105
Definition: administrator.h:38
Definition: administrator.cc:40
bool has_managed_property() const
Definition: managed_configuration.h:171
void set_kind(const StringPiece &value)
Definition: managed_configuration.h:162
void clear_product_id()
Definition: managed_configuration.h:211
void clear_kind()
Definition: managed_configuration.h:139
void clear_managed_property()
Definition: managed_configuration.h:178
const StringPiece GetTypeName() const
Definition: managed_configuration.h:88
Definition: managed_configuration.h:55
Definition: configuration_variables.h:55