Class KeyValue.Builder
- java.lang.Object
-
- de.hybris.platform.integrationservices.integrationkey.KeyValue.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyValuebuild()Instantiates a newKeyValuewith the attribute values specified so far.KeyValue.BuilderwithValue(IntegrationObjectItemAttributeModel attribute, java.lang.Object value)Specifies a single attribute value for the key value to build.KeyValue.BuilderwithValue(KeyAttribute attribute, java.lang.Object value)Specifies a single attribute value for the key value to build.KeyValue.BuilderwithValues(java.util.Collection<KeyAttributeValue> values)Specifies multiple attribute values for the key value to build.
-
-
-
Method Detail
-
withValue
public KeyValue.Builder withValue(IntegrationObjectItemAttributeModel attribute, java.lang.Object value)
Specifies a single attribute value for the key value to build.- Parameters:
attribute- an attribute model, for which value is providedvalue- value for the attribute- Returns:
- a builder with the value specified
-
withValue
public KeyValue.Builder withValue(KeyAttribute attribute, java.lang.Object value)
Specifies a single attribute value for the key value to build.- Parameters:
attribute- an attribute, for which value is providedvalue- value for the attribute- Returns:
- a builder with the value specified
-
withValues
public KeyValue.Builder withValues(java.util.Collection<KeyAttributeValue> values)
Specifies multiple attribute values for the key value to build.- Parameters:
values- attribute values for the key- Returns:
- a builder with the attribute values specified.
-
build
public KeyValue build()
Instantiates a newKeyValuewith the attribute values specified so far. This method does not reset the specifications, so that subsequent calls will produce equal instances.- Returns:
- new
KeyValueinstance.
-
-