Class OrderProperties.Builder
java.lang.Object
com.caplin.motif.fx.ret.orders.strategy.builder.OrderProperties.Builder
- Enclosing class:
- OrderProperties
Helper class used to construct an
OrderProperties object.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a configuredOrderPropertiesobject.withAmount(String amount) Builds theOrderPropertieswith the specified amount.Builds theOrderPropertieswith the specified order.Builds theOrderPropertieswith the specified unit.
-
Field Details
-
order
-
-
Method Details
-
withOrder
Builds theOrderPropertieswith the specified order.- Parameters:
order- The order.- Returns:
- this
-
withUnit
Builds theOrderPropertieswith the specified unit.- Parameters:
unit- The unit.- Returns:
- this
-
withAmount
Builds theOrderPropertieswith the specified amount.- Parameters:
amount- The Amount.- Returns:
- this
-
build
Returns a configuredOrderPropertiesobject.- Returns:
- The OrderProperties
-