Package io.riada.insight.model
Class ImmutableInsightUser
java.lang.Object
io.riada.insight.model.InsightUser
io.riada.insight.model.ImmutableInsightUser
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableInsightUser
extends InsightUser
Immutable implementation of
InsightUser.
Use the builder to create immutable instances:
ImmutableInsightUser.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableInsightUser. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableInsightUser.Builderbuilder()Creates a builder forImmutableInsightUser.static ImmutableInsightUsercopyOf(InsightUser instance) Creates an immutable copy of aInsightUservalue.booleanThis instance is equal to all instances ofImmutableInsightUserthat have equal attribute values.getKey()The Assets user key represent the way to uniquely identify this user.getName()inthashCode()Computes a hash code from attributes:key,name,displayName,emailAddress,lastSeenVersion,externalId,insightRoles.toString()Prints the immutable valueInsightUserwith attribute values.final ImmutableInsightUserwithDisplayName(String value) Copy the current immutable object by setting a value for thedisplayNameattribute.final ImmutableInsightUserwithEmailAddress(String value) Copy the current immutable object by setting a value for theemailAddressattribute.final ImmutableInsightUserwithExternalId(String value) Copy the current immutable object by setting a value for theexternalIdattribute.final ImmutableInsightUserwithInsightRoles(Collection<InsightRole> value) Copy the current immutable object by setting a value for theinsightRolesattribute.final ImmutableInsightUserCopy the current immutable object by setting a value for thekeyattribute.final ImmutableInsightUserwithLastSeenVersion(String value) Copy the current immutable object by setting a value for thelastSeenVersionattribute.final ImmutableInsightUserCopy the current immutable object by setting a value for thenameattribute.
-
Method Details
-
getKey
The Assets user key represent the way to uniquely identify this user. In different contexts this value will mean different things e.g. in Assets for Jira cloud this value will be the Atlassian account id- Specified by:
getKeyin classInsightUser
-
getName
- Specified by:
getNamein classInsightUser- Returns:
- The value of the
nameattribute
-
getDisplayName
- Specified by:
getDisplayNamein classInsightUser- Returns:
- The value of the
displayNameattribute
-
getEmailAddress
- Specified by:
getEmailAddressin classInsightUser- Returns:
- The value of the
emailAddressattribute
-
getLastSeenVersion
- Specified by:
getLastSeenVersionin classInsightUser- Returns:
- The value of the
lastSeenVersionattribute
-
externalId
- Specified by:
externalIdin classInsightUser- Returns:
- The value of the
externalIdattribute
-
insightRoles
- Specified by:
insightRolesin classInsightUser- Returns:
- The value of the
insightRolesattribute
-
withKey
Copy the current immutable object by setting a value for thekeyattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for key- Returns:
- A modified copy of the
thisobject
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name (can benull)- Returns:
- A modified copy of the
thisobject
-
withDisplayName
Copy the current immutable object by setting a value for thedisplayNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for displayName (can benull)- Returns:
- A modified copy of the
thisobject
-
withEmailAddress
Copy the current immutable object by setting a value for theemailAddressattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for emailAddress (can benull)- Returns:
- A modified copy of the
thisobject
-
withLastSeenVersion
Copy the current immutable object by setting a value for thelastSeenVersionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for lastSeenVersion (can benull)- Returns:
- A modified copy of the
thisobject
-
withExternalId
Copy the current immutable object by setting a value for theexternalIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for externalId (can benull)- Returns:
- A modified copy of the
thisobject
-
withInsightRoles
Copy the current immutable object by setting a value for theinsightRolesattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for insightRoles (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableInsightUserthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:key,name,displayName,emailAddress,lastSeenVersion,externalId,insightRoles. -
toString
Prints the immutable valueInsightUserwith attribute values. -
copyOf
Creates an immutable copy of aInsightUservalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable InsightUser instance
-
builder
Creates a builder forImmutableInsightUser.ImmutableInsightUser.builder() .setKey(String) // requiredkey.setName(String | null) // nullablename.setDisplayName(String | null) // nullabledisplayName.setEmailAddress(String | null) // nullableemailAddress.setLastSeenVersion(String | null) // nullablelastSeenVersion.setExternalId(String | null) // nullableexternalId.setInsightRoles(Collection<io.riada.insight.model.InsightRole> | null) // nullableinsightRoles.build();- Returns:
- A new ImmutableInsightUser builder
-