15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_BACKUP_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_BACKUP_H
18#include "google/cloud/spanner/instance.h"
19#include "google/cloud/spanner/version.h"
20#include "google/cloud/status_or.h"
27GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
30
31
32
33
34
35
36
37
38
42
43
44
59 std::string
const&
backup_id()
const {
return backup_id_; }
62
63
64
74 friend std::ostream& operator<<(std::ostream&,
Backup const&);
78 std::string backup_id_;
82
83
84
87GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
This class identifies a Cloud Spanner Backup.
Definition: backup.h:39
std::string FullName() const
Returns the fully qualified backup name as a string of the form: "projects/<project-id>/instances/<in...
Backup(Instance instance, std::string backup_id)
std::string const & backup_id() const
Returns the Backup ID.
Definition: backup.h:59
Backup & operator=(Backup const &)=default
Backup(Backup const &)=default
friend bool operator==(Backup const &a, Backup const &b)
Backup & operator=(Backup &&)=default
Backup(Backup &&)=default
friend bool operator!=(Backup const &a, Backup const &b)
Instance const & instance() const
Returns the Instance containing this backup.
Definition: backup.h:56
This class identifies a Cloud Spanner Instance.
Definition: instance.h:42
Contains all the Cloud Spanner C++ client types and functions.
Definition: backoff_policy.h:23
StatusOr< Backup > MakeBackup(std::string const &full_name)
Constructs a Backup from the given full_name.