30 #ifndef GOOGLE_COMPUTE_API_USAGE_EXPORT_LOCATION_H_ 31 #define GOOGLE_COMPUTE_API_USAGE_EXPORT_LOCATION_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_compute_api::UsageExportLocation");
94 return Storage().isMember(
"bucketName");
101 MutableStorage()->removeMember(
"bucketName");
109 const Json::Value& v = Storage(
"bucketName");
110 if (v == Json::Value::null)
return StringPiece(
"");
111 return StringPiece(v.asCString());
126 *MutableStorage(
"bucketName") = value.data();
135 return Storage().isMember(
"reportNamePrefix");
142 MutableStorage()->removeMember(
"reportNamePrefix");
150 const Json::Value& v = Storage(
"reportNamePrefix");
151 if (v == Json::Value::null)
return StringPiece(
"");
152 return StringPiece(v.asCString());
167 *MutableStorage(
"reportNamePrefix") = value.data();
174 #endif // GOOGLE_COMPUTE_API_USAGE_EXPORT_LOCATION_H_ Definition: usage_export_location.h:51
const StringPiece get_bucket_name() const
Definition: usage_export_location.h:108
const StringPiece GetTypeName() const
Definition: usage_export_location.h:84
void clear_report_name_prefix()
Definition: usage_export_location.h:141
Definition: accelerator_config.h:39
bool has_report_name_prefix() const
Definition: usage_export_location.h:134
Definition: accelerator_config.cc:41
bool has_bucket_name() const
Definition: usage_export_location.h:93
const StringPiece get_report_name_prefix() const
Definition: usage_export_location.h:149
void set_bucket_name(const StringPiece &value)
Definition: usage_export_location.h:125
void set_report_name_prefix(const StringPiece &value)
Definition: usage_export_location.h:166
void clear_bucket_name()
Definition: usage_export_location.h:100