Class CreateAppProfileRequest (2.29.1)

public final class CreateAppProfileRequest

Parameters for creating a new Cloud Bigtable app profile.

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"));
 

See Also: AppProfilefor more details

Inheritance

java.lang.Object > CreateAppProfileRequest

Static Methods

of(String instanceId, String appProfileId)

public static CreateAppProfileRequest of(String instanceId, String appProfileId)

Builds a new request to create a new app profile in the specified instance.

Parameters
NameDescription
instanceIdString
appProfileIdString
Returns
TypeDescription
CreateAppProfileRequest

Methods

setDescription(String description)

public CreateAppProfileRequest setDescription(String description)

Sets the optional long form description of the use case for the AppProfile.

Parameter
NameDescription
descriptionString
Returns
TypeDescription
CreateAppProfileRequest

setIgnoreWarnings(boolean value)

public CreateAppProfileRequest setIgnoreWarnings(boolean value)

Configures if safety warnings should be disabled.

Parameter
NameDescription
valueboolean
Returns
TypeDescription
CreateAppProfileRequest

setIsolationPolicy(AppProfile.IsolationPolicy isolationPolicy)

public CreateAppProfileRequest setIsolationPolicy(AppProfile.IsolationPolicy isolationPolicy)

Sets the isolation policy for all read/write requests that use this app profile.

Parameter
NameDescription
isolationPolicyAppProfile.IsolationPolicy
Returns
TypeDescription
CreateAppProfileRequest

setRoutingPolicy(AppProfile.RoutingPolicy routingPolicy)

public CreateAppProfileRequest setRoutingPolicy(AppProfile.RoutingPolicy routingPolicy)

Sets the routing policy for all read/write requests that use this app profile.

Parameter
NameDescription
routingPolicyAppProfile.RoutingPolicy
Returns
TypeDescription
CreateAppProfileRequest

toProto(String projectId)

public CreateAppProfileRequest toProto(String projectId)

Creates the request protobuf. This method is considered an internal implementation detail and not meant to be used by applications.

Parameter
NameDescription
projectIdString
Returns
TypeDescription
com.google.bigtable.admin.v2.CreateAppProfileRequest