public class GroupLogInfo
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GroupLogInfo.Builder
Builder for
GroupLogInfo . |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
displayName |
protected java.lang.String |
externalId |
protected java.lang.String |
groupId |
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDisplayName()
The name of this group.
|
java.lang.String |
getExternalId()
External group ID.
|
java.lang.String |
getGroupId()
The unique id of this group.
|
int |
hashCode() |
static GroupLogInfo.Builder |
newBuilder(java.lang.String displayName)
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.
|
protected final java.lang.String groupId
protected final java.lang.String displayName
protected final java.lang.String externalId
public GroupLogInfo(java.lang.String displayName, java.lang.String groupId, java.lang.String externalId)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
displayName
- The name of this group. Must not be null
.groupId
- The unique id of this group. Might be missing due to
historical data gap.externalId
- External group ID. Might be missing due to historical
data gap.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public GroupLogInfo(java.lang.String displayName)
The default values for unset fields will be used.
displayName
- The name of this group. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getDisplayName()
null
.public java.lang.String getGroupId()
null
if not present.public java.lang.String getExternalId()
null
if not present.public static GroupLogInfo.Builder newBuilder(java.lang.String displayName)
displayName
- The name of this group. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.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.