container  v1
set_node_pool_autoscaling_request.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_SET_NODE_POOL_AUTOSCALING_REQUEST_H_
31 #define GOOGLE_CONTAINER_API_SET_NODE_POOL_AUTOSCALING_REQUEST_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/node_pool_autoscaling.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_container_api {
45 using namespace googleapis;
46 
52 class SetNodePoolAutoscalingRequest : public client::JsonCppData {
53  public:
59  static SetNodePoolAutoscalingRequest* New();
60 
66  explicit SetNodePoolAutoscalingRequest(const Json::Value& storage);
67 
73  explicit SetNodePoolAutoscalingRequest(Json::Value* storage);
74 
79 
85  const StringPiece GetTypeName() const {
86  return StringPiece("google_container_api::SetNodePoolAutoscalingRequest");
87  }
88 
94  bool has_autoscaling() const {
95  return Storage().isMember("autoscaling");
96  }
97 
102  MutableStorage()->removeMember("autoscaling");
103  }
104 
105 
109  const NodePoolAutoscaling get_autoscaling() const;
110 
119  NodePoolAutoscaling mutable_autoscaling();
120 
126  bool has_cluster_id() const {
127  return Storage().isMember("clusterId");
128  }
129 
134  MutableStorage()->removeMember("clusterId");
135  }
136 
137 
141  const StringPiece get_cluster_id() const {
142  const Json::Value& v = Storage("clusterId");
143  if (v == Json::Value::null) return StringPiece("");
144  return StringPiece(v.asCString());
145  }
146 
157  void set_cluster_id(const StringPiece& value) {
158  *MutableStorage("clusterId") = value.data();
159  }
160 
166  bool has_name() const {
167  return Storage().isMember("name");
168  }
169 
173  void clear_name() {
174  MutableStorage()->removeMember("name");
175  }
176 
177 
181  const StringPiece get_name() const {
182  const Json::Value& v = Storage("name");
183  if (v == Json::Value::null) return StringPiece("");
184  return StringPiece(v.asCString());
185  }
186 
196  void set_name(const StringPiece& value) {
197  *MutableStorage("name") = value.data();
198  }
199 
205  bool has_node_pool_id() const {
206  return Storage().isMember("nodePoolId");
207  }
208 
213  MutableStorage()->removeMember("nodePoolId");
214  }
215 
216 
220  const StringPiece get_node_pool_id() const {
221  const Json::Value& v = Storage("nodePoolId");
222  if (v == Json::Value::null) return StringPiece("");
223  return StringPiece(v.asCString());
224  }
225 
236  void set_node_pool_id(const StringPiece& value) {
237  *MutableStorage("nodePoolId") = value.data();
238  }
239 
245  bool has_project_id() const {
246  return Storage().isMember("projectId");
247  }
248 
253  MutableStorage()->removeMember("projectId");
254  }
255 
256 
260  const StringPiece get_project_id() const {
261  const Json::Value& v = Storage("projectId");
262  if (v == Json::Value::null) return StringPiece("");
263  return StringPiece(v.asCString());
264  }
265 
277  void set_project_id(const StringPiece& value) {
278  *MutableStorage("projectId") = value.data();
279  }
280 
286  bool has_zone() const {
287  return Storage().isMember("zone");
288  }
289 
293  void clear_zone() {
294  MutableStorage()->removeMember("zone");
295  }
296 
297 
301  const StringPiece get_zone() const {
302  const Json::Value& v = Storage("zone");
303  if (v == Json::Value::null) return StringPiece("");
304  return StringPiece(v.asCString());
305  }
306 
319  void set_zone(const StringPiece& value) {
320  *MutableStorage("zone") = value.data();
321  }
322 
323  private:
324  void operator=(const SetNodePoolAutoscalingRequest&);
325 }; // SetNodePoolAutoscalingRequest
326 } // namespace google_container_api
327 #endif // GOOGLE_CONTAINER_API_SET_NODE_POOL_AUTOSCALING_REQUEST_H_
bool has_name() const
Definition: set_node_pool_autoscaling_request.h:166
void set_cluster_id(const StringPiece &value)
Definition: set_node_pool_autoscaling_request.h:157
void clear_node_pool_id()
Definition: set_node_pool_autoscaling_request.h:212
const StringPiece get_cluster_id() const
Definition: set_node_pool_autoscaling_request.h:141
void set_zone(const StringPiece &value)
Definition: set_node_pool_autoscaling_request.h:319
void clear_autoscaling()
Definition: set_node_pool_autoscaling_request.h:101
bool has_autoscaling() const
Definition: set_node_pool_autoscaling_request.h:94
bool has_project_id() const
Definition: set_node_pool_autoscaling_request.h:245
void clear_zone()
Definition: set_node_pool_autoscaling_request.h:293
bool has_zone() const
Definition: set_node_pool_autoscaling_request.h:286
void clear_cluster_id()
Definition: set_node_pool_autoscaling_request.h:133
void set_name(const StringPiece &value)
Definition: set_node_pool_autoscaling_request.h:196
void clear_name()
Definition: set_node_pool_autoscaling_request.h:173
Definition: node_pool_autoscaling.h:51
Definition: accelerator_config.h:39
const StringPiece get_project_id() const
Definition: set_node_pool_autoscaling_request.h:260
const StringPiece get_node_pool_id() const
Definition: set_node_pool_autoscaling_request.h:220
Definition: accelerator_config.cc:41
bool has_node_pool_id() const
Definition: set_node_pool_autoscaling_request.h:205
void clear_project_id()
Definition: set_node_pool_autoscaling_request.h:252
const StringPiece GetTypeName() const
Definition: set_node_pool_autoscaling_request.h:85
Definition: set_node_pool_autoscaling_request.h:52
const StringPiece get_zone() const
Definition: set_node_pool_autoscaling_request.h:301
const StringPiece get_name() const
Definition: set_node_pool_autoscaling_request.h:181
void set_node_pool_id(const StringPiece &value)
Definition: set_node_pool_autoscaling_request.h:236
void set_project_id(const StringPiece &value)
Definition: set_node_pool_autoscaling_request.h:277
bool has_cluster_id() const
Definition: set_node_pool_autoscaling_request.h:126