Class IntegrationObjectBuilder
- java.lang.Object
-
- de.hybris.platform.integrationservices.IntegrationObjectBuilder
-
public class IntegrationObjectBuilder extends java.lang.ObjectA builder forIntegrationObjectModel
-
-
Constructor Summary
Constructors Constructor Description IntegrationObjectBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegrationObjectBuilderaddIntegrationObjectItem(IntegrationObjectItemBuilder spec)Adds anIntegrationObjectItemModelfrom the specification to the integration objectIntegrationObjectBuilderaddIntegrationObjectItem(IntegrationObjectItemModel item)Adds anIntegrationObjectItemModelto the integration objectIntegrationObjectModelbuild()Each time build() is called, a new instance of the theIntegrationObjectModelis returned with the same properties that were set.static IntegrationObjectBuilderintegrationObject()Get a new instance of the builderIntegrationObjectBuilderwithCode(java.lang.String code)
-
-
-
Method Detail
-
integrationObject
public static IntegrationObjectBuilder integrationObject()
Get a new instance of the builder- Returns:
- IntegrationObjectBuilder
-
withCode
public IntegrationObjectBuilder withCode(java.lang.String code)
-
addIntegrationObjectItem
public IntegrationObjectBuilder addIntegrationObjectItem(IntegrationObjectItemBuilder spec)
Adds anIntegrationObjectItemModelfrom the specification to the integration object- Parameters:
spec- Specification to an IntegrationObjectItemModel- Returns:
- IntegrationObjectBuilder
-
addIntegrationObjectItem
public IntegrationObjectBuilder addIntegrationObjectItem(IntegrationObjectItemModel item)
Adds anIntegrationObjectItemModelto the integration object- Parameters:
item- Item to add- Returns:
- IntegrationObjectBuilder
-
build
public IntegrationObjectModel build()
Each time build() is called, a new instance of the theIntegrationObjectModelis returned with the same properties that were set.- Returns:
- IntegrationObjectModel
-
-