Package io.dialob.security.uaa.spi.model
Class ImmutableUaaUser.Approval.Builder
- java.lang.Object
-
- io.dialob.security.uaa.spi.model.ImmutableUaaUser.Approval.Builder
-
- Enclosing class:
- ImmutableUaaUser.Approval
@NotThreadSafe public static final class ImmutableUaaUser.Approval.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableUaaUser.Approvalbuild()Builds a newApproval.ImmutableUaaUser.Approval.BuilderclientId(String clientId)Initializes the value for theclientIdattribute.ImmutableUaaUser.Approval.BuilderexpiresAt(OffsetDateTime expiresAt)Initializes the value for theexpiresAtattribute.ImmutableUaaUser.Approval.Builderfrom(UaaUser.Approval instance)Fill a builder with attribute values from the providedApprovalinstance.ImmutableUaaUser.Approval.BuilderlastUpdatedAt(OffsetDateTime lastUpdatedAt)Initializes the value for thelastUpdatedAtattribute.ImmutableUaaUser.Approval.Builderscope(String scope)Initializes the value for thescopeattribute.ImmutableUaaUser.Approval.Builderstatus(String status)Initializes the value for thestatusattribute.ImmutableUaaUser.Approval.BuilderuserId(String userId)Initializes the value for theuserIdattribute.
-
-
-
Method Detail
-
from
public final ImmutableUaaUser.Approval.Builder from(UaaUser.Approval instance)
Fill a builder with attribute values from the providedApprovalinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
userId
public final ImmutableUaaUser.Approval.Builder userId(String userId)
Initializes the value for theuserIdattribute.- Parameters:
userId- The value for userId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
clientId
public final ImmutableUaaUser.Approval.Builder clientId(String clientId)
Initializes the value for theclientIdattribute.- Parameters:
clientId- The value for clientId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
scope
public final ImmutableUaaUser.Approval.Builder scope(String scope)
Initializes the value for thescopeattribute.- Parameters:
scope- The value for scope (can benull)- Returns:
thisbuilder for use in a chained invocation
-
status
public final ImmutableUaaUser.Approval.Builder status(String status)
Initializes the value for thestatusattribute.- Parameters:
status- The value for status (can benull)- Returns:
thisbuilder for use in a chained invocation
-
lastUpdatedAt
public final ImmutableUaaUser.Approval.Builder lastUpdatedAt(OffsetDateTime lastUpdatedAt)
Initializes the value for thelastUpdatedAtattribute.- Parameters:
lastUpdatedAt- The value for lastUpdatedAt (can benull)- Returns:
thisbuilder for use in a chained invocation
-
expiresAt
public final ImmutableUaaUser.Approval.Builder expiresAt(OffsetDateTime expiresAt)
Initializes the value for theexpiresAtattribute.- Parameters:
expiresAt- The value for expiresAt (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableUaaUser.Approval build()
Builds a newApproval.- Returns:
- An immutable instance of Approval
- Throws:
IllegalStateException- if any required attributes are missing
-
-