compute  v1
deprecation_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: 2019-05-15, 03:08:54 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Compute Engine API (compute/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 214
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_COMPUTE_API_DEPRECATION_STATUS_H_
31 #define GOOGLE_COMPUTE_API_DEPRECATION_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 
42 namespace google_compute_api {
43 using namespace googleapis;
44 
50 class DeprecationStatus : public client::JsonCppData {
51  public:
57  static DeprecationStatus* New();
58 
64  explicit DeprecationStatus(const Json::Value& storage);
65 
71  explicit DeprecationStatus(Json::Value* storage);
72 
76  virtual ~DeprecationStatus();
77 
83  const StringPiece GetTypeName() const {
84  return StringPiece("google_compute_api::DeprecationStatus");
85  }
86 
92  bool has_deleted() const {
93  return Storage().isMember("deleted");
94  }
95 
99  void clear_deleted() {
100  MutableStorage()->removeMember("deleted");
101  }
102 
103 
107  const StringPiece get_deleted() const {
108  const Json::Value& v = Storage("deleted");
109  if (v == Json::Value::null) return StringPiece("");
110  return StringPiece(v.asCString());
111  }
112 
122  void set_deleted(const StringPiece& value) {
123  *MutableStorage("deleted") = value.data();
124  }
125 
131  bool has_deprecated() const {
132  return Storage().isMember("deprecated");
133  }
134 
139  MutableStorage()->removeMember("deprecated");
140  }
141 
142 
146  const StringPiece get_deprecated() const {
147  const Json::Value& v = Storage("deprecated");
148  if (v == Json::Value::null) return StringPiece("");
149  return StringPiece(v.asCString());
150  }
151 
161  void set_deprecated(const StringPiece& value) {
162  *MutableStorage("deprecated") = value.data();
163  }
164 
170  bool has_obsolete() const {
171  return Storage().isMember("obsolete");
172  }
173 
177  void clear_obsolete() {
178  MutableStorage()->removeMember("obsolete");
179  }
180 
181 
185  const StringPiece get_obsolete() const {
186  const Json::Value& v = Storage("obsolete");
187  if (v == Json::Value::null) return StringPiece("");
188  return StringPiece(v.asCString());
189  }
190 
200  void set_obsolete(const StringPiece& value) {
201  *MutableStorage("obsolete") = value.data();
202  }
203 
209  bool has_replacement() const {
210  return Storage().isMember("replacement");
211  }
212 
217  MutableStorage()->removeMember("replacement");
218  }
219 
220 
224  const StringPiece get_replacement() const {
225  const Json::Value& v = Storage("replacement");
226  if (v == Json::Value::null) return StringPiece("");
227  return StringPiece(v.asCString());
228  }
229 
239  void set_replacement(const StringPiece& value) {
240  *MutableStorage("replacement") = value.data();
241  }
242 
248  bool has_state() const {
249  return Storage().isMember("state");
250  }
251 
255  void clear_state() {
256  MutableStorage()->removeMember("state");
257  }
258 
259 
263  const StringPiece get_state() const {
264  const Json::Value& v = Storage("state");
265  if (v == Json::Value::null) return StringPiece("");
266  return StringPiece(v.asCString());
267  }
268 
281  void set_state(const StringPiece& value) {
282  *MutableStorage("state") = value.data();
283  }
284 
285  private:
286  void operator=(const DeprecationStatus&);
287 }; // DeprecationStatus
288 } // namespace google_compute_api
289 #endif // GOOGLE_COMPUTE_API_DEPRECATION_STATUS_H_
void set_replacement(const StringPiece &value)
Definition: deprecation_status.h:239
void set_obsolete(const StringPiece &value)
Definition: deprecation_status.h:200
void set_state(const StringPiece &value)
Definition: deprecation_status.h:281
const StringPiece get_deprecated() const
Definition: deprecation_status.h:146
bool has_obsolete() const
Definition: deprecation_status.h:170
bool has_deprecated() const
Definition: deprecation_status.h:131
void clear_deprecated()
Definition: deprecation_status.h:138
Definition: deprecation_status.h:50
void clear_deleted()
Definition: deprecation_status.h:99
bool has_replacement() const
Definition: deprecation_status.h:209
void set_deleted(const StringPiece &value)
Definition: deprecation_status.h:122
void clear_obsolete()
Definition: deprecation_status.h:177
void clear_state()
Definition: deprecation_status.h:255
const StringPiece get_replacement() const
Definition: deprecation_status.h:224
Definition: accelerator_config.h:39
Definition: accelerator_config.cc:41
const StringPiece get_deleted() const
Definition: deprecation_status.h:107
const StringPiece get_state() const
Definition: deprecation_status.h:263
void clear_replacement()
Definition: deprecation_status.h:216
const StringPiece GetTypeName() const
Definition: deprecation_status.h:83
void set_deprecated(const StringPiece &value)
Definition: deprecation_status.h:161
bool has_deleted() const
Definition: deprecation_status.h:92
bool has_state() const
Definition: deprecation_status.h:248
const StringPiece get_obsolete() const
Definition: deprecation_status.h:185