Class KeyValue.Builder
java.lang.Object
de.hybris.platform.integrationservices.integrationkey.KeyValue.Builder
- Enclosing class:
- KeyValue
A builder for the
KeyValue-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Instantiates a newKeyValuewith the attribute values specified so far.withValue(IntegrationObjectItemAttributeModel attribute, Object value) Deprecated, for removal: This API element is subject to removal in a future version.withValue(KeyAttribute attribute, Object value) Specifies a single attribute value for the key value to build.withValue(TypeAttributeDescriptor attribute, Object value) Specifies a single attribute value for the key value to build.withValues(Collection<KeyAttributeValue> values) Specifies multiple attribute values for the key value to build.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withValue
@Deprecated(since="2205", forRemoval=true) public KeyValue.Builder withValue(IntegrationObjectItemAttributeModel attribute, Object value) Deprecated, for removal: This API element is subject to removal in a future version.usewithValue(TypeAttributeDescriptor, Object)instead to avoid conversion of the attribute model toTypeAttributeDescriptorSpecifies 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
Specifies a single attribute value for the key value to build.- Parameters:
attribute- descriptor of an attribute, for which value is providedvalue- value for the attribute- Returns:
- a builder with the value specified
-
withValue
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
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
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.
-
withValue(TypeAttributeDescriptor, Object)instead to avoid conversion of the attribute model toTypeAttributeDescriptor