Package com.mparticle.consent
Class ConsentState.Builder
- java.lang.Object
-
- com.mparticle.consent.ConsentState.Builder
-
- Enclosing class:
- ConsentState
public static class ConsentState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ConsentState.BuilderaddGDPRConsentState(java.lang.String purpose, GDPRConsent consent)Add or override a single GDPR consent state for this builder.ConsentStatebuild()ConsentState.BuilderremoveCCPAConsent()Deprecated.ConsentState.BuilderremoveCCPAConsentState()ConsentState.BuilderremoveGDPRConsentState(java.lang.String purpose)Remove a single GDPR consent state for this builder.ConsentState.BuildersetCCPAConsent(CCPAConsent ccpaConsent)Deprecated.ConsentState.BuildersetCCPAConsentState(CCPAConsent ccpaConsent)ConsentState.BuildersetGDPRConsentState(java.util.Map<java.lang.String,GDPRConsent> consentState)Set/replace the entire GDPR consent state of this builder.java.lang.StringtoString()
-
-
-
Method Detail
-
setGDPRConsentState
@NonNull public ConsentState.Builder setGDPRConsentState(@Nullable java.util.Map<java.lang.String,GDPRConsent> consentState)
Set/replace the entire GDPR consent state of this builder.Note that all purpose keys will be lower-cased and trimmed.
- Parameters:
consentState-
-
addGDPRConsentState
@NonNull public ConsentState.Builder addGDPRConsentState(@NonNull java.lang.String purpose, @NonNull GDPRConsent consent)
Add or override a single GDPR consent state for this builder.Note that all purpose keys will be lower-cased and trimmed.
- Parameters:
purpose-consent-
-
removeGDPRConsentState
@NonNull public ConsentState.Builder removeGDPRConsentState(@NonNull java.lang.String purpose)
Remove a single GDPR consent state for this builder.Note that all purpose keys will be lower-cased and trimmed.
- Parameters:
purpose-
-
setCCPAConsent
@Deprecated @NonNull public ConsentState.Builder setCCPAConsent(@NonNull CCPAConsent ccpaConsent)
Deprecated.
-
setCCPAConsentState
@NonNull public ConsentState.Builder setCCPAConsentState(@NonNull CCPAConsent ccpaConsent)
-
removeCCPAConsent
@Deprecated @NonNull public ConsentState.Builder removeCCPAConsent()
Deprecated.
-
removeCCPAConsentState
@NonNull public ConsentState.Builder removeCCPAConsentState()
-
build
@NonNull public ConsentState build()
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-