@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 InsightUsername attribute@Nullable public String getDisplayName()
getDisplayName in class InsightUserdisplayName attribute@Nullable public String getEmailAddress()
getEmailAddress in class InsightUseremailAddress attribute@Nullable public String getLastSeenVersion()
getLastSeenVersion in class InsightUserlastSeenVersion attribute@Nullable public String externalId()
externalId in class InsightUserexternalId attribute@Nullable public Collection<InsightRole> insightRoles()
insightRoles in class InsightUserinsightRoles 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) // required key
.setName(String | null) // nullable name
.setDisplayName(String | null) // nullable displayName
.setEmailAddress(String | null) // nullable emailAddress
.setLastSeenVersion(String | null) // nullable lastSeenVersion
.setExternalId(String | null) // nullable externalId
.setInsightRoles(Collection<io.riada.insight.model.InsightRole> | null) // nullable insightRoles
.build();
Copyright © 2023 Atlassian. All rights reserved.