public static class MemberChangeStatusDetails.Builder
extends java.lang.Object
MemberChangeStatusDetails
.Modifier and Type | Field and Description |
---|---|
protected ActionDetails |
action |
protected java.lang.String |
newTeam |
protected MemberStatus |
newValue |
protected java.lang.String |
previousTeam |
protected MemberStatus |
previousValue |
Modifier | Constructor and Description |
---|---|
protected |
Builder(MemberStatus newValue) |
Modifier and Type | Method and Description |
---|---|
MemberChangeStatusDetails |
build()
Builds an instance of
MemberChangeStatusDetails configured
with this builder's values |
MemberChangeStatusDetails.Builder |
withAction(ActionDetails action)
Set value for optional field.
|
MemberChangeStatusDetails.Builder |
withNewTeam(java.lang.String newTeam)
Set value for optional field.
|
MemberChangeStatusDetails.Builder |
withPreviousTeam(java.lang.String previousTeam)
Set value for optional field.
|
MemberChangeStatusDetails.Builder |
withPreviousValue(MemberStatus previousValue)
Set value for optional field.
|
protected final MemberStatus newValue
protected MemberStatus previousValue
protected ActionDetails action
protected java.lang.String newTeam
protected java.lang.String previousTeam
protected Builder(MemberStatus newValue)
public MemberChangeStatusDetails.Builder withPreviousValue(MemberStatus previousValue)
previousValue
- Previous member status. Might be missing due to
historical data gap.public MemberChangeStatusDetails.Builder withAction(ActionDetails action)
action
- Additional information indicating the action taken
that caused status change.public MemberChangeStatusDetails.Builder withNewTeam(java.lang.String newTeam)
newTeam
- The user's new team name. This field is relevant when
the user is transferred off the team.public MemberChangeStatusDetails.Builder withPreviousTeam(java.lang.String previousTeam)
previousTeam
- The user's previous team name. This field is
relevant when the user is transferred onto the team.public MemberChangeStatusDetails build()
MemberChangeStatusDetails
configured
with this builder's valuesMemberChangeStatusDetails