Package io.dialob.security.uaa.spi.model
Class ImmutableUaaUser.Approval
- java.lang.Object
-
- io.dialob.security.uaa.spi.model.ImmutableUaaUser.Approval
-
- All Implemented Interfaces:
UaaUser.Approval
- Enclosing class:
- ImmutableUaaUser
@Immutable public static final class ImmutableUaaUser.Approval extends Object implements UaaUser.Approval
Immutable implementation ofUaaUser.Approval.Use the builder to create immutable instances:
ImmutableUaaUser.Approval.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableUaaUser.Approval.BuilderBuilds instances of typeApproval.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableUaaUser.Approval.Builderbuilder()Creates a builder forApproval.static ImmutableUaaUser.ApprovalcopyOf(UaaUser.Approval instance)Creates an immutable copy of aUaaUser.Approvalvalue.booleanequals(Object another)This instance is equal to all instances ofApprovalthat have equal attribute values.StringgetClientId()OffsetDateTimegetExpiresAt()OffsetDateTimegetLastUpdatedAt()StringgetScope()StringgetStatus()StringgetUserId()inthashCode()Computes a hash code from attributes:userId,clientId,scope,status,lastUpdatedAt,expiresAt.StringtoString()Prints the immutable valueApprovalwith attribute values.ImmutableUaaUser.ApprovalwithClientId(String value)Copy the current immutable object by setting a value for theclientIdattribute.ImmutableUaaUser.ApprovalwithExpiresAt(OffsetDateTime value)Copy the current immutable object by setting a value for theexpiresAtattribute.ImmutableUaaUser.ApprovalwithLastUpdatedAt(OffsetDateTime value)Copy the current immutable object by setting a value for thelastUpdatedAtattribute.ImmutableUaaUser.ApprovalwithScope(String value)Copy the current immutable object by setting a value for thescopeattribute.ImmutableUaaUser.ApprovalwithStatus(String value)Copy the current immutable object by setting a value for thestatusattribute.ImmutableUaaUser.ApprovalwithUserId(String value)Copy the current immutable object by setting a value for theuserIdattribute.
-
-
-
Method Detail
-
getUserId
public String getUserId()
- Specified by:
getUserIdin interfaceUaaUser.Approval- Returns:
- The value of the
userIdattribute
-
getClientId
public String getClientId()
- Specified by:
getClientIdin interfaceUaaUser.Approval- Returns:
- The value of the
clientIdattribute
-
getScope
public String getScope()
- Specified by:
getScopein interfaceUaaUser.Approval- Returns:
- The value of the
scopeattribute
-
getStatus
public String getStatus()
- Specified by:
getStatusin interfaceUaaUser.Approval- Returns:
- The value of the
statusattribute
-
getLastUpdatedAt
public OffsetDateTime getLastUpdatedAt()
- Specified by:
getLastUpdatedAtin interfaceUaaUser.Approval- Returns:
- The value of the
lastUpdatedAtattribute
-
getExpiresAt
public OffsetDateTime getExpiresAt()
- Specified by:
getExpiresAtin interfaceUaaUser.Approval- Returns:
- The value of the
expiresAtattribute
-
withUserId
public final ImmutableUaaUser.Approval withUserId(String value)
Copy the current immutable object by setting a value for theuserIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userId (can benull)- Returns:
- A modified copy of the
thisobject
-
withClientId
public final ImmutableUaaUser.Approval withClientId(String value)
Copy the current immutable object by setting a value for theclientIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for clientId (can benull)- Returns:
- A modified copy of the
thisobject
-
withScope
public final ImmutableUaaUser.Approval withScope(String value)
Copy the current immutable object by setting a value for thescopeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for scope (can benull)- Returns:
- A modified copy of the
thisobject
-
withStatus
public final ImmutableUaaUser.Approval withStatus(String value)
Copy the current immutable object by setting a value for thestatusattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for status (can benull)- Returns:
- A modified copy of the
thisobject
-
withLastUpdatedAt
public final ImmutableUaaUser.Approval withLastUpdatedAt(OffsetDateTime value)
Copy the current immutable object by setting a value for thelastUpdatedAtattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for lastUpdatedAt (can benull)- Returns:
- A modified copy of the
thisobject
-
withExpiresAt
public final ImmutableUaaUser.Approval withExpiresAt(OffsetDateTime value)
Copy the current immutable object by setting a value for theexpiresAtattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for expiresAt (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofApprovalthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:userId,clientId,scope,status,lastUpdatedAt,expiresAt.
-
toString
public String toString()
Prints the immutable valueApprovalwith attribute values.
-
copyOf
public static ImmutableUaaUser.Approval copyOf(UaaUser.Approval instance)
Creates an immutable copy of aUaaUser.Approvalvalue. 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 Approval instance
-
builder
public static ImmutableUaaUser.Approval.Builder builder()
Creates a builder forApproval.ImmutableUaaUser.Approval.builder() .userId(String | null) // nullableuserId.clientId(String | null) // nullableclientId.scope(String | null) // nullablescope.status(String | null) // nullablestatus.lastUpdatedAt(java.time.OffsetDateTime | null) // nullablelastUpdatedAt.expiresAt(java.time.OffsetDateTime | null) // nullableexpiresAt.build();- Returns:
- A new Approval builder
-
-