public class SharedFolderTransferOwnershipDetails
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
newOwnerEmail |
protected java.lang.String |
previousOwnerEmail |
Constructor and Description |
---|
SharedFolderTransferOwnershipDetails(java.lang.String newOwnerEmail)
Transferred ownership of shared folder to another member.
|
SharedFolderTransferOwnershipDetails(java.lang.String newOwnerEmail,
java.lang.String previousOwnerEmail)
Transferred ownership of shared folder to another member.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getNewOwnerEmail()
The email address of the new shared folder owner.
|
java.lang.String |
getPreviousOwnerEmail()
The email address of the previous shared folder owner.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String previousOwnerEmail
protected final java.lang.String newOwnerEmail
public SharedFolderTransferOwnershipDetails(java.lang.String newOwnerEmail, java.lang.String previousOwnerEmail)
newOwnerEmail
- The email address of the new shared folder owner.
Must have length of at most 255 and not be null
.previousOwnerEmail
- The email address of the previous shared
folder owner. Must have length of at most 255.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SharedFolderTransferOwnershipDetails(java.lang.String newOwnerEmail)
The default values for unset fields will be used.
newOwnerEmail
- The email address of the new shared folder owner.
Must have length of at most 255 and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getNewOwnerEmail()
null
.public java.lang.String getPreviousOwnerEmail()
null
if not present.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.