Class UpdateInstanceRequest

java.lang.Object
com.google.cloud.bigtable.admin.v2.models.UpdateInstanceRequest

public class UpdateInstanceRequest extends Object
Parameters for updating an existing Bigtable instance.

Existing instances maybe updated to change their superficial appearance (ie. display name) and can also be upgraded from a DEVELOPMENT instance to a PRODUCTION instance. Please note that upgrading to a PRODUCTION instance cannot be undone.

  • Method Details

    • of

      public static UpdateInstanceRequest of(@Nonnull String instanceId)
      Builds a new request to update an existing instance with the specified id.
    • setDisplayName

      public UpdateInstanceRequest setDisplayName(@Nonnull String displayName)
      Changes the display name of the instance.
    • setProductionType

      public UpdateInstanceRequest setProductionType()
      Upgrades the instance from a DEVELOPMENT instance to a PRODUCTION instance. This cannot be undone.
    • setAllLabels

      public UpdateInstanceRequest setAllLabels(@Nonnull Map<String,String> labels)
      Replaces the labels associated with the instance.
      See Also:
    • toProto

      @InternalApi public com.google.bigtable.admin.v2.PartialUpdateInstanceRequest toProto(String projectId)
      Creates the request protobuf. This method is considered an internal implementation detail and not meant to be used by applications.