Google Cloud Spanner C++ Client 2.13.0
A C++ Client Library for Google Cloud Spanner
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
google::cloud::spanner::Backup Class Reference

This class identifies a Cloud Spanner Backup. More...

#include <google/cloud/spanner/backup.h>

Public Member Functions

 Backup (Instance instance, std::string backup_id)
 
Instance const & instance () const
 Returns the Instance containing this backup. More...
 
std::string const & backup_id () const
 Returns the Backup ID. More...
 
std::string FullName () const
 Returns the fully qualified backup name as a string of the form: "projects/<project-id>/instances/<instance-id>/backups/<backup-id>". More...
 
Copy and move
 Backup (Backup const &)=default
 
Backupoperator= (Backup const &)=default
 
 Backup (Backup &&)=default
 
Backupoperator= (Backup &&)=default
 

Friends

std::ostream & operator<< (std::ostream &, Backup const &)
 Output the FullName() format. More...
 
Equality operators
bool operator== (Backup const &a, Backup const &b)
 
bool operator!= (Backup const &a, Backup const &b)
 

Detailed Description

This class identifies a Cloud Spanner Backup.

A Cloud Spanner backup is identified by an Instance and a backup_id.

Note
This class makes no effort to validate the components of the backup name. It is the application's responsibility to provide valid project, instance, and backup ids. Passing invalid values will not be checked until the backup name is used in a RPC to spanner.

Constructor & Destructor Documentation

◆ Backup() [1/3]

google::cloud::spanner::Backup::Backup ( Instance  instance,
std::string  backup_id 
)

◆ Backup() [2/3]

google::cloud::spanner::Backup::Backup ( Backup const &  )
default

◆ Backup() [3/3]

google::cloud::spanner::Backup::Backup ( Backup &&  )
default

Member Function Documentation

◆ backup_id()

std::string const & google::cloud::spanner::Backup::backup_id ( ) const
inline

Returns the Backup ID.

◆ FullName()

std::string google::cloud::spanner::Backup::FullName ( ) const

Returns the fully qualified backup name as a string of the form: "projects/<project-id>/instances/<instance-id>/backups/<backup-id>".

◆ instance()

Instance const & google::cloud::spanner::Backup::instance ( ) const
inline

Returns the Instance containing this backup.

◆ operator=() [1/2]

Backup & google::cloud::spanner::Backup::operator= ( Backup &&  )
default

◆ operator=() [2/2]

Backup & google::cloud::spanner::Backup::operator= ( Backup const &  )
default

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( Backup const &  a,
Backup const &  b 
)
friend

◆ operator<<

std::ostream & operator<< ( std::ostream &  ,
Backup const &   
)
friend

Output the FullName() format.

◆ operator==

bool operator== ( Backup const &  a,
Backup const &  b 
)
friend