Class UpdateAppProfileRequest
- java.lang.Object
-
- com.google.cloud.bigtable.admin.v2.models.UpdateAppProfileRequest
-
public final class UpdateAppProfileRequest extends Object
Parameters for updating an existing Cloud Bigtable app profile.Examples
AppProfile existingAppProfile = ...; UpdateAppProfileRequest appProfileRequest = UpdateAppProfileRequest.of(existingAppProfile) .setRoutingPolicy(SingleClusterRoutingPolicy.of("my-cluster"));
- See Also:
for more details
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.UpdateAppProfileRequest
toProto(String projectId)
Creates the request protobuf.
-
-
-
Method Detail
-
of
public static UpdateAppProfileRequest of(@Nonnull AppProfile appProfile)
Builds a new update request using an existing AppProfile.This variant is recommended over
of(String, String)
because it provides optimistic concurrency control using etags.
-
of
public static UpdateAppProfileRequest of(@Nonnull String instanceId, @Nonnull String appProfileId)
Builds a new update request using an existing AppProfile.
-
setIgnoreWarnings
public UpdateAppProfileRequest setIgnoreWarnings(boolean value)
Configures if safety warnings should be disabled.
-
setDescription
public UpdateAppProfileRequest setDescription(@Nonnull String description)
Sets the optional long form description of the use case for the AppProfile.
-
setRoutingPolicy
public UpdateAppProfileRequest setRoutingPolicy(@Nonnull AppProfile.RoutingPolicy routingPolicy)
Sets the routing policy for all read/write requests that use this app profile.
-
toProto
@InternalApi public UpdateAppProfileRequest toProto(String projectId)
Creates the request protobuf. This method is considered an internal implementation detail and not meant to be used by applications.
-
-