Interface PayloadSpecBuilder
public interface PayloadSpecBuilder
Builds a payload spec
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Enum applies to begin functions. -
Method Summary
Modifier and TypeMethodDescriptionbeginBlockSpec
(String name) Creates a block of namename
beginFieldSpec
(String name, oracle.communication.brm.charging.config.attributespec.AttributeSpecTypes type) Creates a new fieldCreates a root blockbuild()
Build and return the payload specIndicates that the creation of block in payload spec has endedIndicates that the creation of field in payload spec has endedIndicates that the creation of the root block in payload spec has endedwithAction
(String action) Currently one of "INPUT" or "OUTPUT" If "INPUT", the Pricing Updater uses this Payload spec to be part of a RequestSpecificationwithCardinality
(String cardinality) Sets the cardinality of the PayloadItemwithDefaultBeginMode
(PayloadSpecBuilder.BeginMode beginMode) Whether to use re-use of replace existing PayloadItemwithDefaultValue
(String value) Sets a default value for this PayloadItemwithNetworkField
(String networkField) Sets the name of the associated network field in the network specwithNetworkField5g
(String networkField5g) Sets the name of the associated network field in the network specwithOperationTypes
(String... ops) The Operation types to associate with the Payload spec to be builtwithPersistenceField
(String persistenceField) Sets the name of the associated database field in BRMwithPersistenceField5g
(String persistenceField5g) Sets the name of the associated database field in BRMwithPrimaryPersistenceField
(boolean isPrimaryPersistenceField) Sets the primary persistence field indicator.
-
Method Details
-
withDefaultBeginMode
Whether to use re-use of replace existing PayloadItem- Parameters:
beginMode
- One of USE_EXISTING or REPLACE_EXISTING- Returns:
- this PayloadSpecBuilder
-
withOperationTypes
The Operation types to associate with the Payload spec to be built- Parameters:
ops
-- Returns:
-
withAction
Currently one of "INPUT" or "OUTPUT" If "INPUT", the Pricing Updater uses this Payload spec to be part of a RequestSpecification- Parameters:
action
-- Returns:
-
beginRootBlockSpec
PayloadSpecBuilder beginRootBlockSpec()Creates a root block- Returns:
-
beginBlockSpec
Creates a block of namename
- Parameters:
name
-- Returns:
-
withCardinality
Sets the cardinality of the PayloadItem- Parameters:
cardinality
-- Returns:
-
withNetworkField
Sets the name of the associated network field in the network spec- Parameters:
networkField
-- Returns:
-
withNetworkField5g
Sets the name of the associated network field in the network spec- Parameters:
networkField5g
-- Returns:
-
withPersistenceField
Sets the name of the associated database field in BRM- Parameters:
persistenceField
-- Returns:
-
withPersistenceField5g
Sets the name of the associated database field in BRM- Parameters:
persistenceField5g
-- Returns:
-
withPrimaryPersistenceField
Sets the primary persistence field indicator.- Parameters:
isPrimaryPersistenceField
- {true}, if the field is a persistence field is primary or not- Returns:
-
withDefaultValue
Sets a default value for this PayloadItem- Parameters:
value
-- Returns:
-
beginFieldSpec
PayloadSpecBuilder beginFieldSpec(String name, oracle.communication.brm.charging.config.attributespec.AttributeSpecTypes type) throws oracle.communication.brm.charging.config.ConfigException Creates a new field- Parameters:
name
- Name of the fieldtype
- Payload type of the field- Returns:
- this PayloadSpecBuilder
- Throws:
oracle.communication.brm.charging.config.ConfigException
-
endFieldSpec
PayloadSpecBuilder endFieldSpec()Indicates that the creation of field in payload spec has ended- Returns:
-
endBlockSpec
PayloadSpecBuilder endBlockSpec()Indicates that the creation of block in payload spec has ended- Returns:
-
endRootBlockSpec
PayloadSpecBuilder endRootBlockSpec()Indicates that the creation of the root block in payload spec has ended- Returns:
-
build
PayloadSpec build()Build and return the payload spec- Returns:
-