Class GroupLogInfo

java.lang.Object
com.dropbox.core.v2.teamlog.GroupLogInfo

public class GroupLogInfo extends Object
Group's logged information.
  • Field Details

    • groupId

      @Nullable protected final String groupId
    • displayName

      @Nonnull protected final String displayName
    • externalId

      @Nullable protected final String externalId
  • Constructor Details

    • GroupLogInfo

      public GroupLogInfo(@Nonnull String displayName, @Nullable String groupId, @Nullable String externalId)
      Group's logged information.

      Use newBuilder(java.lang.String) to create instances of this class without specifying values for all optional fields.

      Parameters:
      displayName - The name of this group. Must not be null.
      groupId - The unique id of this group.
      externalId - External group ID.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • GroupLogInfo

      public GroupLogInfo(@Nonnull String displayName)
      Group's logged information.

      The default values for unset fields will be used.

      Parameters:
      displayName - The name of this group. Must not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getDisplayName

      @Nonnull public String getDisplayName()
      The name of this group.
      Returns:
      value for this field, never null.
    • getGroupId

      @Nullable public String getGroupId()
      The unique id of this group.
      Returns:
      value for this field, or null if not present.
    • getExternalId

      @Nullable public String getExternalId()
      External group ID.
      Returns:
      value for this field, or null if not present.
    • newBuilder

      public static GroupLogInfo.Builder newBuilder(String displayName)
      Returns a new builder for creating an instance of this class.
      Parameters:
      displayName - The name of this group. Must not be null.
      Returns:
      builder for this class.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public 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