com.google.cloud.bigtable.grpc
Class BigtableClusterName
- java.lang.Object
-
- com.google.cloud.bigtable.grpc.BigtableClusterName
-
public class BigtableClusterName extends Object
This class encapsulates a cluster name of the form projects/(projectId)/instances/(instanceId)/clusters/(clusterId)
-
-
Constructor Summary
Constructors Constructor and Description BigtableClusterName(String clusterName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description String
getClusterId()
String
getClusterName()
String
getInstanceId()
String
toSnapshotName(String snapshotId)
Create a fully qualified snapshot name based on the the clusterName and the snapshotId.String
toString()
-
-
-
Constructor Detail
-
BigtableClusterName
public BigtableClusterName(String clusterName)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classObject
- Returns:
- the fully qualified cluster name. This method returns the same result as
getClusterName()
.
-
getInstanceId
public String getInstanceId()
- Returns:
- The id of the instance that contains this cluster. It's the second group in the Cluster name: "projects/{projectId}/instances/{instanceId}/clusters/{clusterId}".
-
getClusterName
public String getClusterName()
- Returns:
- The name of this cluster. It will look like the following "projects/{projectId}/instances/{instanceId}/clusters/{clusterId}".
-
getClusterId
public String getClusterId()
- Returns:
- The id of this cluster. It's the third group in the Cluster name: "projects/{projectId}/instances/{instanceId}/clusters/{clusterId}".
-
toSnapshotName
public String toSnapshotName(String snapshotId)
Create a fully qualified snapshot name based on the the clusterName and the snapshotId. Snapshot name will look like: "projects/{projectId}/instances/{instanceId}/clusters/{clusterId}/snapshots/{snapshotId}".- Parameters:
snapshotId
- The id of the snapshot- Returns:
- A fully qualified snapshot name that contains the fully qualified cluster name as the parent and the snapshot name as the child.
-
-