15 #include "google/cloud/spanner/instance.h"
25 : project_
(std::move(project)
), instance_id_(std::move(instance_id)) {}
31 return project_
.FullName() +
"/instances/" + instance_id_;
35 return a.project_
== b.project_ && a.instance_id_ == b.instance_id_;
40 std::ostream& operator<<(std::ostream& os,
Instance const& in) {
45 std::regex re(
"projects/([^/]+)/instances/([^/]+)");
47 if (!std::regex_match(full_name, matches, re)) {
49 "Improperly formatted Instance: " + full_name
);