15 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_HMAC_KEY_METADATA_H
16 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_HMAC_KEY_METADATA_H
18 #include "google/cloud/storage/version.h"
19 #include "google/cloud/status_or.h"
30 struct HmacKeyMetadataParser;
31 struct GrpcHmacKeyMetadataParser;
53 std::string
const&
access_id()
const {
return access_id_; }
54 std::string
const&
etag()
const {
return etag_; }
60 std::string
const&
id()
const {
return id_; }
61 std::string
const&
kind()
const {
return kind_; }
63 std::string
const&
project_id()
const {
return project_id_; }
65 return service_account_email_;
67 std::string
const&
state()
const {
return state_; }
69 state_ = std::move(v);
75 std::chrono::system_clock::time_point
updated()
const {
return updated_; }
82 friend struct internal::HmacKeyMetadataParser;
83 friend struct internal::GrpcHmacKeyMetadataParser;
87 std::string access_id_;
91 std::string project_id_;
92 std::string service_account_email_;
94 std::chrono::system_clock::time_point time_created_;
95 std::chrono::system_clock::time_point updated_;
105 lhs_time_created, lhs_updated) ==
108 rhs_time_created, rhs_updated);
112 return std::rel_ops::operator!=(lhs, rhs);