Interface UserDataRequestBuilder
public interface UserDataRequestBuilder
Interface for building well formed instance of UserDataRequest
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns an instance of aUserDataRequest
which was constructed using the builderwithCustomerExtendedInfo
(Collection<String> customerExtendedInfo) Sets the additional attributes of the Customer in the UserDataRequest.withDataReferences
(Collection<Integer> dataReferences) Sets the data-references in the UserDataRequest.withPreferences
(Collection<String> preferences) Sets the preferences in the UserDataRequest.withProductExtendedInfo
(Collection<String> productExtendedInfo) Sets the additional attributes of the product in the UserDataRequest.withProductType
(String productType) Sets the ProductType in the UserDataRequest.withRequestTime
(ZonedDateTime requestTime) Sets request time in the UserDataRequest.withUserIdentity
(String userIdentity) Sets the user identity in the UserDataRequest.
-
Method Details
-
withUserIdentity
Sets the user identity in the UserDataRequest. This is a mandatory fieldEquivalent diameter AVP : Public-Identity
- Parameters:
userIdentity
- PublicUserIdentity of the product. Eg. 6500001- Returns:
- the current builder to support chaining construct.
-
withProductType
Sets the ProductType in the UserDataRequest. This is a optional fieldEquivalent diameter AVP : Service-Indication
- Parameters:
productType
- product type. Eg: DATA- Returns:
- the current builder to support chaining construct.
-
withPreferences
Sets the preferences in the UserDataRequest. This is a optional field- Parameters:
preferences
- collection of preference names. Eg: [Chanel, Language]- Returns:
- the current builder to support chaining construct.
-
withRequestTime
Sets request time in the UserDataRequest. This is a Mandatory field- Parameters:
requestTime
- request time Eg. 2013-11-01T00:01:00- Returns:
- the current builder to support chaining construct.
-
withCustomerExtendedInfo
Sets the additional attributes of the Customer in the UserDataRequest. This is a optional field- Parameters:
customerExtendedInfo
- collection of aliases for customer attributes configured in ECE.
For more information please refer ECE docs.
Eg. [ratingProfileCorporate]- Returns:
- the current builder to support chaining construct.
-
withProductExtendedInfo
Sets the additional attributes of the product in the UserDataRequest. This is a optional field- Parameters:
productExtendedInfo
- collection of aliases for product attributes configured in ECE.
For more information please refer ECE docs
Eg. [lifeCycleStateName, publicIdentifiers]- Returns:
- the current builder to support chaining construct.
-
withDataReferences
Sets the data-references in the UserDataRequest. Data-references are numbers sent by the diameter which map to a preference or extended info in ECE.Equivalent diameter AVP : Data-Reference
- Parameters:
dataReferences
- collection of data reference numbers. Eg: [51,52]- Returns:
- the current builder to support chaining construct.
-
build
Returns an instance of aUserDataRequest
which was constructed using the builder- Returns:
- an instance of a
UserDataRequest
created using the builder - Throws:
MessagesQueryException
- if mandatory field's are not set
-