Class SharedFolderTransferOwnershipDetails


  • public class SharedFolderTransferOwnershipDetails
    extends java.lang.Object
    Transferred ownership of shared folder to another member.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • previousOwnerEmail

        @Nullable
        protected final java.lang.String previousOwnerEmail
      • newOwnerEmail

        @Nonnull
        protected final java.lang.String newOwnerEmail
    • Constructor Detail

      • SharedFolderTransferOwnershipDetails

        public SharedFolderTransferOwnershipDetails​(@Nonnull
                                                    java.lang.String newOwnerEmail,
                                                    @Nullable
                                                    java.lang.String previousOwnerEmail)
        Transferred ownership of shared folder to another member.
        Parameters:
        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.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • SharedFolderTransferOwnershipDetails

        public SharedFolderTransferOwnershipDetails​(@Nonnull
                                                    java.lang.String newOwnerEmail)
        Transferred ownership of shared folder to another member.

        The default values for unset fields will be used.

        Parameters:
        newOwnerEmail - The email address of the new shared folder owner. Must have length of at most 255 and not be null.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
    • Method Detail

      • getNewOwnerEmail

        @Nonnull
        public java.lang.String getNewOwnerEmail()
        The email address of the new shared folder owner.
        Returns:
        value for this field, never null.
      • getPreviousOwnerEmail

        @Nullable
        public java.lang.String getPreviousOwnerEmail()
        The email address of the previous shared folder owner.
        Returns:
        value for this field, or null if not present.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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