Package com.dropbox.core.v2.teamlog
Class MemberChangeAdminRoleDetails.Builder
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.MemberChangeAdminRoleDetails.Builder
-
- Enclosing class:
- MemberChangeAdminRoleDetails
public static class MemberChangeAdminRoleDetails.Builder extends java.lang.Object
Builder forMemberChangeAdminRoleDetails
.
-
-
Field Summary
Fields Modifier and Type Field Description protected AdminRole
newValue
protected AdminRole
previousValue
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemberChangeAdminRoleDetails
build()
Builds an instance ofMemberChangeAdminRoleDetails
configured with this builder's valuesMemberChangeAdminRoleDetails.Builder
withNewValue(AdminRole newValue)
Set value for optional field.MemberChangeAdminRoleDetails.Builder
withPreviousValue(AdminRole previousValue)
Set value for optional field.
-
-
-
Method Detail
-
withNewValue
public MemberChangeAdminRoleDetails.Builder withNewValue(AdminRole newValue)
Set value for optional field.- Parameters:
newValue
- New admin role. This field is relevant when the admin role is changed or whenthe user role changes from no admin rights to with admin rights.- Returns:
- this builder
-
withPreviousValue
public MemberChangeAdminRoleDetails.Builder withPreviousValue(AdminRole previousValue)
Set value for optional field.- Parameters:
previousValue
- Previous admin role. This field is relevant when the admin role is changed or when the admin role is removed.- Returns:
- this builder
-
build
public MemberChangeAdminRoleDetails build()
Builds an instance ofMemberChangeAdminRoleDetails
configured with this builder's values- Returns:
- new instance of
MemberChangeAdminRoleDetails
-
-