@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableInsightUser extends InsightUser
InsightUser
.
Use the builder to create immutable instances:
ImmutableInsightUser.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableInsightUser.Builder
Builds instances of type
ImmutableInsightUser . |
Modifier and Type | Method and Description |
---|---|
static ImmutableInsightUser.Builder |
builder()
Creates a builder for
ImmutableInsightUser . |
static ImmutableInsightUser |
copyOf(InsightUser instance)
Creates an immutable copy of a
InsightUser value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableInsightUser that have equal attribute values. |
String |
externalId() |
String |
getDisplayName() |
String |
getEmailAddress() |
String |
getKey()
The Assets user key represent the way to uniquely identify this user.
|
String |
getLastSeenVersion() |
String |
getName() |
int |
hashCode()
Computes a hash code from attributes:
key , name , displayName , emailAddress , lastSeenVersion , externalId , insightRoles . |
Collection<InsightRole> |
insightRoles() |
String |
toString()
Prints the immutable value
InsightUser with attribute values. |
ImmutableInsightUser |
withDisplayName(String value)
Copy the current immutable object by setting a value for the
displayName attribute. |
ImmutableInsightUser |
withEmailAddress(String value)
Copy the current immutable object by setting a value for the
emailAddress attribute. |
ImmutableInsightUser |
withExternalId(String value)
Copy the current immutable object by setting a value for the
externalId attribute. |
ImmutableInsightUser |
withInsightRoles(Collection<InsightRole> value)
Copy the current immutable object by setting a value for the
insightRoles attribute. |
ImmutableInsightUser |
withKey(String value)
Copy the current immutable object by setting a value for the
key attribute. |
ImmutableInsightUser |
withLastSeenVersion(String value)
Copy the current immutable object by setting a value for the
lastSeenVersion attribute. |
ImmutableInsightUser |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
public String getKey()
getKey
in class InsightUser
@Nullable public String getName()
getName
in class InsightUser
name
attribute@Nullable public String getDisplayName()
getDisplayName
in class InsightUser
displayName
attribute@Nullable public String getEmailAddress()
getEmailAddress
in class InsightUser
emailAddress
attribute@Nullable public String getLastSeenVersion()
getLastSeenVersion
in class InsightUser
lastSeenVersion
attribute@Nullable public String externalId()
externalId
in class InsightUser
externalId
attribute@Nullable public Collection<InsightRole> insightRoles()
insightRoles
in class InsightUser
insightRoles
attributepublic final ImmutableInsightUser withKey(String value)
key
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for keythis
objectpublic final ImmutableInsightUser withName(@Nullable String value)
name
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for name (can be null
)this
objectpublic final ImmutableInsightUser withDisplayName(@Nullable String value)
displayName
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for displayName (can be null
)this
objectpublic final ImmutableInsightUser withEmailAddress(@Nullable String value)
emailAddress
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for emailAddress (can be null
)this
objectpublic final ImmutableInsightUser withLastSeenVersion(@Nullable String value)
lastSeenVersion
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for lastSeenVersion (can be null
)this
objectpublic final ImmutableInsightUser withExternalId(@Nullable String value)
externalId
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for externalId (can be null
)this
objectpublic final ImmutableInsightUser withInsightRoles(@Nullable Collection<InsightRole> value)
insightRoles
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for insightRoles (can be null
)this
objectpublic boolean equals(@Nullable Object another)
ImmutableInsightUser
that have equal attribute values.public int hashCode()
key
, name
, displayName
, emailAddress
, lastSeenVersion
, externalId
, insightRoles
.public String toString()
InsightUser
with attribute values.public static ImmutableInsightUser copyOf(InsightUser instance)
InsightUser
value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance
- The instance to copypublic static ImmutableInsightUser.Builder builder()
ImmutableInsightUser
.
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();
Copyright © 2023 Atlassian. All rights reserved.