container  v1
start_ipr_otation_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_START_IPR_OTATION_REQUEST_H_
31 #define GOOGLE_CONTAINER_API_START_IPR_OTATION_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 namespace Json {
39 class Value;
40 } // namespace Json
41 
42 namespace google_container_api {
43 using namespace googleapis;
44 
51 class StartIPRotationRequest : public client::JsonCppData {
52  public:
58  static StartIPRotationRequest* New();
59 
65  explicit StartIPRotationRequest(const Json::Value& storage);
66 
72  explicit StartIPRotationRequest(Json::Value* storage);
73 
77  virtual ~StartIPRotationRequest();
78 
84  const StringPiece GetTypeName() const {
85  return StringPiece("google_container_api::StartIPRotationRequest");
86  }
87 
93  bool has_cluster_id() const {
94  return Storage().isMember("clusterId");
95  }
96 
101  MutableStorage()->removeMember("clusterId");
102  }
103 
104 
108  const StringPiece get_cluster_id() const {
109  const Json::Value& v = Storage("clusterId");
110  if (v == Json::Value::null) return StringPiece("");
111  return StringPiece(v.asCString());
112  }
113 
124  void set_cluster_id(const StringPiece& value) {
125  *MutableStorage("clusterId") = value.data();
126  }
127 
133  bool has_name() const {
134  return Storage().isMember("name");
135  }
136 
140  void clear_name() {
141  MutableStorage()->removeMember("name");
142  }
143 
144 
148  const StringPiece get_name() const {
149  const Json::Value& v = Storage("name");
150  if (v == Json::Value::null) return StringPiece("");
151  return StringPiece(v.asCString());
152  }
153 
162  void set_name(const StringPiece& value) {
163  *MutableStorage("name") = value.data();
164  }
165 
171  bool has_project_id() const {
172  return Storage().isMember("projectId");
173  }
174 
179  MutableStorage()->removeMember("projectId");
180  }
181 
182 
186  const StringPiece get_project_id() const {
187  const Json::Value& v = Storage("projectId");
188  if (v == Json::Value::null) return StringPiece("");
189  return StringPiece(v.asCString());
190  }
191 
203  void set_project_id(const StringPiece& value) {
204  *MutableStorage("projectId") = value.data();
205  }
206 
212  bool has_rotate_credentials() const {
213  return Storage().isMember("rotateCredentials");
214  }
215 
220  MutableStorage()->removeMember("rotateCredentials");
221  }
222 
223 
227  bool get_rotate_credentials() const {
228  const Json::Value& storage = Storage("rotateCredentials");
229  return client::JsonValueToCppValueHelper<bool >(storage);
230  }
231 
239  void set_rotate_credentials(bool value) {
240  client::SetJsonValueFromCppValueHelper<bool >(
241  value, MutableStorage("rotateCredentials"));
242  }
243 
249  bool has_zone() const {
250  return Storage().isMember("zone");
251  }
252 
256  void clear_zone() {
257  MutableStorage()->removeMember("zone");
258  }
259 
260 
264  const StringPiece get_zone() const {
265  const Json::Value& v = Storage("zone");
266  if (v == Json::Value::null) return StringPiece("");
267  return StringPiece(v.asCString());
268  }
269 
282  void set_zone(const StringPiece& value) {
283  *MutableStorage("zone") = value.data();
284  }
285 
286  private:
287  void operator=(const StartIPRotationRequest&);
288 }; // StartIPRotationRequest
289 } // namespace google_container_api
290 #endif // GOOGLE_CONTAINER_API_START_IPR_OTATION_REQUEST_H_
void set_cluster_id(const StringPiece &value)
Definition: start_ipr_otation_request.h:124
void clear_rotate_credentials()
Definition: start_ipr_otation_request.h:219
bool has_project_id() const
Definition: start_ipr_otation_request.h:171
void set_name(const StringPiece &value)
Definition: start_ipr_otation_request.h:162
const StringPiece get_cluster_id() const
Definition: start_ipr_otation_request.h:108
const StringPiece get_project_id() const
Definition: start_ipr_otation_request.h:186
void set_project_id(const StringPiece &value)
Definition: start_ipr_otation_request.h:203
bool has_zone() const
Definition: start_ipr_otation_request.h:249
void clear_name()
Definition: start_ipr_otation_request.h:140
Definition: start_ipr_otation_request.h:51
bool has_cluster_id() const
Definition: start_ipr_otation_request.h:93
Definition: accelerator_config.h:39
void set_rotate_credentials(bool value)
Definition: start_ipr_otation_request.h:239
void clear_cluster_id()
Definition: start_ipr_otation_request.h:100
Definition: accelerator_config.cc:41
void set_zone(const StringPiece &value)
Definition: start_ipr_otation_request.h:282
const StringPiece get_name() const
Definition: start_ipr_otation_request.h:148
const StringPiece GetTypeName() const
Definition: start_ipr_otation_request.h:84
const StringPiece get_zone() const
Definition: start_ipr_otation_request.h:264
bool has_rotate_credentials() const
Definition: start_ipr_otation_request.h:212
void clear_project_id()
Definition: start_ipr_otation_request.h:178
bool get_rotate_credentials() const
Definition: start_ipr_otation_request.h:227
bool has_name() const
Definition: start_ipr_otation_request.h:133
void clear_zone()
Definition: start_ipr_otation_request.h:256