Package com.mparticle
Class MParticleOptions.DataplanOptions.Builder
- java.lang.Object
-
- com.mparticle.MParticleOptions.DataplanOptions.Builder
-
- Enclosing class:
- MParticleOptions.DataplanOptions
public static class MParticleOptions.DataplanOptions.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MParticleOptions.DataplanOptions.Builder
blockEventAttributes(boolean blockEventAttributes)
This flag determines if unplanned event attributes should be blockedMParticleOptions.DataplanOptions.Builder
blockEvents(boolean blockEvents)
This flag determines if unplanned events should be blockedMParticleOptions.DataplanOptions.Builder
blockUserAttributes(boolean blockUserAttributes)
This flag determines if unplanned user attributes should be blockedMParticleOptions.DataplanOptions.Builder
blockUserIdentities(boolean blockUserIdentities)
This flag determines if unplanned user identities should be blockedMParticleOptions.DataplanOptions
build()
Transform the Builder instance into an immutableMParticleOptions.DataplanOptions
instance.MParticleOptions.DataplanOptions.Builder
dataplanVersion(java.lang.String dataplanVersion)
Sets/Gets the Data Plan Version to use when evaluating block and transformation settingsMParticleOptions.DataplanOptions.Builder
dataplanVersion(java.util.Map<java.lang.String,java.lang.Object> dataplanVersion)
Sets/Gets the Data Plan Version to use when evaluating block and transformation settingsMParticleOptions.DataplanOptions.Builder
dataplanVersion(org.json.JSONObject dataplanVersion)
Sets/Gets the Data Plan Version to use when evaluating block and transformation settings
-
-
-
Method Detail
-
dataplanVersion
public MParticleOptions.DataplanOptions.Builder dataplanVersion(java.lang.String dataplanVersion)
Sets/Gets the Data Plan Version to use when evaluating block and transformation settings- Parameters:
dataplanVersion
-- Returns:
- the Builder instance
-
dataplanVersion
public MParticleOptions.DataplanOptions.Builder dataplanVersion(org.json.JSONObject dataplanVersion)
Sets/Gets the Data Plan Version to use when evaluating block and transformation settings- Parameters:
dataplanVersion
-- Returns:
- the Builder instance
-
dataplanVersion
public MParticleOptions.DataplanOptions.Builder dataplanVersion(java.util.Map<java.lang.String,java.lang.Object> dataplanVersion)
Sets/Gets the Data Plan Version to use when evaluating block and transformation settings- Parameters:
dataplanVersion
-- Returns:
- the Builder instance
-
blockUserAttributes
public MParticleOptions.DataplanOptions.Builder blockUserAttributes(boolean blockUserAttributes)
This flag determines if unplanned user attributes should be blocked- Parameters:
blockUserAttributes
-- Returns:
- the Builder instance
-
blockUserIdentities
public MParticleOptions.DataplanOptions.Builder blockUserIdentities(boolean blockUserIdentities)
This flag determines if unplanned user identities should be blocked- Parameters:
blockUserIdentities
-- Returns:
- the Builder instance
-
blockEventAttributes
public MParticleOptions.DataplanOptions.Builder blockEventAttributes(boolean blockEventAttributes)
This flag determines if unplanned event attributes should be blocked- Parameters:
blockEventAttributes
-- Returns:
- the Builder instance
-
blockEvents
public MParticleOptions.DataplanOptions.Builder blockEvents(boolean blockEvents)
This flag determines if unplanned events should be blocked- Parameters:
blockEvents
-- Returns:
- the Builder instance
-
build
@Nullable public MParticleOptions.DataplanOptions build()
Transform the Builder instance into an immutableMParticleOptions.DataplanOptions
instance. This step will check that a valid dataplan verion has been set and will return null if it has not- Returns:
- the DataplanOptions instance, or null if a valid dataplan version was not present
-
-