Package com.dropbox.core.v2.sharing
Class FileMemberActionResult
- java.lang.Object
-
- com.dropbox.core.v2.sharing.FileMemberActionResult
-
public class FileMemberActionResult extends java.lang.Object
Per-member result forDbxUserSharingRequests.addFileMember(String,List)
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FileMemberActionResult.Builder
Builder forFileMemberActionResult
.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>
invitationSignature
protected MemberSelector
member
protected FileMemberActionIndividualResult
result
protected java.lang.String
sckeySha1
-
Constructor Summary
Constructors Constructor Description FileMemberActionResult(MemberSelector member, FileMemberActionIndividualResult result)
Per-member result forDbxUserSharingRequests.addFileMember(String,List)
.FileMemberActionResult(MemberSelector member, FileMemberActionIndividualResult result, java.lang.String sckeySha1, java.util.List<java.lang.String> invitationSignature)
Per-member result forDbxUserSharingRequests.addFileMember(String,List)
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<java.lang.String>
getInvitationSignature()
The sharing sender-recipient invitation signatures for the input member_id.MemberSelector
getMember()
One of specified input members.FileMemberActionIndividualResult
getResult()
The outcome of the action on this member.java.lang.String
getSckeySha1()
The SHA-1 encrypted shared content key.int
hashCode()
static FileMemberActionResult.Builder
newBuilder(MemberSelector member, FileMemberActionIndividualResult result)
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.
-
-
-
Field Detail
-
member
protected final MemberSelector member
-
result
protected final FileMemberActionIndividualResult result
-
sckeySha1
protected final java.lang.String sckeySha1
-
invitationSignature
protected final java.util.List<java.lang.String> invitationSignature
-
-
Constructor Detail
-
FileMemberActionResult
public FileMemberActionResult(MemberSelector member, FileMemberActionIndividualResult result, java.lang.String sckeySha1, java.util.List<java.lang.String> invitationSignature)
Per-member result forDbxUserSharingRequests.addFileMember(String,List)
.Use
newBuilder(com.dropbox.core.v2.sharing.MemberSelector,com.dropbox.core.v2.sharing.FileMemberActionIndividualResult)
to create instances of this class without specifying values for all optional fields.- Parameters:
member
- One of specified input members. Must not benull
.result
- The outcome of the action on this member. Must not benull
.sckeySha1
- The SHA-1 encrypted shared content key.invitationSignature
- The sharing sender-recipient invitation signatures for the input member_id. A member_id can be a group and thus have multiple users and multiple invitation signatures. Must not contain anull
item.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
FileMemberActionResult
public FileMemberActionResult(MemberSelector member, FileMemberActionIndividualResult result)
Per-member result forDbxUserSharingRequests.addFileMember(String,List)
.The default values for unset fields will be used.
- Parameters:
member
- One of specified input members. Must not benull
.result
- The outcome of the action on this member. Must not benull
.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getMember
public MemberSelector getMember()
One of specified input members.- Returns:
- value for this field, never
null
.
-
getResult
public FileMemberActionIndividualResult getResult()
The outcome of the action on this member.- Returns:
- value for this field, never
null
.
-
getSckeySha1
public java.lang.String getSckeySha1()
The SHA-1 encrypted shared content key.- Returns:
- value for this field, or
null
if not present.
-
getInvitationSignature
public java.util.List<java.lang.String> getInvitationSignature()
The sharing sender-recipient invitation signatures for the input member_id. A member_id can be a group and thus have multiple users and multiple invitation signatures.- Returns:
- value for this field, or
null
if not present.
-
newBuilder
public static FileMemberActionResult.Builder newBuilder(MemberSelector member, FileMemberActionIndividualResult result)
Returns a new builder for creating an instance of this class.- Parameters:
member
- One of specified input members. Must not benull
.result
- The outcome of the action on this member. Must not benull
.- Returns:
- builder for this class.
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringMultiline
public java.lang.String toStringMultiline()
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-
-