compute  v1
access_config.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_ACCESS_CONFIG_H_
31 #define GOOGLE_COMPUTE_API_ACCESS_CONFIG_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 
51 class AccessConfig : public client::JsonCppData {
52  public:
58  static AccessConfig* New();
59 
65  explicit AccessConfig(const Json::Value& storage);
66 
72  explicit AccessConfig(Json::Value* storage);
73 
77  virtual ~AccessConfig();
78 
84  const StringPiece GetTypeName() const {
85  return StringPiece("google_compute_api::AccessConfig");
86  }
87 
93  bool has_kind() const {
94  return Storage().isMember("kind");
95  }
96 
100  void clear_kind() {
101  MutableStorage()->removeMember("kind");
102  }
103 
104 
108  const StringPiece get_kind() const {
109  const Json::Value& v = Storage("kind");
110  if (v == Json::Value::null) return StringPiece("");
111  return StringPiece(v.asCString());
112  }
113 
122  void set_kind(const StringPiece& value) {
123  *MutableStorage("kind") = value.data();
124  }
125 
131  bool has_name() const {
132  return Storage().isMember("name");
133  }
134 
138  void clear_name() {
139  MutableStorage()->removeMember("name");
140  }
141 
142 
146  const StringPiece get_name() const {
147  const Json::Value& v = Storage("name");
148  if (v == Json::Value::null) return StringPiece("");
149  return StringPiece(v.asCString());
150  }
151 
161  void set_name(const StringPiece& value) {
162  *MutableStorage("name") = value.data();
163  }
164 
170  bool has_nat_ip() const {
171  return Storage().isMember("natIP");
172  }
173 
177  void clear_nat_ip() {
178  MutableStorage()->removeMember("natIP");
179  }
180 
181 
185  const StringPiece get_nat_ip() const {
186  const Json::Value& v = Storage("natIP");
187  if (v == Json::Value::null) return StringPiece("");
188  return StringPiece(v.asCString());
189  }
190 
202  void set_nat_ip(const StringPiece& value) {
203  *MutableStorage("natIP") = value.data();
204  }
205 
211  bool has_network_tier() const {
212  return Storage().isMember("networkTier");
213  }
214 
219  MutableStorage()->removeMember("networkTier");
220  }
221 
222 
226  const StringPiece get_network_tier() const {
227  const Json::Value& v = Storage("networkTier");
228  if (v == Json::Value::null) return StringPiece("");
229  return StringPiece(v.asCString());
230  }
231 
247  void set_network_tier(const StringPiece& value) {
248  *MutableStorage("networkTier") = value.data();
249  }
250 
257  return Storage().isMember("publicPtrDomainName");
258  }
259 
264  MutableStorage()->removeMember("publicPtrDomainName");
265  }
266 
267 
271  const StringPiece get_public_ptr_domain_name() const {
272  const Json::Value& v = Storage("publicPtrDomainName");
273  if (v == Json::Value::null) return StringPiece("");
274  return StringPiece(v.asCString());
275  }
276 
285  void set_public_ptr_domain_name(const StringPiece& value) {
286  *MutableStorage("publicPtrDomainName") = value.data();
287  }
288 
294  bool has_set_public_ptr() const {
295  return Storage().isMember("setPublicPtr");
296  }
297 
302  MutableStorage()->removeMember("setPublicPtr");
303  }
304 
305 
309  bool get_set_public_ptr() const {
310  const Json::Value& storage = Storage("setPublicPtr");
311  return client::JsonValueToCppValueHelper<bool >(storage);
312  }
313 
322  void set_set_public_ptr(bool value) {
323  client::SetJsonValueFromCppValueHelper<bool >(
324  value, MutableStorage("setPublicPtr"));
325  }
326 
332  bool has_type() const {
333  return Storage().isMember("type");
334  }
335 
339  void clear_type() {
340  MutableStorage()->removeMember("type");
341  }
342 
343 
347  const StringPiece get_type() const {
348  const Json::Value& v = Storage("type");
349  if (v == Json::Value::null) return StringPiece("");
350  return StringPiece(v.asCString());
351  }
352 
360  void set_type(const StringPiece& value) {
361  *MutableStorage("type") = value.data();
362  }
363 
364  private:
365  void operator=(const AccessConfig&);
366 }; // AccessConfig
367 } // namespace google_compute_api
368 #endif // GOOGLE_COMPUTE_API_ACCESS_CONFIG_H_
void clear_set_public_ptr()
Definition: access_config.h:301
const StringPiece get_type() const
Definition: access_config.h:347
bool has_set_public_ptr() const
Definition: access_config.h:294
void clear_public_ptr_domain_name()
Definition: access_config.h:263
void clear_kind()
Definition: access_config.h:100
bool has_nat_ip() const
Definition: access_config.h:170
void set_network_tier(const StringPiece &value)
Definition: access_config.h:247
const StringPiece get_public_ptr_domain_name() const
Definition: access_config.h:271
const StringPiece GetTypeName() const
Definition: access_config.h:84
void set_type(const StringPiece &value)
Definition: access_config.h:360
bool has_name() const
Definition: access_config.h:131
const StringPiece get_name() const
Definition: access_config.h:146
const StringPiece get_network_tier() const
Definition: access_config.h:226
void clear_network_tier()
Definition: access_config.h:218
void set_name(const StringPiece &value)
Definition: access_config.h:161
void clear_name()
Definition: access_config.h:138
void set_set_public_ptr(bool value)
Definition: access_config.h:322
const StringPiece get_kind() const
Definition: access_config.h:108
void set_public_ptr_domain_name(const StringPiece &value)
Definition: access_config.h:285
Definition: accelerator_config.h:39
void clear_type()
Definition: access_config.h:339
void set_kind(const StringPiece &value)
Definition: access_config.h:122
bool has_public_ptr_domain_name() const
Definition: access_config.h:256
void set_nat_ip(const StringPiece &value)
Definition: access_config.h:202
Definition: accelerator_config.cc:41
bool has_network_tier() const
Definition: access_config.h:211
bool has_kind() const
Definition: access_config.h:93
const StringPiece get_nat_ip() const
Definition: access_config.h:185
bool get_set_public_ptr() const
Definition: access_config.h:309
bool has_type() const
Definition: access_config.h:332
void clear_nat_ip()
Definition: access_config.h:177
Definition: access_config.h:51