compute  v1
target_https_proxy.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_TARGET_HTTPS_PROXY_H_
31 #define GOOGLE_COMPUTE_API_TARGET_HTTPS_PROXY_H_
32 
33 #include <string>
34 #include "googleapis/base/integral_types.h"
35 #include "googleapis/base/macros.h"
36 #include "googleapis/client/data/jsoncpp_data.h"
37 #include "googleapis/strings/stringpiece.h"
38 
39 namespace Json {
40 class Value;
41 } // namespace Json
42 
43 namespace google_compute_api {
44 using namespace googleapis;
45 
53 class TargetHttpsProxy : public client::JsonCppData {
54  public:
60  static TargetHttpsProxy* New();
61 
67  explicit TargetHttpsProxy(const Json::Value& storage);
68 
74  explicit TargetHttpsProxy(Json::Value* storage);
75 
79  virtual ~TargetHttpsProxy();
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_compute_api::TargetHttpsProxy");
88  }
89 
95  bool has_creation_timestamp() const {
96  return Storage().isMember("creationTimestamp");
97  }
98 
103  MutableStorage()->removeMember("creationTimestamp");
104  }
105 
106 
110  const StringPiece get_creation_timestamp() const {
111  const Json::Value& v = Storage("creationTimestamp");
112  if (v == Json::Value::null) return StringPiece("");
113  return StringPiece(v.asCString());
114  }
115 
123  void set_creation_timestamp(const StringPiece& value) {
124  *MutableStorage("creationTimestamp") = value.data();
125  }
126 
132  bool has_description() const {
133  return Storage().isMember("description");
134  }
135 
140  MutableStorage()->removeMember("description");
141  }
142 
143 
147  const StringPiece get_description() const {
148  const Json::Value& v = Storage("description");
149  if (v == Json::Value::null) return StringPiece("");
150  return StringPiece(v.asCString());
151  }
152 
161  void set_description(const StringPiece& value) {
162  *MutableStorage("description") = value.data();
163  }
164 
170  bool has_id() const {
171  return Storage().isMember("id");
172  }
173 
177  void clear_id() {
178  MutableStorage()->removeMember("id");
179  }
180 
181 
185  uint64 get_id() const {
186  const Json::Value& storage = Storage("id");
187  return client::JsonValueToCppValueHelper<uint64 >(storage);
188  }
189 
198  void set_id(uint64 value) {
199  client::SetJsonValueFromCppValueHelper<uint64 >(
200  value, MutableStorage("id"));
201  }
202 
208  bool has_kind() const {
209  return Storage().isMember("kind");
210  }
211 
215  void clear_kind() {
216  MutableStorage()->removeMember("kind");
217  }
218 
219 
223  const StringPiece get_kind() const {
224  const Json::Value& v = Storage("kind");
225  if (v == Json::Value::null) return StringPiece("");
226  return StringPiece(v.asCString());
227  }
228 
237  void set_kind(const StringPiece& value) {
238  *MutableStorage("kind") = value.data();
239  }
240 
246  bool has_name() const {
247  return Storage().isMember("name");
248  }
249 
253  void clear_name() {
254  MutableStorage()->removeMember("name");
255  }
256 
257 
261  const StringPiece get_name() const {
262  const Json::Value& v = Storage("name");
263  if (v == Json::Value::null) return StringPiece("");
264  return StringPiece(v.asCString());
265  }
266 
280  void set_name(const StringPiece& value) {
281  *MutableStorage("name") = value.data();
282  }
283 
289  bool has_quic_override() const {
290  return Storage().isMember("quicOverride");
291  }
292 
297  MutableStorage()->removeMember("quicOverride");
298  }
299 
300 
304  const StringPiece get_quic_override() const {
305  const Json::Value& v = Storage("quicOverride");
306  if (v == Json::Value::null) return StringPiece("");
307  return StringPiece(v.asCString());
308  }
309 
323  void set_quic_override(const StringPiece& value) {
324  *MutableStorage("quicOverride") = value.data();
325  }
326 
332  bool has_self_link() const {
333  return Storage().isMember("selfLink");
334  }
335 
340  MutableStorage()->removeMember("selfLink");
341  }
342 
343 
347  const StringPiece get_self_link() const {
348  const Json::Value& v = Storage("selfLink");
349  if (v == Json::Value::null) return StringPiece("");
350  return StringPiece(v.asCString());
351  }
352 
360  void set_self_link(const StringPiece& value) {
361  *MutableStorage("selfLink") = value.data();
362  }
363 
369  bool has_ssl_certificates() const {
370  return Storage().isMember("sslCertificates");
371  }
372 
377  MutableStorage()->removeMember("sslCertificates");
378  }
379 
380 
385  const client::JsonCppArray<string > get_ssl_certificates() const {
386  const Json::Value& storage = Storage("sslCertificates");
387  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
388  }
389 
400  client::JsonCppArray<string > mutable_sslCertificates() {
401  Json::Value* storage = MutableStorage("sslCertificates");
402  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
403  }
404 
410  bool has_ssl_policy() const {
411  return Storage().isMember("sslPolicy");
412  }
413 
418  MutableStorage()->removeMember("sslPolicy");
419  }
420 
421 
425  const StringPiece get_ssl_policy() const {
426  const Json::Value& v = Storage("sslPolicy");
427  if (v == Json::Value::null) return StringPiece("");
428  return StringPiece(v.asCString());
429  }
430 
440  void set_ssl_policy(const StringPiece& value) {
441  *MutableStorage("sslPolicy") = value.data();
442  }
443 
449  bool has_url_map() const {
450  return Storage().isMember("urlMap");
451  }
452 
456  void clear_url_map() {
457  MutableStorage()->removeMember("urlMap");
458  }
459 
460 
464  const StringPiece get_url_map() const {
465  const Json::Value& v = Storage("urlMap");
466  if (v == Json::Value::null) return StringPiece("");
467  return StringPiece(v.asCString());
468  }
469 
482  void set_url_map(const StringPiece& value) {
483  *MutableStorage("urlMap") = value.data();
484  }
485 
486  private:
487  void operator=(const TargetHttpsProxy&);
488 }; // TargetHttpsProxy
489 } // namespace google_compute_api
490 #endif // GOOGLE_COMPUTE_API_TARGET_HTTPS_PROXY_H_
void set_creation_timestamp(const StringPiece &value)
Definition: target_https_proxy.h:123
const StringPiece get_creation_timestamp() const
Definition: target_https_proxy.h:110
void clear_description()
Definition: target_https_proxy.h:139
void clear_ssl_certificates()
Definition: target_https_proxy.h:376
void clear_creation_timestamp()
Definition: target_https_proxy.h:102
void clear_quic_override()
Definition: target_https_proxy.h:296
bool has_name() const
Definition: target_https_proxy.h:246
void clear_name()
Definition: target_https_proxy.h:253
bool has_kind() const
Definition: target_https_proxy.h:208
const StringPiece get_ssl_policy() const
Definition: target_https_proxy.h:425
bool has_description() const
Definition: target_https_proxy.h:132
void clear_url_map()
Definition: target_https_proxy.h:456
bool has_url_map() const
Definition: target_https_proxy.h:449
void set_description(const StringPiece &value)
Definition: target_https_proxy.h:161
const client::JsonCppArray< string > get_ssl_certificates() const
Definition: target_https_proxy.h:385
void clear_id()
Definition: target_https_proxy.h:177
void clear_kind()
Definition: target_https_proxy.h:215
bool has_id() const
Definition: target_https_proxy.h:170
const StringPiece get_quic_override() const
Definition: target_https_proxy.h:304
void clear_self_link()
Definition: target_https_proxy.h:339
void set_url_map(const StringPiece &value)
Definition: target_https_proxy.h:482
bool has_creation_timestamp() const
Definition: target_https_proxy.h:95
Definition: target_https_proxy.h:53
const StringPiece GetTypeName() const
Definition: target_https_proxy.h:86
const StringPiece get_self_link() const
Definition: target_https_proxy.h:347
Definition: accelerator_config.h:39
bool has_ssl_policy() const
Definition: target_https_proxy.h:410
bool has_quic_override() const
Definition: target_https_proxy.h:289
const StringPiece get_url_map() const
Definition: target_https_proxy.h:464
const StringPiece get_description() const
Definition: target_https_proxy.h:147
uint64 get_id() const
Definition: target_https_proxy.h:185
void set_self_link(const StringPiece &value)
Definition: target_https_proxy.h:360
Definition: accelerator_config.cc:41
void set_id(uint64 value)
Definition: target_https_proxy.h:198
client::JsonCppArray< string > mutable_sslCertificates()
Definition: target_https_proxy.h:400
bool has_self_link() const
Definition: target_https_proxy.h:332
bool has_ssl_certificates() const
Definition: target_https_proxy.h:369
void set_ssl_policy(const StringPiece &value)
Definition: target_https_proxy.h:440
void set_quic_override(const StringPiece &value)
Definition: target_https_proxy.h:323
const StringPiece get_kind() const
Definition: target_https_proxy.h:223
const StringPiece get_name() const
Definition: target_https_proxy.h:261
void clear_ssl_policy()
Definition: target_https_proxy.h:417
void set_name(const StringPiece &value)
Definition: target_https_proxy.h:280
void set_kind(const StringPiece &value)
Definition: target_https_proxy.h:237