sqladmin  v1beta4
location_preference.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: 2019-06-11, 00:07:27 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Cloud SQL Admin API (sqladmin/v1beta4)
24 // Generated from:
25 // Version: v1beta4
26 // Revision: 76
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_SQLADMIN_API_LOCATION_PREFERENCE_H_
31 #define GOOGLE_SQLADMIN_API_LOCATION_PREFERENCE_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_sqladmin_api {
43 using namespace googleapis;
44 
54 class LocationPreference : public client::JsonCppData {
55  public:
61  static LocationPreference* New();
62 
68  explicit LocationPreference(const Json::Value& storage);
69 
75  explicit LocationPreference(Json::Value* storage);
76 
80  virtual ~LocationPreference();
81 
87  const StringPiece GetTypeName() const {
88  return StringPiece("google_sqladmin_api::LocationPreference");
89  }
90 
97  return Storage().isMember("followGaeApplication");
98  }
99 
104  MutableStorage()->removeMember("followGaeApplication");
105  }
106 
107 
111  const StringPiece get_follow_gae_application() const {
112  const Json::Value& v = Storage("followGaeApplication");
113  if (v == Json::Value::null) return StringPiece("");
114  return StringPiece(v.asCString());
115  }
116 
125  void set_follow_gae_application(const StringPiece& value) {
126  *MutableStorage("followGaeApplication") = value.data();
127  }
128 
134  bool has_kind() const {
135  return Storage().isMember("kind");
136  }
137 
141  void clear_kind() {
142  MutableStorage()->removeMember("kind");
143  }
144 
145 
149  const StringPiece get_kind() const {
150  const Json::Value& v = Storage("kind");
151  if (v == Json::Value::null) return StringPiece("");
152  return StringPiece(v.asCString());
153  }
154 
162  void set_kind(const StringPiece& value) {
163  *MutableStorage("kind") = value.data();
164  }
165 
171  bool has_zone() const {
172  return Storage().isMember("zone");
173  }
174 
178  void clear_zone() {
179  MutableStorage()->removeMember("zone");
180  }
181 
182 
186  const StringPiece get_zone() const {
187  const Json::Value& v = Storage("zone");
188  if (v == Json::Value::null) return StringPiece("");
189  return StringPiece(v.asCString());
190  }
191 
200  void set_zone(const StringPiece& value) {
201  *MutableStorage("zone") = value.data();
202  }
203 
204  private:
205  void operator=(const LocationPreference&);
206 }; // LocationPreference
207 } // namespace google_sqladmin_api
208 #endif // GOOGLE_SQLADMIN_API_LOCATION_PREFERENCE_H_
const StringPiece get_zone() const
Definition: location_preference.h:186
bool has_kind() const
Definition: location_preference.h:134
void clear_zone()
Definition: location_preference.h:178
const StringPiece GetTypeName() const
Definition: location_preference.h:87
void clear_kind()
Definition: location_preference.h:141
bool has_zone() const
Definition: location_preference.h:171
Definition: location_preference.h:54
bool has_follow_gae_application() const
Definition: location_preference.h:96
void set_kind(const StringPiece &value)
Definition: location_preference.h:162
Definition: acl_entry.cc:41
Definition: acl_entry.h:39
const StringPiece get_follow_gae_application() const
Definition: location_preference.h:111
void set_zone(const StringPiece &value)
Definition: location_preference.h:200
const StringPiece get_kind() const
Definition: location_preference.h:149
void set_follow_gae_application(const StringPiece &value)
Definition: location_preference.h:125
void clear_follow_gae_application()
Definition: location_preference.h:103