Class KeyValue.Builder

  • Enclosing class:
    KeyValue

    public static class KeyValue.Builder
    extends java.lang.Object
    A builder for the KeyValue
    • Constructor Detail

      • Builder

        public Builder()
    • 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 provided
        value - 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 provided
        value - 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 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.