cloudresourcemanager  v1beta1
organization.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-03-19, 00:30:26 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Cloud Resource Manager API (cloudresourcemanager/v1beta1)
24 // Generated from:
25 // Version: v1beta1
26 // Revision: 577
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_CLOUDRESOURCEMANAGER_API_ORGANIZATION_H_
31 #define GOOGLE_CLOUDRESOURCEMANAGER_API_ORGANIZATION_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/cloudresourcemanager_api/organization_owner.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
45 using namespace googleapis;
46 
53 class Organization : public client::JsonCppData {
54  public:
60  static Organization* New();
61 
67  explicit Organization(const Json::Value& storage);
68 
74  explicit Organization(Json::Value* storage);
75 
79  virtual ~Organization();
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_cloudresourcemanager_api::Organization");
88  }
89 
95  bool has_creation_time() const {
96  return Storage().isMember("creationTime");
97  }
98 
103  MutableStorage()->removeMember("creationTime");
104  }
105 
106 
110  const StringPiece get_creation_time() const {
111  const Json::Value& v = Storage("creationTime");
112  if (v == Json::Value::null) return StringPiece("");
113  return StringPiece(v.asCString());
114  }
115 
123  void set_creation_time(const StringPiece& value) {
124  *MutableStorage("creationTime") = value.data();
125  }
126 
132  bool has_display_name() const {
133  return Storage().isMember("displayName");
134  }
135 
140  MutableStorage()->removeMember("displayName");
141  }
142 
143 
147  const StringPiece get_display_name() const {
148  const Json::Value& v = Storage("displayName");
149  if (v == Json::Value::null) return StringPiece("");
150  return StringPiece(v.asCString());
151  }
152 
163  void set_display_name(const StringPiece& value) {
164  *MutableStorage("displayName") = value.data();
165  }
166 
172  bool has_lifecycle_state() const {
173  return Storage().isMember("lifecycleState");
174  }
175 
180  MutableStorage()->removeMember("lifecycleState");
181  }
182 
183 
187  const StringPiece get_lifecycle_state() const {
188  const Json::Value& v = Storage("lifecycleState");
189  if (v == Json::Value::null) return StringPiece("");
190  return StringPiece(v.asCString());
191  }
192 
200  void set_lifecycle_state(const StringPiece& value) {
201  *MutableStorage("lifecycleState") = 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 
239  void set_name(const StringPiece& value) {
240  *MutableStorage("name") = value.data();
241  }
242 
248  bool has_organization_id() const {
249  return Storage().isMember("organizationId");
250  }
251 
256  MutableStorage()->removeMember("organizationId");
257  }
258 
259 
263  const StringPiece get_organization_id() const {
264  const Json::Value& v = Storage("organizationId");
265  if (v == Json::Value::null) return StringPiece("");
266  return StringPiece(v.asCString());
267  }
268 
278  void set_organization_id(const StringPiece& value) {
279  *MutableStorage("organizationId") = value.data();
280  }
281 
287  bool has_owner() const {
288  return Storage().isMember("owner");
289  }
290 
294  void clear_owner() {
295  MutableStorage()->removeMember("owner");
296  }
297 
298 
302  const OrganizationOwner get_owner() const;
303 
313  OrganizationOwner mutable_owner();
314 
315  private:
316  void operator=(const Organization&);
317 }; // Organization
318 } // namespace google_cloudresourcemanager_api
319 #endif // GOOGLE_CLOUDRESOURCEMANAGER_API_ORGANIZATION_H_
const StringPiece GetTypeName() const
Definition: organization.h:86
void clear_display_name()
Definition: organization.h:139
bool has_lifecycle_state() const
Definition: organization.h:172
bool has_organization_id() const
Definition: organization.h:248
void clear_lifecycle_state()
Definition: organization.h:179
bool has_creation_time() const
Definition: organization.h:95
void set_creation_time(const StringPiece &value)
Definition: organization.h:123
Definition: ancestor.cc:41
void clear_owner()
Definition: organization.h:294
const StringPiece get_creation_time() const
Definition: organization.h:110
void set_organization_id(const StringPiece &value)
Definition: organization.h:278
bool has_display_name() const
Definition: organization.h:132
void clear_organization_id()
Definition: organization.h:255
Definition: ancestor.h:39
const StringPiece get_display_name() const
Definition: organization.h:147
bool has_owner() const
Definition: organization.h:287
void set_display_name(const StringPiece &value)
Definition: organization.h:163
bool has_name() const
Definition: organization.h:209
void set_lifecycle_state(const StringPiece &value)
Definition: organization.h:200
const StringPiece get_lifecycle_state() const
Definition: organization.h:187
const StringPiece get_name() const
Definition: organization.h:224
void clear_creation_time()
Definition: organization.h:102
const StringPiece get_organization_id() const
Definition: organization.h:263
void set_name(const StringPiece &value)
Definition: organization.h:239
Definition: organization_owner.h:53
void clear_name()
Definition: organization.h:216