java.lang.Object
de.hybris.platform.integrationservices.integrationkey.KeyValue.Builder
Enclosing class:
KeyValue

public static class KeyValue.Builder extends Object
A builder for the KeyValue
  • 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.
      use withValue(TypeAttributeDescriptor, Object) instead to avoid conversion of the attribute model to TypeAttributeDescriptor
      Specifies a single attribute value for the key value to build.
      Parameters:
      attribute - an attribute model, for which value is provided
      value - value for the attribute
      Returns:
      a builder with the value specified
    • withValue

      public KeyValue.Builder withValue(TypeAttributeDescriptor attribute, Object value)
      Specifies a single attribute value for the key value to build.
      Parameters:
      attribute - descriptor of an attribute, for which value is provided
      value - value for the attribute
      Returns:
      a builder with the value specified
    • withValue

      public KeyValue.Builder withValue(KeyAttribute attribute, Object value)
      Specifies a single attribute value for the key value to build.
      Parameters:
      attribute - an attribute, for which value is provided
      value - value for the attribute
      Returns:
      a builder with the value specified
    • withValues

      public KeyValue.Builder withValues(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 new KeyValue with the attribute values specified so far. This method does not reset the specifications, so that subsequent calls will produce equal instances.
      Returns:
      new KeyValue instance.