public static class SharingPolicy.Builder
extends java.lang.Object
SharingPolicy.| Modifier and Type | Field and Description |
|---|---|
protected SharingPublicPolicyType |
publicSharingPolicy |
protected SharingTeamPolicyType |
teamSharingPolicy |
| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SharingPolicy |
build()
Builds an instance of
SharingPolicy configured with this
builder's values |
SharingPolicy.Builder |
withPublicSharingPolicy(SharingPublicPolicyType publicSharingPolicy)
Set value for optional field.
|
SharingPolicy.Builder |
withTeamSharingPolicy(SharingTeamPolicyType teamSharingPolicy)
Set value for optional field.
|
protected SharingPublicPolicyType publicSharingPolicy
protected SharingTeamPolicyType teamSharingPolicy
public SharingPolicy.Builder withPublicSharingPolicy(SharingPublicPolicyType publicSharingPolicy)
publicSharingPolicy - This value applies to the non-team
members.public SharingPolicy.Builder withTeamSharingPolicy(SharingTeamPolicyType teamSharingPolicy)
teamSharingPolicy - This value applies to the team members
only. The value is null for all personal accounts.public SharingPolicy build()
SharingPolicy configured with this
builder's valuesSharingPolicy