Package com.dropbox.core.v2.teamlog
Class ContentDeletionProtectionChangePolicyDetails.Builder
java.lang.Object
com.dropbox.core.v2.teamlog.ContentDeletionProtectionChangePolicyDetails.Builder
- Enclosing class:
ContentDeletionProtectionChangePolicyDetails
Builder for
ContentDeletionProtectionChangePolicyDetails.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longprotected final ContentDeletionProtectionPolicyprotected Longprotected ContentDeletionProtectionPolicy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofContentDeletionProtectionChangePolicyDetailsconfigured with this builder's valueswithNewThresholdBytes(Long newThresholdBytes) Set value for optional field.withPreviousThresholdBytes(Long previousThresholdBytes) Set value for optional field.withPreviousValue(ContentDeletionProtectionPolicy previousValue) Set value for optional field.
-
Field Details
-
newValue
-
newThresholdBytes
-
previousValue
-
previousThresholdBytes
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withNewThresholdBytes
public ContentDeletionProtectionChangePolicyDetails.Builder withNewThresholdBytes(Long newThresholdBytes) Set value for optional field.- Parameters:
newThresholdBytes- New threshold value in bytes (only present when new policy is on_above_threshold).- Returns:
- this builder
-
withPreviousValue
public ContentDeletionProtectionChangePolicyDetails.Builder withPreviousValue(ContentDeletionProtectionPolicy previousValue) Set value for optional field.- Parameters:
previousValue- Previous content deletion protection policy. Might be missing due to historical data gap.- Returns:
- this builder
-
withPreviousThresholdBytes
public ContentDeletionProtectionChangePolicyDetails.Builder withPreviousThresholdBytes(Long previousThresholdBytes) Set value for optional field.- Parameters:
previousThresholdBytes- Previous threshold value in bytes (only present when previous policy was on_above_threshold).- Returns:
- this builder
-
build
Builds an instance ofContentDeletionProtectionChangePolicyDetailsconfigured with this builder's values- Returns:
- new instance of
ContentDeletionProtectionChangePolicyDetails
-