public class UpdateInstanceRequest extends Object
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.
Modifier and Type | Method and Description |
---|---|
static UpdateInstanceRequest |
of(String instanceId)
Builds a new request to update an existing instance with the specified id.
|
UpdateInstanceRequest |
setAllLabels(Map<String,String> labels)
Replaces the labels associated with the instance.
|
UpdateInstanceRequest |
setDisplayName(String displayName)
Changes the display name of the instance.
|
UpdateInstanceRequest |
setProductionType()
Upgrades the instance from a DEVELOPMENT instance to a PRODUCTION instance.
|
com.google.bigtable.admin.v2.PartialUpdateInstanceRequest |
toProto(String projectId)
Creates the request protobuf.
|
public static UpdateInstanceRequest of(@Nonnull String instanceId)
public UpdateInstanceRequest setDisplayName(@Nonnull String displayName)
public UpdateInstanceRequest setProductionType()
public UpdateInstanceRequest setAllLabels(@Nonnull Map<String,String> labels)
@InternalApi public com.google.bigtable.admin.v2.PartialUpdateInstanceRequest toProto(String projectId)
Copyright © 2019 Google LLC. All rights reserved.