public final class UpdateAppProfileRequest extends Object
Examples
AppProfile existingAppProfile = ...;
UpdateAppProfileRequest appProfileRequest = UpdateAppProfileRequest.of(existingAppProfile)
.setRoutingPolicy(SingleClusterRoutingPolicy.of("my-cluster"));
for more details
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
static UpdateAppProfileRequest |
of(AppProfile appProfile)
Builds a new update request using an existing AppProfile.
|
static UpdateAppProfileRequest |
of(String instanceId,
String appProfileId)
Builds a new update request using an existing AppProfile.
|
UpdateAppProfileRequest |
setDescription(String description)
Sets the optional long form description of the use case for the AppProfile.
|
UpdateAppProfileRequest |
setIgnoreWarnings(boolean value)
Configures if safety warnings should be disabled.
|
UpdateAppProfileRequest |
setRoutingPolicy(AppProfile.RoutingPolicy routingPolicy)
Sets the routing policy for all read/write requests that use this app profile.
|
com.google.bigtable.admin.v2.UpdateAppProfileRequest |
toProto(String projectId)
Creates the request protobuf.
|
public static UpdateAppProfileRequest of(@Nonnull AppProfile appProfile)
This variant is recommended over of(String, String)
because it provides optimistic
concurrency control using etags.
public static UpdateAppProfileRequest of(@Nonnull String instanceId, @Nonnull String appProfileId)
public UpdateAppProfileRequest setIgnoreWarnings(boolean value)
public UpdateAppProfileRequest setDescription(@Nonnull String description)
public UpdateAppProfileRequest setRoutingPolicy(@Nonnull AppProfile.RoutingPolicy routingPolicy)
@InternalApi public com.google.bigtable.admin.v2.UpdateAppProfileRequest toProto(String projectId)
Copyright © 2019 Google LLC. All rights reserved.