Package com.dropbox.core.v2.teamlog
Class GroupLogInfo
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.GroupLogInfo
-
public class GroupLogInfo extends java.lang.ObjectGroup's logged information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGroupLogInfo.BuilderBuilder forGroupLogInfo.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringdisplayNameprotected java.lang.StringexternalIdprotected java.lang.StringgroupId
-
Constructor Summary
Constructors Constructor Description GroupLogInfo(java.lang.String displayName)Group's logged information.GroupLogInfo(java.lang.String displayName, java.lang.String groupId, java.lang.String externalId)Group's logged information.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetDisplayName()The name of this group.java.lang.StringgetExternalId()External group ID.java.lang.StringgetGroupId()The unique id of this group.inthashCode()static GroupLogInfo.BuildernewBuilder(java.lang.String displayName)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
-
-
-
Constructor Detail
-
GroupLogInfo
public GroupLogInfo(java.lang.String displayName, java.lang.String groupId, java.lang.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 benull.groupId- The unique id of this group.externalId- External group ID.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
GroupLogInfo
public GroupLogInfo(java.lang.String displayName)
Group's logged information.The default values for unset fields will be used.
- Parameters:
displayName- The name of this group. Must not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Detail
-
getDisplayName
public java.lang.String getDisplayName()
The name of this group.- Returns:
- value for this field, never
null.
-
getGroupId
public java.lang.String getGroupId()
The unique id of this group.- Returns:
- value for this field, or
nullif not present.
-
getExternalId
public java.lang.String getExternalId()
External group ID.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static GroupLogInfo.Builder newBuilder(java.lang.String displayName)
Returns a new builder for creating an instance of this class.- Parameters:
displayName- The name of this group. 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin 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
-
-