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.Builder
addGDPRConsentState(java.lang.String purpose, GDPRConsent consent)
Add or override a single GDPR consent state for this builder.ConsentState
build()
ConsentState.Builder
removeCCPAConsent()
Deprecated.ConsentState.Builder
removeCCPAConsentState()
ConsentState.Builder
removeGDPRConsentState(java.lang.String purpose)
Remove a single GDPR consent state for this builder.ConsentState.Builder
setCCPAConsent(CCPAConsent ccpaConsent)
Deprecated.ConsentState.Builder
setCCPAConsentState(CCPAConsent ccpaConsent)
ConsentState.Builder
setGDPRConsentState(java.util.Map<java.lang.String,GDPRConsent> consentState)
Set/replace the entire GDPR consent state of this builder.java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-