@Override @SafeVarargs public final Builder attributeValueList(Consumer<AttributeValue.Builder>... attributeValueList) { attributeValueList(Stream.of(attributeValueList).map(c -> AttributeValue.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; }
@Override @SafeVarargs public final Builder l(Consumer<Builder>... l) { l(Stream.of(l).map(c -> AttributeValue.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; }
@Override @SafeVarargs public final Builder attributeValueList(Consumer<AttributeValue.Builder>... attributeValueList) { attributeValueList(Stream.of(attributeValueList).map(c -> AttributeValue.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; }
/** * <p> * Represents the data for the expected attribute. * </p> * <p> * Each attribute value is described as a name-value pair. The name is the data type, and the value is the data * itself. * </p> * <p> * For more information, see <a href= * "http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes" * >Data Types</a> in the <i>Amazon DynamoDB Developer Guide</i>. * </p> * This is a convenience that creates an instance of the {@link AttributeValue.Builder} avoiding the need to * create one manually via {@link AttributeValue#builder()}. * * When the {@link Consumer} completes, {@link AttributeValue.Builder#build()} is called immediately and its * result is passed to {@link #value(AttributeValue)}. * * @param value * a consumer that will call methods on {@link AttributeValue.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #value(AttributeValue) */ default Builder value(Consumer<AttributeValue.Builder> value) { return value(AttributeValue.builder().applyMutation(value).build()); }
/** * <p> * Represents the data for an attribute. * </p> * <p> * Each attribute value is described as a name-value pair. The name is the data type, and the value is the data * itself. * </p> * <p> * For more information, see <a href= * "http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes" * >Data Types</a> in the <i>Amazon DynamoDB Developer Guide</i>. * </p> * This is a convenience that creates an instance of the {@link AttributeValue.Builder} avoiding the need to * create one manually via {@link AttributeValue#builder()}. * * When the {@link Consumer} completes, {@link AttributeValue.Builder#build()} is called immediately and its * result is passed to {@link #value(AttributeValue)}. * * @param value * a consumer that will call methods on {@link AttributeValue.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #value(AttributeValue) */ default Builder value(Consumer<AttributeValue.Builder> value) { return value(AttributeValue.builder().applyMutation(value).build()); }