Package net.solarnetwork.ocpp.domain
Class AuthorizationInfo.Builder
java.lang.Object
net.solarnetwork.ocpp.domain.AuthorizationInfo.Builder
- Enclosing class:
- AuthorizationInfo
Builder to build
AuthorizationInfo.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new instance from this builder.withExpiryDate(Instant expiryDate) Configure the expiration date.Configure the ID.withParentId(String parentId) Configure a parent ID.withStatus(AuthorizationStatus status) Configure a status.
-
Method Details
-
withId
Configure the ID.- Parameters:
id- the ID- Returns:
- this instance
-
withStatus
Configure a status.- Parameters:
status- the status- Returns:
- this instance
-
withExpiryDate
Configure the expiration date.- Parameters:
expiryDate- the expiration date- Returns:
- this instance
-
withParentId
Configure a parent ID.- Parameters:
parentId- the parent ID- Returns:
- this instance
-
build
Create a new instance from this builder.- Returns:
- the new instance
-