public static class UserPrivacyOptions.Builder extends Object
Builder is used to build instances of UserPrivacyOptions from values configured by the setters.| Constructor and Description |
|---|
Builder()
Constructs a
UserPrivacyOptions.Builder object |
| Modifier and Type | Method and Description |
|---|---|
UserPrivacyOptions |
build()
Returns an instance of
UserPrivacyOptions with the specified values of this builder. |
UserPrivacyOptions.Builder |
withCrashReportingOptedIn(boolean crashReportingOptedIn)
Sets the privacy setting for crash reporting.
|
UserPrivacyOptions.Builder |
withDataCollectionLevel(DataCollectionLevel dataCollectionLevel)
Sets the data collection level specified by the user.
|
public Builder()
UserPrivacyOptions.Builder objectpublic UserPrivacyOptions.Builder withDataCollectionLevel(DataCollectionLevel dataCollectionLevel)
The method call is ignored, when a null value is used for parameter dataCollectionLevel.
dataCollectionLevel - the specified data collection level from the userthis builderpublic UserPrivacyOptions.Builder withCrashReportingOptedIn(boolean crashReportingOptedIn)
crashReportingOptedIn - the opt-in value specified by the userthis builderpublic UserPrivacyOptions build()
UserPrivacyOptions with the specified values of this builder.UserPrivacyOptions© 2021 Dynatrace LLC. All Rights Reserved