Package com.dropbox.core.v2.paper
Class SharingPolicy.Builder
- java.lang.Object
-
- com.dropbox.core.v2.paper.SharingPolicy.Builder
-
- Enclosing class:
- SharingPolicy
public static class SharingPolicy.Builder extends java.lang.Object
Builder forSharingPolicy
.
-
-
Field Summary
Fields Modifier and Type Field Description protected SharingPublicPolicyType
publicSharingPolicy
protected SharingTeamPolicyType
teamSharingPolicy
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SharingPolicy
build()
Builds an instance ofSharingPolicy
configured with this builder's valuesSharingPolicy.Builder
withPublicSharingPolicy(SharingPublicPolicyType publicSharingPolicy)
Set value for optional field.SharingPolicy.Builder
withTeamSharingPolicy(SharingTeamPolicyType teamSharingPolicy)
Set value for optional field.
-
-
-
Field Detail
-
publicSharingPolicy
protected SharingPublicPolicyType publicSharingPolicy
-
teamSharingPolicy
protected SharingTeamPolicyType teamSharingPolicy
-
-
Method Detail
-
withPublicSharingPolicy
public SharingPolicy.Builder withPublicSharingPolicy(SharingPublicPolicyType publicSharingPolicy)
Set value for optional field.- Parameters:
publicSharingPolicy
- This value applies to the non-team members.- Returns:
- this builder
-
withTeamSharingPolicy
public SharingPolicy.Builder withTeamSharingPolicy(SharingTeamPolicyType teamSharingPolicy)
Set value for optional field.- Parameters:
teamSharingPolicy
- This value applies to the team members only. The value is null for all personal accounts.- Returns:
- this builder
-
build
public SharingPolicy build()
Builds an instance ofSharingPolicy
configured with this builder's values- Returns:
- new instance of
SharingPolicy
-
-