30 #ifndef GOOGLE_CLOUDBILLING_API_BILLING_ACCOUNT_H_ 31 #define GOOGLE_CLOUDBILLING_API_BILLING_ACCOUNT_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 85 return StringPiece(
"google_cloudbilling_api::BillingAccount");
94 return Storage().isMember(
"displayName");
101 MutableStorage()->removeMember(
"displayName");
109 const Json::Value& v = Storage(
"displayName");
110 if (v == Json::Value::null)
return StringPiece(
"");
111 return StringPiece(v.asCString());
123 *MutableStorage(
"displayName") = value.data();
132 return Storage().isMember(
"masterBillingAccount");
139 MutableStorage()->removeMember(
"masterBillingAccount");
147 const Json::Value& v = Storage(
"masterBillingAccount");
148 if (v == Json::Value::null)
return StringPiece(
"");
149 return StringPiece(v.asCString());
164 *MutableStorage(
"masterBillingAccount") = value.data();
173 return Storage().isMember(
"name");
180 MutableStorage()->removeMember(
"name");
188 const Json::Value& v = Storage(
"name");
189 if (v == Json::Value::null)
return StringPiece(
"");
190 return StringPiece(v.asCString());
205 *MutableStorage(
"name") = value.data();
214 return Storage().isMember(
"open");
221 MutableStorage()->removeMember(
"open");
229 const Json::Value& storage = Storage(
"open");
230 return client::JsonValueToCppValueHelper<bool >(storage);
244 client::SetJsonValueFromCppValueHelper<bool >(
245 value, MutableStorage(
"open"));
252 #endif // GOOGLE_CLOUDBILLING_API_BILLING_ACCOUNT_H_ const StringPiece get_master_billing_account() const
Definition: billing_account.h:146
void clear_display_name()
Definition: billing_account.h:100
bool has_open() const
Definition: billing_account.h:213
void set_open(bool value)
Definition: billing_account.h:243
const StringPiece GetTypeName() const
Definition: billing_account.h:84
void clear_master_billing_account()
Definition: billing_account.h:138
Definition: billing_account.h:51
void clear_name()
Definition: billing_account.h:179
const StringPiece get_display_name() const
Definition: billing_account.h:108
bool has_master_billing_account() const
Definition: billing_account.h:131
const StringPiece get_name() const
Definition: billing_account.h:187
void clear_open()
Definition: billing_account.h:220
void set_display_name(const StringPiece &value)
Definition: billing_account.h:122
Definition: aggregation_info.h:39
bool has_name() const
Definition: billing_account.h:172
void set_master_billing_account(const StringPiece &value)
Definition: billing_account.h:163
bool has_display_name() const
Definition: billing_account.h:93
bool get_open() const
Definition: billing_account.h:228
void set_name(const StringPiece &value)
Definition: billing_account.h:204
Definition: aggregation_info.cc:42