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 class
Builds instances of typeImmutableInsightUser
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableInsightUser.Builder
builder()
Creates a builder forImmutableInsightUser
.static ImmutableInsightUser
copyOf
(InsightUser instance) Creates an immutable copy of aInsightUser
value.boolean
This instance is equal to all instances ofImmutableInsightUser
that have equal attribute values.getKey()
The Assets user key represent the way to uniquely identify this user.getName()
int
hashCode()
Computes a hash code from attributes:key
,name
,displayName
,emailAddress
,lastSeenVersion
,externalId
,insightRoles
.toString()
Prints the immutable valueInsightUser
with attribute values.final ImmutableInsightUser
withDisplayName
(String value) Copy the current immutable object by setting a value for thedisplayName
attribute.final ImmutableInsightUser
withEmailAddress
(String value) Copy the current immutable object by setting a value for theemailAddress
attribute.final ImmutableInsightUser
withExternalId
(String value) Copy the current immutable object by setting a value for theexternalId
attribute.final ImmutableInsightUser
withInsightRoles
(Collection<InsightRole> value) Copy the current immutable object by setting a value for theinsightRoles
attribute.final ImmutableInsightUser
Copy the current immutable object by setting a value for thekey
attribute.final ImmutableInsightUser
withLastSeenVersion
(String value) Copy the current immutable object by setting a value for thelastSeenVersion
attribute.final ImmutableInsightUser
Copy the current immutable object by setting a value for thename
attribute.
-
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:
getKey
in classInsightUser
-
getName
- Specified by:
getName
in classInsightUser
- Returns:
- The value of the
name
attribute
-
getDisplayName
- Specified by:
getDisplayName
in classInsightUser
- Returns:
- The value of the
displayName
attribute
-
getEmailAddress
- Specified by:
getEmailAddress
in classInsightUser
- Returns:
- The value of the
emailAddress
attribute
-
getLastSeenVersion
- Specified by:
getLastSeenVersion
in classInsightUser
- Returns:
- The value of the
lastSeenVersion
attribute
-
externalId
- Specified by:
externalId
in classInsightUser
- Returns:
- The value of the
externalId
attribute
-
insightRoles
- Specified by:
insightRoles
in classInsightUser
- Returns:
- The value of the
insightRoles
attribute
-
withKey
Copy the current immutable object by setting a value for thekey
attribute. 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
this
object
-
withName
Copy the current immutable object by setting a value for thename
attribute. 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
this
object
-
withDisplayName
Copy the current immutable object by setting a value for thedisplayName
attribute. 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
this
object
-
withEmailAddress
Copy the current immutable object by setting a value for theemailAddress
attribute. 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
this
object
-
withLastSeenVersion
Copy the current immutable object by setting a value for thelastSeenVersion
attribute. 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
this
object
-
withExternalId
Copy the current immutable object by setting a value for theexternalId
attribute. 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
this
object
-
withInsightRoles
Copy the current immutable object by setting a value for theinsightRoles
attribute. 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
this
object
-
equals
This instance is equal to all instances ofImmutableInsightUser
that 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 valueInsightUser
with attribute values. -
copyOf
Creates an immutable copy of aInsightUser
value. 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) // required
key
.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
-