container  v1
usable_subnetwork.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-07, 01:20:42 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Kubernetes Engine API (container/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 93
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_CONTAINER_API_USABLE_SUBNETWORK_H_
31 #define GOOGLE_CONTAINER_API_USABLE_SUBNETWORK_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/container_api/usable_subnetwork_secondary_range.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_container_api {
45 using namespace googleapis;
46 
53 class UsableSubnetwork : public client::JsonCppData {
54  public:
60  static UsableSubnetwork* New();
61 
67  explicit UsableSubnetwork(const Json::Value& storage);
68 
74  explicit UsableSubnetwork(Json::Value* storage);
75 
79  virtual ~UsableSubnetwork();
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_container_api::UsableSubnetwork");
88  }
89 
95  bool has_ip_cidr_range() const {
96  return Storage().isMember("ipCidrRange");
97  }
98 
103  MutableStorage()->removeMember("ipCidrRange");
104  }
105 
106 
110  const StringPiece get_ip_cidr_range() const {
111  const Json::Value& v = Storage("ipCidrRange");
112  if (v == Json::Value::null) return StringPiece("");
113  return StringPiece(v.asCString());
114  }
115 
123  void set_ip_cidr_range(const StringPiece& value) {
124  *MutableStorage("ipCidrRange") = value.data();
125  }
126 
132  bool has_network() const {
133  return Storage().isMember("network");
134  }
135 
139  void clear_network() {
140  MutableStorage()->removeMember("network");
141  }
142 
143 
147  const StringPiece get_network() const {
148  const Json::Value& v = Storage("network");
149  if (v == Json::Value::null) return StringPiece("");
150  return StringPiece(v.asCString());
151  }
152 
161  void set_network(const StringPiece& value) {
162  *MutableStorage("network") = value.data();
163  }
164 
170  bool has_secondary_ip_ranges() const {
171  return Storage().isMember("secondaryIpRanges");
172  }
173 
178  MutableStorage()->removeMember("secondaryIpRanges");
179  }
180 
181 
186  const client::JsonCppArray<UsableSubnetworkSecondaryRange > get_secondary_ip_ranges() const;
187 
196  client::JsonCppArray<UsableSubnetworkSecondaryRange > mutable_secondaryIpRanges();
197 
203  bool has_status_message() const {
204  return Storage().isMember("statusMessage");
205  }
206 
211  MutableStorage()->removeMember("statusMessage");
212  }
213 
214 
218  const StringPiece get_status_message() const {
219  const Json::Value& v = Storage("statusMessage");
220  if (v == Json::Value::null) return StringPiece("");
221  return StringPiece(v.asCString());
222  }
223 
234  void set_status_message(const StringPiece& value) {
235  *MutableStorage("statusMessage") = value.data();
236  }
237 
243  bool has_subnetwork() const {
244  return Storage().isMember("subnetwork");
245  }
246 
251  MutableStorage()->removeMember("subnetwork");
252  }
253 
254 
258  const StringPiece get_subnetwork() const {
259  const Json::Value& v = Storage("subnetwork");
260  if (v == Json::Value::null) return StringPiece("");
261  return StringPiece(v.asCString());
262  }
263 
272  void set_subnetwork(const StringPiece& value) {
273  *MutableStorage("subnetwork") = value.data();
274  }
275 
276  private:
277  void operator=(const UsableSubnetwork&);
278 }; // UsableSubnetwork
279 } // namespace google_container_api
280 #endif // GOOGLE_CONTAINER_API_USABLE_SUBNETWORK_H_
void set_subnetwork(const StringPiece &value)
Definition: usable_subnetwork.h:272
const StringPiece get_network() const
Definition: usable_subnetwork.h:147
void set_network(const StringPiece &value)
Definition: usable_subnetwork.h:161
void set_ip_cidr_range(const StringPiece &value)
Definition: usable_subnetwork.h:123
bool has_secondary_ip_ranges() const
Definition: usable_subnetwork.h:170
void clear_status_message()
Definition: usable_subnetwork.h:210
const StringPiece GetTypeName() const
Definition: usable_subnetwork.h:86
void clear_ip_cidr_range()
Definition: usable_subnetwork.h:102
void clear_subnetwork()
Definition: usable_subnetwork.h:250
void clear_network()
Definition: usable_subnetwork.h:139
const StringPiece get_ip_cidr_range() const
Definition: usable_subnetwork.h:110
bool has_subnetwork() const
Definition: usable_subnetwork.h:243
Definition: usable_subnetwork.h:53
Definition: accelerator_config.h:39
void clear_secondary_ip_ranges()
Definition: usable_subnetwork.h:177
bool has_status_message() const
Definition: usable_subnetwork.h:203
Definition: accelerator_config.cc:41
bool has_network() const
Definition: usable_subnetwork.h:132
void set_status_message(const StringPiece &value)
Definition: usable_subnetwork.h:234
bool has_ip_cidr_range() const
Definition: usable_subnetwork.h:95
const StringPiece get_status_message() const
Definition: usable_subnetwork.h:218
const StringPiece get_subnetwork() const
Definition: usable_subnetwork.h:258