cloudresourcemanager  v1beta1
project_creation_status.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_PROJECT_CREATION_STATUS_H_
31 #define GOOGLE_CLOUDRESOURCEMANAGER_API_PROJECT_CREATION_STATUS_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 namespace Json {
39 class Value;
40 } // namespace Json
41 
43 using namespace googleapis;
44 
52 class ProjectCreationStatus : public client::JsonCppData {
53  public:
59  static ProjectCreationStatus* New();
60 
66  explicit ProjectCreationStatus(const Json::Value& storage);
67 
73  explicit ProjectCreationStatus(Json::Value* storage);
74 
78  virtual ~ProjectCreationStatus();
79 
85  const StringPiece GetTypeName() const {
86  return StringPiece("google_cloudresourcemanager_api::ProjectCreationStatus");
87  }
88 
94  bool has_create_time() const {
95  return Storage().isMember("createTime");
96  }
97 
102  MutableStorage()->removeMember("createTime");
103  }
104 
105 
109  const StringPiece get_create_time() const {
110  const Json::Value& v = Storage("createTime");
111  if (v == Json::Value::null) return StringPiece("");
112  return StringPiece(v.asCString());
113  }
114 
122  void set_create_time(const StringPiece& value) {
123  *MutableStorage("createTime") = value.data();
124  }
125 
131  bool has_gettable() const {
132  return Storage().isMember("gettable");
133  }
134 
138  void clear_gettable() {
139  MutableStorage()->removeMember("gettable");
140  }
141 
142 
146  bool get_gettable() const {
147  const Json::Value& storage = Storage("gettable");
148  return client::JsonValueToCppValueHelper<bool >(storage);
149  }
150 
160  void set_gettable(bool value) {
161  client::SetJsonValueFromCppValueHelper<bool >(
162  value, MutableStorage("gettable"));
163  }
164 
170  bool has_ready() const {
171  return Storage().isMember("ready");
172  }
173 
177  void clear_ready() {
178  MutableStorage()->removeMember("ready");
179  }
180 
181 
185  bool get_ready() const {
186  const Json::Value& storage = Storage("ready");
187  return client::JsonValueToCppValueHelper<bool >(storage);
188  }
189 
197  void set_ready(bool value) {
198  client::SetJsonValueFromCppValueHelper<bool >(
199  value, MutableStorage("ready"));
200  }
201 
202  private:
203  void operator=(const ProjectCreationStatus&);
204 }; // ProjectCreationStatus
205 } // namespace google_cloudresourcemanager_api
206 #endif // GOOGLE_CLOUDRESOURCEMANAGER_API_PROJECT_CREATION_STATUS_H_
bool has_ready() const
Definition: project_creation_status.h:170
bool get_ready() const
Definition: project_creation_status.h:185
void set_ready(bool value)
Definition: project_creation_status.h:197
const StringPiece get_create_time() const
Definition: project_creation_status.h:109
void clear_create_time()
Definition: project_creation_status.h:101
void set_create_time(const StringPiece &value)
Definition: project_creation_status.h:122
void clear_gettable()
Definition: project_creation_status.h:138
void set_gettable(bool value)
Definition: project_creation_status.h:160
Definition: ancestor.cc:41
Definition: ancestor.h:39
bool has_gettable() const
Definition: project_creation_status.h:131
Definition: project_creation_status.h:52
void clear_ready()
Definition: project_creation_status.h:177
bool get_gettable() const
Definition: project_creation_status.h:146
bool has_create_time() const
Definition: project_creation_status.h:94
const StringPiece GetTypeName() const
Definition: project_creation_status.h:85