public class SfFbInviteChangeRoleDetails
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SfFbInviteChangeRoleDetails.Builder
Builder for
SfFbInviteChangeRoleDetails . |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
newSharingPermission |
protected java.lang.String |
originalFolderName |
protected java.lang.String |
previousSharingPermission |
protected long |
targetAssetIndex |
Constructor and Description |
---|
SfFbInviteChangeRoleDetails(long targetAssetIndex,
java.lang.String originalFolderName)
Changed Facebook user's role in shared folder.
|
SfFbInviteChangeRoleDetails(long targetAssetIndex,
java.lang.String originalFolderName,
java.lang.String previousSharingPermission,
java.lang.String newSharingPermission)
Changed Facebook user's role in shared folder.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getNewSharingPermission()
New sharing permission.
|
java.lang.String |
getOriginalFolderName()
Original shared folder name.
|
java.lang.String |
getPreviousSharingPermission()
Previous sharing permission.
|
long |
getTargetAssetIndex()
Target asset position in the Assets list.
|
int |
hashCode() |
static SfFbInviteChangeRoleDetails.Builder |
newBuilder(long targetAssetIndex,
java.lang.String originalFolderName)
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 long targetAssetIndex
protected final java.lang.String originalFolderName
protected final java.lang.String previousSharingPermission
protected final java.lang.String newSharingPermission
public SfFbInviteChangeRoleDetails(long targetAssetIndex, java.lang.String originalFolderName, java.lang.String previousSharingPermission, java.lang.String newSharingPermission)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
targetAssetIndex
- Target asset position in the Assets list.originalFolderName
- Original shared folder name. Must not be
null
.previousSharingPermission
- Previous sharing permission. Might be
missing due to historical data gap.newSharingPermission
- New sharing permission. Might be missing due
to historical data gap.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SfFbInviteChangeRoleDetails(long targetAssetIndex, java.lang.String originalFolderName)
The default values for unset fields will be used.
targetAssetIndex
- Target asset position in the Assets list.originalFolderName
- Original shared folder name. Must not be
null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public long getTargetAssetIndex()
public java.lang.String getOriginalFolderName()
null
.public java.lang.String getPreviousSharingPermission()
null
if not present.public java.lang.String getNewSharingPermission()
null
if not present.public static SfFbInviteChangeRoleDetails.Builder newBuilder(long targetAssetIndex, java.lang.String originalFolderName)
targetAssetIndex
- Target asset position in the Assets list.originalFolderName
- Original shared folder name. Must not be
null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.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.