container  v1
private_cluster_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: 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_PRIVATE_CLUSTER_CONFIG_H_
31 #define GOOGLE_CONTAINER_API_PRIVATE_CLUSTER_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_container_api {
43 using namespace googleapis;
44 
50 class PrivateClusterConfig : public client::JsonCppData {
51  public:
57  static PrivateClusterConfig* New();
58 
64  explicit PrivateClusterConfig(const Json::Value& storage);
65 
71  explicit PrivateClusterConfig(Json::Value* storage);
72 
76  virtual ~PrivateClusterConfig();
77 
83  const StringPiece GetTypeName() const {
84  return StringPiece("google_container_api::PrivateClusterConfig");
85  }
86 
93  return Storage().isMember("enablePrivateEndpoint");
94  }
95 
100  MutableStorage()->removeMember("enablePrivateEndpoint");
101  }
102 
103 
108  const Json::Value& storage = Storage("enablePrivateEndpoint");
109  return client::JsonValueToCppValueHelper<bool >(storage);
110  }
111 
119  void set_enable_private_endpoint(bool value) {
120  client::SetJsonValueFromCppValueHelper<bool >(
121  value, MutableStorage("enablePrivateEndpoint"));
122  }
123 
130  return Storage().isMember("enablePrivateNodes");
131  }
132 
137  MutableStorage()->removeMember("enablePrivateNodes");
138  }
139 
140 
145  const Json::Value& storage = Storage("enablePrivateNodes");
146  return client::JsonValueToCppValueHelper<bool >(storage);
147  }
148 
158  void set_enable_private_nodes(bool value) {
159  client::SetJsonValueFromCppValueHelper<bool >(
160  value, MutableStorage("enablePrivateNodes"));
161  }
162 
169  return Storage().isMember("masterIpv4CidrBlock");
170  }
171 
176  MutableStorage()->removeMember("masterIpv4CidrBlock");
177  }
178 
179 
183  const StringPiece get_master_ipv4_cidr_block() const {
184  const Json::Value& v = Storage("masterIpv4CidrBlock");
185  if (v == Json::Value::null) return StringPiece("");
186  return StringPiece(v.asCString());
187  }
188 
199  void set_master_ipv4_cidr_block(const StringPiece& value) {
200  *MutableStorage("masterIpv4CidrBlock") = value.data();
201  }
202 
208  bool has_peering_name() const {
209  return Storage().isMember("peeringName");
210  }
211 
216  MutableStorage()->removeMember("peeringName");
217  }
218 
219 
223  const StringPiece get_peering_name() const {
224  const Json::Value& v = Storage("peeringName");
225  if (v == Json::Value::null) return StringPiece("");
226  return StringPiece(v.asCString());
227  }
228 
236  void set_peering_name(const StringPiece& value) {
237  *MutableStorage("peeringName") = value.data();
238  }
239 
245  bool has_private_endpoint() const {
246  return Storage().isMember("privateEndpoint");
247  }
248 
253  MutableStorage()->removeMember("privateEndpoint");
254  }
255 
256 
260  const StringPiece get_private_endpoint() const {
261  const Json::Value& v = Storage("privateEndpoint");
262  if (v == Json::Value::null) return StringPiece("");
263  return StringPiece(v.asCString());
264  }
265 
273  void set_private_endpoint(const StringPiece& value) {
274  *MutableStorage("privateEndpoint") = value.data();
275  }
276 
282  bool has_public_endpoint() const {
283  return Storage().isMember("publicEndpoint");
284  }
285 
290  MutableStorage()->removeMember("publicEndpoint");
291  }
292 
293 
297  const StringPiece get_public_endpoint() const {
298  const Json::Value& v = Storage("publicEndpoint");
299  if (v == Json::Value::null) return StringPiece("");
300  return StringPiece(v.asCString());
301  }
302 
310  void set_public_endpoint(const StringPiece& value) {
311  *MutableStorage("publicEndpoint") = value.data();
312  }
313 
314  private:
315  void operator=(const PrivateClusterConfig&);
316 }; // PrivateClusterConfig
317 } // namespace google_container_api
318 #endif // GOOGLE_CONTAINER_API_PRIVATE_CLUSTER_CONFIG_H_
void clear_private_endpoint()
Definition: private_cluster_config.h:252
const StringPiece get_private_endpoint() const
Definition: private_cluster_config.h:260
const StringPiece get_peering_name() const
Definition: private_cluster_config.h:223
void set_private_endpoint(const StringPiece &value)
Definition: private_cluster_config.h:273
const StringPiece get_public_endpoint() const
Definition: private_cluster_config.h:297
bool has_private_endpoint() const
Definition: private_cluster_config.h:245
bool has_master_ipv4_cidr_block() const
Definition: private_cluster_config.h:168
Definition: private_cluster_config.h:50
void clear_enable_private_nodes()
Definition: private_cluster_config.h:136
void set_enable_private_nodes(bool value)
Definition: private_cluster_config.h:158
void clear_master_ipv4_cidr_block()
Definition: private_cluster_config.h:175
bool has_peering_name() const
Definition: private_cluster_config.h:208
bool has_enable_private_nodes() const
Definition: private_cluster_config.h:129
void set_master_ipv4_cidr_block(const StringPiece &value)
Definition: private_cluster_config.h:199
bool get_enable_private_endpoint() const
Definition: private_cluster_config.h:107
void clear_enable_private_endpoint()
Definition: private_cluster_config.h:99
void set_public_endpoint(const StringPiece &value)
Definition: private_cluster_config.h:310
void clear_public_endpoint()
Definition: private_cluster_config.h:289
Definition: accelerator_config.h:39
void set_enable_private_endpoint(bool value)
Definition: private_cluster_config.h:119
Definition: accelerator_config.cc:41
const StringPiece GetTypeName() const
Definition: private_cluster_config.h:83
bool get_enable_private_nodes() const
Definition: private_cluster_config.h:144
bool has_enable_private_endpoint() const
Definition: private_cluster_config.h:92
const StringPiece get_master_ipv4_cidr_block() const
Definition: private_cluster_config.h:183
void set_peering_name(const StringPiece &value)
Definition: private_cluster_config.h:236
void clear_peering_name()
Definition: private_cluster_config.h:215
bool has_public_endpoint() const
Definition: private_cluster_config.h:282