container  v1
set_addons_config_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_ADDONS_CONFIG_REQUEST_H_
31 #define GOOGLE_CONTAINER_API_SET_ADDONS_CONFIG_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/addons_config.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_container_api {
45 using namespace googleapis;
46 
52 class SetAddonsConfigRequest : public client::JsonCppData {
53  public:
59  static SetAddonsConfigRequest* New();
60 
66  explicit SetAddonsConfigRequest(const Json::Value& storage);
67 
73  explicit SetAddonsConfigRequest(Json::Value* storage);
74 
78  virtual ~SetAddonsConfigRequest();
79 
85  const StringPiece GetTypeName() const {
86  return StringPiece("google_container_api::SetAddonsConfigRequest");
87  }
88 
94  bool has_addons_config() const {
95  return Storage().isMember("addonsConfig");
96  }
97 
102  MutableStorage()->removeMember("addonsConfig");
103  }
104 
105 
109  const AddonsConfig get_addons_config() const;
110 
121  AddonsConfig mutable_addonsConfig();
122 
128  bool has_cluster_id() const {
129  return Storage().isMember("clusterId");
130  }
131 
136  MutableStorage()->removeMember("clusterId");
137  }
138 
139 
143  const StringPiece get_cluster_id() const {
144  const Json::Value& v = Storage("clusterId");
145  if (v == Json::Value::null) return StringPiece("");
146  return StringPiece(v.asCString());
147  }
148 
159  void set_cluster_id(const StringPiece& value) {
160  *MutableStorage("clusterId") = value.data();
161  }
162 
168  bool has_name() const {
169  return Storage().isMember("name");
170  }
171 
175  void clear_name() {
176  MutableStorage()->removeMember("name");
177  }
178 
179 
183  const StringPiece get_name() const {
184  const Json::Value& v = Storage("name");
185  if (v == Json::Value::null) return StringPiece("");
186  return StringPiece(v.asCString());
187  }
188 
197  void set_name(const StringPiece& value) {
198  *MutableStorage("name") = value.data();
199  }
200 
206  bool has_project_id() const {
207  return Storage().isMember("projectId");
208  }
209 
214  MutableStorage()->removeMember("projectId");
215  }
216 
217 
221  const StringPiece get_project_id() const {
222  const Json::Value& v = Storage("projectId");
223  if (v == Json::Value::null) return StringPiece("");
224  return StringPiece(v.asCString());
225  }
226 
238  void set_project_id(const StringPiece& value) {
239  *MutableStorage("projectId") = value.data();
240  }
241 
247  bool has_zone() const {
248  return Storage().isMember("zone");
249  }
250 
254  void clear_zone() {
255  MutableStorage()->removeMember("zone");
256  }
257 
258 
262  const StringPiece get_zone() const {
263  const Json::Value& v = Storage("zone");
264  if (v == Json::Value::null) return StringPiece("");
265  return StringPiece(v.asCString());
266  }
267 
280  void set_zone(const StringPiece& value) {
281  *MutableStorage("zone") = value.data();
282  }
283 
284  private:
285  void operator=(const SetAddonsConfigRequest&);
286 }; // SetAddonsConfigRequest
287 } // namespace google_container_api
288 #endif // GOOGLE_CONTAINER_API_SET_ADDONS_CONFIG_REQUEST_H_
const StringPiece get_zone() const
Definition: set_addons_config_request.h:262
Definition: set_addons_config_request.h:52
bool has_name() const
Definition: set_addons_config_request.h:168
void set_project_id(const StringPiece &value)
Definition: set_addons_config_request.h:238
void clear_cluster_id()
Definition: set_addons_config_request.h:135
bool has_addons_config() const
Definition: set_addons_config_request.h:94
void clear_addons_config()
Definition: set_addons_config_request.h:101
Definition: addons_config.h:56
const StringPiece get_name() const
Definition: set_addons_config_request.h:183
const StringPiece GetTypeName() const
Definition: set_addons_config_request.h:85
bool has_project_id() const
Definition: set_addons_config_request.h:206
Definition: accelerator_config.h:39
Definition: accelerator_config.cc:41
void clear_project_id()
Definition: set_addons_config_request.h:213
void clear_zone()
Definition: set_addons_config_request.h:254
void set_name(const StringPiece &value)
Definition: set_addons_config_request.h:197
void set_zone(const StringPiece &value)
Definition: set_addons_config_request.h:280
const StringPiece get_cluster_id() const
Definition: set_addons_config_request.h:143
const StringPiece get_project_id() const
Definition: set_addons_config_request.h:221
void set_cluster_id(const StringPiece &value)
Definition: set_addons_config_request.h:159
bool has_cluster_id() const
Definition: set_addons_config_request.h:128
bool has_zone() const
Definition: set_addons_config_request.h:247
void clear_name()
Definition: set_addons_config_request.h:175