Package net.solarnetwork.ocpp.domain
Class AuthorizationInfo
java.lang.Object
net.solarnetwork.ocpp.domain.AuthorizationInfo
Charge Point authorization information.
- Version:
- 1.0
- Author:
- matt
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAuthorizationInfo(String id, AuthorizationStatus status) Constructor.AuthorizationInfo(String id, AuthorizationStatus status, Instant expiryDate, String parentId) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthorizationInfo.Builderbuilder()Creates builder to buildAuthorizationInfo.Get the expiration date.getId()Get the ID.Get the authorization parent ID.Get the status.Get a builder, populated with this instance's values.toString()
-
Constructor Details
-
AuthorizationInfo
Constructor.- Parameters:
id- the ID value, e.g. RFID tag IDstatus- the associated OCCP status
-
AuthorizationInfo
public AuthorizationInfo(String id, AuthorizationStatus status, Instant expiryDate, String parentId) Constructor.- Parameters:
id- the ID value, e.g. RFID tag IDstatus- the associated OCCP statusexpiryDate- the expiration dateparentId- a parent ID
-
-
Method Details
-
toString
-
getId
Get the ID.- Returns:
- the ID
-
getStatus
Get the status.- Returns:
- the status.
-
getExpiryDate
Get the expiration date.- Returns:
- the expiration date
-
getParentId
Get the authorization parent ID.- Returns:
- the parent ID
-
toBuilder
Get a builder, populated with this instance's values.- Returns:
- a pre-populated builder
-
builder
Creates builder to buildAuthorizationInfo.- Returns:
- created builder
-