Class ImmutableAttribute.Builder<T,B,R>
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.mapper.ImmutableAttribute.Builder<T,B,R>
- Type Parameters:
T- the class of the item this attribute maps into.R- the class that the value of this attribute converts to.
- Enclosing class:
ImmutableAttribute<T,B, R>
A typed builder for
ImmutableAttribute.-
Method Summary
Modifier and TypeMethodDescriptionaddTag(StaticAttributeTag tag) Associates a singleStaticAttributeTagwith this attribute.attributeConverter(AttributeConverter<R> attributeConverter) AnAttributeConverterfor the attribute type (EnhancedType), that can convert this attribute.build()Builds aStaticAttributeTagfrom the values stored in this builder.A function that can get the value of this attribute from a modelled item it composes.The name of this attributesetter(BiConsumer<B, R> setter) A function that can set the value of this attribute on a modelled item it composes.tags(Collection<StaticAttributeTag> tags) A collection ofStaticAttributeTagassociated with this attribute.tags(StaticAttributeTag... tags) A collection ofStaticAttributeTagassociated with this attribute.
-
Method Details
-
name
The name of this attribute -
getter
-
setter
A function that can set the value of this attribute on a modelled item it composes. -
tags
A collection ofStaticAttributeTagassociated with this attribute. Overwrites any existing tags. -
tags
A collection ofStaticAttributeTagassociated with this attribute. Overwrites any existing tags. -
addTag
Associates a singleStaticAttributeTagwith this attribute. Adds to any existing tags. -
attributeConverter
public ImmutableAttribute.Builder<T,B, attributeConverterR> (AttributeConverter<R> attributeConverter) AnAttributeConverterfor the attribute type (EnhancedType), that can convert this attribute. It takes precedence over any converter for this type provided by the table schemaAttributeConverterProvider. -
build
Builds aStaticAttributeTagfrom the values stored in this builder.
-