public interface PolicyRequestBuilder<S,T extends PolicyRequestBuilder>
Modifier and Type | Method and Description |
---|---|
PolicyRequest |
build()
Returns an instance of a PolicyRequest which was constructed using this builder.
|
T |
withProductType(java.lang.String productType)
Sets the product type in the request.
|
T |
withRequestTime(java.time.ZonedDateTime requestTime)
Sets the request time in the request.
|
T |
withRequestType(S requestType)
Sets the request type in the request.
|
T |
withSessionId(java.lang.String sessionId)
Sets the session id in the Policy Request.
|
T |
withUserIdentity(java.lang.String userIdentity)
Sets the user identity in the request .This is a mandatory filed
|
T withSessionId(java.lang.String sessionId)
sessionId
- unique identifier associated with the request (eg. SESSION-001)T withUserIdentity(java.lang.String userIdentity)
Equivalent diameter AVP : Subscription-Id -> Subscription-Id-Data or Public-Identity
userIdentity
- user identity for the user (eg. 14081234567)T withProductType(java.lang.String productType)
Equivalent diameter AVP : Service-Indication
productType
- type of the product (eg. VOICE, DATA)T withRequestTime(java.time.ZonedDateTime requestTime)
requestTime
- request time (eg. 2013-11-01T00:01:00)T withRequestType(S requestType)
Equivalent diameter AVP : Subs-Req-Type
requestType
- request type (eg. INITIAL)PolicyRequest build() throws MessagesPolicyException
MessagesPolicyException
- MessagesPolicyException