public static class MemberChangeAdminRoleDetails.Builder
extends java.lang.Object
MemberChangeAdminRoleDetails
.Modifier and Type | Field and Description |
---|---|
protected AdminRole |
newValue |
protected AdminRole |
previousValue |
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
MemberChangeAdminRoleDetails |
build()
Builds an instance of
MemberChangeAdminRoleDetails configured
with this builder's values |
MemberChangeAdminRoleDetails.Builder |
withNewValue(AdminRole newValue)
Set value for optional field.
|
MemberChangeAdminRoleDetails.Builder |
withPreviousValue(AdminRole previousValue)
Set value for optional field.
|
public MemberChangeAdminRoleDetails.Builder withNewValue(AdminRole newValue)
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.public MemberChangeAdminRoleDetails.Builder withPreviousValue(AdminRole previousValue)
previousValue
- Previous admin role. This field is relevant
when the admin role is changed or when the admin role is removed.public MemberChangeAdminRoleDetails build()
MemberChangeAdminRoleDetails
configured
with this builder's valuesMemberChangeAdminRoleDetails