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 booleanequals(Object o)inthashCode()static UpdateAppProfileRequestof(AppProfile appProfile)Builds a new update request using an existing AppProfile.static UpdateAppProfileRequestof(String instanceId, String appProfileId)Builds a new update request using an existing AppProfile.UpdateAppProfileRequestsetDescription(String description)Sets the optional long form description of the use case for the AppProfile.UpdateAppProfileRequestsetIgnoreWarnings(boolean value)Configures if safety warnings should be disabled.UpdateAppProfileRequestsetRoutingPolicy(AppProfile.RoutingPolicy routingPolicy)Sets the routing policy for all read/write requests that use this app profile.UpdateAppProfileRequesttoProto(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.
-
-