Package io.dialob.security.uaa.spi.model
Class ImmutableUaaUser
- java.lang.Object
-
- io.dialob.security.uaa.spi.model.ImmutableUaaUser
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableUaaUser extends Object implements UaaUser
Immutable implementation ofUaaUser.Use the builder to create immutable instances:
ImmutableUaaUser.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableUaaUser.ApprovalImmutable implementation ofUaaUser.Approval.static classImmutableUaaUser.BuilderBuilds instances of typeImmutableUaaUser.static classImmutableUaaUser.EmailImmutable implementation ofUaaUser.Email.static classImmutableUaaUser.GroupImmutable implementation ofUaaUser.Group.static classImmutableUaaUser.NameImmutable implementation ofUaaUser.Name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableUaaUser.Builderbuilder()Creates a builder forImmutableUaaUser.static ImmutableUaaUsercopyOf(UaaUser instance)Creates an immutable copy of aUaaUservalue.booleanequals(Object another)This instance is equal to all instances ofImmutableUaaUserthat have equal attribute values.BooleangetActive()List<UaaUser.Approval>getApprovals()List<UaaUser.Email>getEmails()StringgetExternalId()List<UaaUser.Group>getGroups()StringgetId()LonggetLastLogonTime()UaaMetagetMeta()UaaUser.NamegetName()StringgetOrigin()OffsetDateTimegetPasswordLastModified()LonggetPreviousLogonTime()List<String>getSchemas()StringgetUserName()BooleangetVerified()StringgetZoneId()inthashCode()Computes a hash code from attributes:id,schemas,meta,name,emails,externalId,userName,groups,approvals,active,verified,origin,zoneId,passwordLastModified,previousLogonTime,lastLogonTime.StringtoString()Prints the immutable valueUaaUserwith attribute values.ImmutableUaaUserwithActive(Boolean value)Copy the current immutable object by setting a value for theactiveattribute.ImmutableUaaUserwithApprovals(UaaUser.Approval... elements)Copy the current immutable object with elements that replace the content ofapprovals.ImmutableUaaUserwithApprovals(Iterable<? extends UaaUser.Approval> elements)Copy the current immutable object with elements that replace the content ofapprovals.ImmutableUaaUserwithEmails(UaaUser.Email... elements)Copy the current immutable object with elements that replace the content ofemails.ImmutableUaaUserwithEmails(Iterable<? extends UaaUser.Email> elements)Copy the current immutable object with elements that replace the content ofemails.ImmutableUaaUserwithExternalId(String value)Copy the current immutable object by setting a value for theexternalIdattribute.ImmutableUaaUserwithGroups(UaaUser.Group... elements)Copy the current immutable object with elements that replace the content ofgroups.ImmutableUaaUserwithGroups(Iterable<? extends UaaUser.Group> elements)Copy the current immutable object with elements that replace the content ofgroups.ImmutableUaaUserwithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableUaaUserwithLastLogonTime(Long value)Copy the current immutable object by setting a value for thelastLogonTimeattribute.ImmutableUaaUserwithMeta(UaaMeta value)Copy the current immutable object by setting a value for themetaattribute.ImmutableUaaUserwithName(UaaUser.Name value)Copy the current immutable object by setting a value for thenameattribute.ImmutableUaaUserwithOrigin(String value)Copy the current immutable object by setting a value for theoriginattribute.ImmutableUaaUserwithPasswordLastModified(OffsetDateTime value)Copy the current immutable object by setting a value for thepasswordLastModifiedattribute.ImmutableUaaUserwithPreviousLogonTime(Long value)Copy the current immutable object by setting a value for thepreviousLogonTimeattribute.ImmutableUaaUserwithSchemas(Iterable<String> elements)Copy the current immutable object with elements that replace the content ofschemas.ImmutableUaaUserwithSchemas(String... elements)Copy the current immutable object with elements that replace the content ofschemas.ImmutableUaaUserwithUserName(String value)Copy the current immutable object by setting a value for theuserNameattribute.ImmutableUaaUserwithVerified(Boolean value)Copy the current immutable object by setting a value for theverifiedattribute.ImmutableUaaUserwithZoneId(String value)Copy the current immutable object by setting a value for thezoneIdattribute.
-
-
-
Method Detail
-
getId
public String getId()
-
getSchemas
public List<String> getSchemas()
- Specified by:
getSchemasin interfaceUaaEntity- Returns:
- The value of the
schemasattribute
-
getMeta
public UaaMeta getMeta()
-
getName
public UaaUser.Name getName()
-
getEmails
public List<UaaUser.Email> getEmails()
-
getExternalId
public String getExternalId()
- Specified by:
getExternalIdin interfaceUaaUser- Returns:
- The value of the
externalIdattribute
-
getUserName
public String getUserName()
- Specified by:
getUserNamein interfaceUaaUser- Returns:
- The value of the
userNameattribute
-
getGroups
public List<UaaUser.Group> getGroups()
-
getApprovals
public List<UaaUser.Approval> getApprovals()
- Specified by:
getApprovalsin interfaceUaaUser- Returns:
- The value of the
approvalsattribute
-
getActive
public Boolean getActive()
-
getVerified
public Boolean getVerified()
- Specified by:
getVerifiedin interfaceUaaUser- Returns:
- The value of the
verifiedattribute
-
getOrigin
public String getOrigin()
-
getZoneId
public String getZoneId()
-
getPasswordLastModified
public OffsetDateTime getPasswordLastModified()
- Specified by:
getPasswordLastModifiedin interfaceUaaUser- Returns:
- The value of the
passwordLastModifiedattribute
-
getPreviousLogonTime
public Long getPreviousLogonTime()
- Specified by:
getPreviousLogonTimein interfaceUaaUser- Returns:
- The value of the
previousLogonTimeattribute
-
getLastLogonTime
public Long getLastLogonTime()
- Specified by:
getLastLogonTimein interfaceUaaUser- Returns:
- The value of the
lastLogonTimeattribute
-
withId
public final ImmutableUaaUser withId(String value)
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withSchemas
public final ImmutableUaaUser withSchemas(String... elements)
Copy the current immutable object with elements that replace the content ofschemas.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withSchemas
public final ImmutableUaaUser withSchemas(Iterable<String> elements)
Copy the current immutable object with elements that replace the content ofschemas. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of schemas elements to set- Returns:
- A modified copy of
thisobject
-
withMeta
public final ImmutableUaaUser withMeta(UaaMeta value)
Copy the current immutable object by setting a value for themetaattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for meta (can benull)- Returns:
- A modified copy of the
thisobject
-
withName
public final ImmutableUaaUser withName(UaaUser.Name value)
Copy the current immutable object by setting a value for thenameattribute. A shallow reference equality check is 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
-
withEmails
public final ImmutableUaaUser withEmails(UaaUser.Email... elements)
Copy the current immutable object with elements that replace the content ofemails.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withEmails
public final ImmutableUaaUser withEmails(Iterable<? extends UaaUser.Email> elements)
Copy the current immutable object with elements that replace the content ofemails. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of emails elements to set- Returns:
- A modified copy of
thisobject
-
withExternalId
public final ImmutableUaaUser withExternalId(String value)
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
-
withUserName
public final ImmutableUaaUser withUserName(String value)
Copy the current immutable object by setting a value for theuserNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userName (can benull)- Returns:
- A modified copy of the
thisobject
-
withGroups
public final ImmutableUaaUser withGroups(UaaUser.Group... elements)
Copy the current immutable object with elements that replace the content ofgroups.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withGroups
public final ImmutableUaaUser withGroups(Iterable<? extends UaaUser.Group> elements)
Copy the current immutable object with elements that replace the content ofgroups. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of groups elements to set- Returns:
- A modified copy of
thisobject
-
withApprovals
public final ImmutableUaaUser withApprovals(UaaUser.Approval... elements)
Copy the current immutable object with elements that replace the content ofapprovals.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withApprovals
public final ImmutableUaaUser withApprovals(Iterable<? extends UaaUser.Approval> elements)
Copy the current immutable object with elements that replace the content ofapprovals. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of approvals elements to set- Returns:
- A modified copy of
thisobject
-
withActive
public final ImmutableUaaUser withActive(Boolean value)
Copy the current immutable object by setting a value for theactiveattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for active (can benull)- Returns:
- A modified copy of the
thisobject
-
withVerified
public final ImmutableUaaUser withVerified(Boolean value)
Copy the current immutable object by setting a value for theverifiedattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for verified (can benull)- Returns:
- A modified copy of the
thisobject
-
withOrigin
public final ImmutableUaaUser withOrigin(String value)
Copy the current immutable object by setting a value for theoriginattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for origin (can benull)- Returns:
- A modified copy of the
thisobject
-
withZoneId
public final ImmutableUaaUser withZoneId(String value)
Copy the current immutable object by setting a value for thezoneIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for zoneId (can benull)- Returns:
- A modified copy of the
thisobject
-
withPasswordLastModified
public final ImmutableUaaUser withPasswordLastModified(OffsetDateTime value)
Copy the current immutable object by setting a value for thepasswordLastModifiedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for passwordLastModified (can benull)- Returns:
- A modified copy of the
thisobject
-
withPreviousLogonTime
public final ImmutableUaaUser withPreviousLogonTime(Long value)
Copy the current immutable object by setting a value for thepreviousLogonTimeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for previousLogonTime (can benull)- Returns:
- A modified copy of the
thisobject
-
withLastLogonTime
public final ImmutableUaaUser withLastLogonTime(Long value)
Copy the current immutable object by setting a value for thelastLogonTimeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for lastLogonTime (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableUaaUserthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,schemas,meta,name,emails,externalId,userName,groups,approvals,active,verified,origin,zoneId,passwordLastModified,previousLogonTime,lastLogonTime.
-
toString
public String toString()
Prints the immutable valueUaaUserwith attribute values.
-
copyOf
public static ImmutableUaaUser copyOf(UaaUser instance)
Creates an immutable copy of aUaaUservalue. 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 UaaUser instance
-
builder
public static ImmutableUaaUser.Builder builder()
Creates a builder forImmutableUaaUser.ImmutableUaaUser.builder() .id(String) // requiredid.addSchemas|addAllSchemas(String) //schemaselements .meta(io.dialob.security.uaa.spi.model.UaaMeta | null) // nullablemeta.name(io.dialob.security.uaa.spi.model.UaaUser.Name | null) // nullablename.addEmails|addAllEmails(io.dialob.security.uaa.spi.model.UaaUser.Email) //emailselements .externalId(String | null) // nullableexternalId.userName(String | null) // nullableuserName.addGroups|addAllGroups(io.dialob.security.uaa.spi.model.UaaUser.Group) //groupselements .addApprovals|addAllApprovals(io.dialob.security.uaa.spi.model.UaaUser.Approval) //approvalselements .active(Boolean | null) // nullableactive.verified(Boolean | null) // nullableverified.origin(String | null) // nullableorigin.zoneId(String | null) // nullablezoneId.passwordLastModified(java.time.OffsetDateTime | null) // nullablepasswordLastModified.previousLogonTime(Long | null) // nullablepreviousLogonTime.lastLogonTime(Long | null) // nullablelastLogonTime.build();- Returns:
- A new ImmutableUaaUser builder
-
-