Package com.mparticle

Class MParticleOptions.DataplanOptions.Builder

    • 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 immutable MParticleOptions.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