public class MemberChangeAdminRoleDetails
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MemberChangeAdminRoleDetails.Builder
Builder for
MemberChangeAdminRoleDetails . |
Modifier and Type | Field and Description |
---|---|
protected AdminRole |
newValue |
protected AdminRole |
previousValue |
Constructor and Description |
---|
MemberChangeAdminRoleDetails()
Changed team member admin role.
|
MemberChangeAdminRoleDetails(AdminRole newValue,
AdminRole previousValue)
Changed team member admin role.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
AdminRole |
getNewValue()
New admin role.
|
AdminRole |
getPreviousValue()
Previous admin role.
|
int |
hashCode() |
static MemberChangeAdminRoleDetails.Builder |
newBuilder()
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final AdminRole newValue
protected final AdminRole previousValue
public MemberChangeAdminRoleDetails(AdminRole newValue, AdminRole previousValue)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
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.previousValue
- Previous admin role. This field is relevant when
the admin role is changed or when the admin role is removed.public MemberChangeAdminRoleDetails()
The default values for unset fields will be used.
public AdminRole getNewValue()
null
if not present.public AdminRole getPreviousValue()
null
if not present.public static MemberChangeAdminRoleDetails.Builder newBuilder()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.