public final class CreateAppProfileRequest extends Object
An application profile, or app profile, stores settings that tell your Cloud Bigtable instance how to handle incoming requests from an application. When one of your applications connects to a Cloud Bigtable instance, it can specify an app profile, and Cloud Bigtable uses that app profile for any requests that the application sends over that connection.
Sample code:
AppProfile existingAppProfile = ...;
CreateAppProfileRequest appProfileRequest = CreateAppProfileRequest.of("my-instance", "my-new-app-profile")
.setRoutingPolicy(SingleClusterRoutingPolicy.of("my-cluster"));
for more details
Modifier and Type | Method and Description |
---|---|
static CreateAppProfileRequest |
of(String instanceId,
String appProfileId)
Builds a new request to create a new app profile in the specified instance.
|
CreateAppProfileRequest |
setDescription(String description)
Sets the optional long form description of the use case for the AppProfile.
|
CreateAppProfileRequest |
setIgnoreWarnings(boolean value)
Configures if safety warnings should be disabled.
|
CreateAppProfileRequest |
setRoutingPolicy(AppProfile.RoutingPolicy routingPolicy)
Sets the routing policy for all read/write requests that use this app profile.
|
CreateAppProfileRequest |
toProto(String projectId)
Creates the request protobuf.
|
public static CreateAppProfileRequest of(String instanceId, String appProfileId)
public CreateAppProfileRequest setIgnoreWarnings(boolean value)
public CreateAppProfileRequest setDescription(@Nonnull String description)
public CreateAppProfileRequest setRoutingPolicy(AppProfile.RoutingPolicy routingPolicy)
@InternalApi public CreateAppProfileRequest toProto(String projectId)
Copyright © 2019 Google LLC. All rights reserved.