Package com.posthog.server
Class PostHogFeatureFlagOptions.Builder
-
- All Implemented Interfaces:
public final class PostHogFeatureFlagOptions.Builder
-
-
Constructor Summary
Constructors Constructor Description PostHogFeatureFlagOptions.Builder()
-
Method Summary
Modifier and Type Method Description final ObjectgetDefaultValue()final UnitsetDefaultValue(Object defaultValue)final Map<String, String>getGroups()final UnitsetGroups(Map<String, String> groups)final Map<String, Object>getPersonProperties()final UnitsetPersonProperties(Map<String, Object> personProperties)final Map<String, Map<String, Object>>getGroupProperties()final UnitsetGroupProperties(Map<String, Map<String, Object>> groupProperties)final PostHogFeatureFlagOptions.BuilderdefaultValue(Object defaultValue)Sets the default value to return if the feature flag is not found or not enabled final PostHogFeatureFlagOptions.Buildergroup(String key, String propValue)Add a single custom property to the capture options final PostHogFeatureFlagOptions.Buildergroups(Map<String, String> groups)Appends multiple groups to the feature flag options final PostHogFeatureFlagOptions.BuilderpersonProperty(String key, Object propValue)Adds a single user property to the capture options final PostHogFeatureFlagOptions.BuilderpersonProperties(Map<String, Object> userProperties)Appends multiple user properties to the capture options. final PostHogFeatureFlagOptions.BuildergroupProperty(String group, String key, Object propValue)Adds a single user property (set once) to the capture options. final PostHogFeatureFlagOptions.BuildergroupProperties(Map<String, Map<String, Object>> groupProperties)Appends multiple user properties (set once) to the capture options. final PostHogFeatureFlagOptionsbuild()-
-
Method Detail
-
getDefaultValue
final Object getDefaultValue()
-
setDefaultValue
final Unit setDefaultValue(Object defaultValue)
-
getPersonProperties
final Map<String, Object> getPersonProperties()
-
setPersonProperties
final Unit setPersonProperties(Map<String, Object> personProperties)
-
defaultValue
final PostHogFeatureFlagOptions.Builder defaultValue(Object defaultValue)
Sets the default value to return if the feature flag is not found or not enabled
-
group
final PostHogFeatureFlagOptions.Builder group(String key, String propValue)
Add a single custom property to the capture options
-
groups
final PostHogFeatureFlagOptions.Builder groups(Map<String, String> groups)
Appends multiple groups to the feature flag options
-
personProperty
final PostHogFeatureFlagOptions.Builder personProperty(String key, Object propValue)
Adds a single user property to the capture options
-
personProperties
final PostHogFeatureFlagOptions.Builder personProperties(Map<String, Object> userProperties)
Appends multiple user properties to the capture options.
-
groupProperty
final PostHogFeatureFlagOptions.Builder groupProperty(String group, String key, Object propValue)
Adds a single user property (set once) to the capture options.
-
groupProperties
final PostHogFeatureFlagOptions.Builder groupProperties(Map<String, Map<String, Object>> groupProperties)
Appends multiple user properties (set once) to the capture options.
-
build
final PostHogFeatureFlagOptions build()
-
-
-
-