com.google.cloud.bigtable.grpc
Class BigtableSnapshotName
- java.lang.Object
-
- com.google.cloud.bigtable.grpc.BigtableSnapshotName
-
public class BigtableSnapshotName extends Object
This class encapsulates a Snapshot name of the form projects/(projectId)/instances/(instanceId)/clusters/(clusterId)
-
-
Constructor Summary
Constructors Constructor and Description BigtableSnapshotName(String snapshotName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description String
getClusterId()
String
getInstanceId()
String
getSnapshotId()
String
getSnapshotName()
String
toString()
Returns the fully qualified Snapshot name.
-
-
-
Constructor Detail
-
BigtableSnapshotName
public BigtableSnapshotName(String snapshotName)
-
-
Method Detail
-
toString
public String toString()
Returns the fully qualified Snapshot name. This method returns the same result asgetSnapshotName()
.
-
getInstanceId
public String getInstanceId()
- Returns:
- The id of the instance that contains this cluster. It's the second group in the Snapshot name: "projects/{projectId}/instances/{instanceId}/clusters/{clusterId}/snapshots/{snapshotId}".
-
getClusterId
public String getClusterId()
- Returns:
- The id of this cluster. It's the third group in the Snapshot name: "projects/{projectId}/instances/{instanceId}/clusters/{clusterId}/snapshots/{snapshotId}".
-
getSnapshotId
public String getSnapshotId()
- Returns:
- The id of this snapshot. It's the fourth group in the Snapshot name: "projects/{projectId}/instances/{instanceId}/clusters/{clusterId}/snapshots/{snapshotId}".
-
getSnapshotName
public String getSnapshotName()
- Returns:
- The name of this snapshot. It will look like the following "projects/{projectId}/instances/{instanceId}/clusters/{clusterId}/snapshots/{snapshotId}".
-
-