30 #ifndef GOOGLE_COMPUTE_API_NETWORK_PEERING_H_ 31 #define GOOGLE_COMPUTE_API_NETWORK_PEERING_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 86 return StringPiece(
"google_compute_api::NetworkPeering");
95 return Storage().isMember(
"autoCreateRoutes");
102 MutableStorage()->removeMember(
"autoCreateRoutes");
110 const Json::Value& storage = Storage(
"autoCreateRoutes");
111 return client::JsonValueToCppValueHelper<bool >(storage);
127 client::SetJsonValueFromCppValueHelper<bool >(
128 value, MutableStorage(
"autoCreateRoutes"));
137 return Storage().isMember(
"exchangeSubnetRoutes");
144 MutableStorage()->removeMember(
"exchangeSubnetRoutes");
152 const Json::Value& storage = Storage(
"exchangeSubnetRoutes");
153 return client::JsonValueToCppValueHelper<bool >(storage);
168 client::SetJsonValueFromCppValueHelper<bool >(
169 value, MutableStorage(
"exchangeSubnetRoutes"));
178 return Storage().isMember(
"name");
185 MutableStorage()->removeMember(
"name");
193 const Json::Value& v = Storage(
"name");
194 if (v == Json::Value::null)
return StringPiece(
"");
195 return StringPiece(v.asCString());
211 *MutableStorage(
"name") = value.data();
220 return Storage().isMember(
"network");
227 MutableStorage()->removeMember(
"network");
235 const Json::Value& v = Storage(
"network");
236 if (v == Json::Value::null)
return StringPiece(
"");
237 return StringPiece(v.asCString());
251 *MutableStorage(
"network") = value.data();
260 return Storage().isMember(
"state");
267 MutableStorage()->removeMember(
"state");
275 const Json::Value& v = Storage(
"state");
276 if (v == Json::Value::null)
return StringPiece(
"");
277 return StringPiece(v.asCString());
288 *MutableStorage(
"state") = value.data();
297 return Storage().isMember(
"stateDetails");
304 MutableStorage()->removeMember(
"stateDetails");
312 const Json::Value& v = Storage(
"stateDetails");
313 if (v == Json::Value::null)
return StringPiece(
"");
314 return StringPiece(v.asCString());
325 *MutableStorage(
"stateDetails") = value.data();
332 #endif // GOOGLE_COMPUTE_API_NETWORK_PEERING_H_ bool has_network() const
Definition: network_peering.h:219
void clear_name()
Definition: network_peering.h:184
void clear_auto_create_routes()
Definition: network_peering.h:101
const StringPiece GetTypeName() const
Definition: network_peering.h:85
void clear_network()
Definition: network_peering.h:226
bool get_exchange_subnet_routes() const
Definition: network_peering.h:151
void set_name(const StringPiece &value)
Definition: network_peering.h:210
void set_exchange_subnet_routes(bool value)
Definition: network_peering.h:167
const StringPiece get_name() const
Definition: network_peering.h:192
bool has_name() const
Definition: network_peering.h:177
void set_auto_create_routes(bool value)
Definition: network_peering.h:126
const StringPiece get_state() const
Definition: network_peering.h:274
const StringPiece get_network() const
Definition: network_peering.h:234
void clear_exchange_subnet_routes()
Definition: network_peering.h:143
Definition: accelerator_config.h:39
void set_network(const StringPiece &value)
Definition: network_peering.h:250
void clear_state()
Definition: network_peering.h:266
void set_state(const StringPiece &value)
Definition: network_peering.h:287
void set_state_details(const StringPiece &value)
Definition: network_peering.h:324
Definition: accelerator_config.cc:41
bool has_auto_create_routes() const
Definition: network_peering.h:94
bool has_state() const
Definition: network_peering.h:259
bool has_exchange_subnet_routes() const
Definition: network_peering.h:136
bool get_auto_create_routes() const
Definition: network_peering.h:109
const StringPiece get_state_details() const
Definition: network_peering.h:311
bool has_state_details() const
Definition: network_peering.h:296
void clear_state_details()
Definition: network_peering.h:303
Definition: network_peering.h:52