Class StaticAttribute.Builder<T,R>
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.mapper.StaticAttribute.Builder<T,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:
StaticAttribute<T,
R>
A typed builder for
StaticAttribute
.-
Method Summary
Modifier and TypeMethodDescriptionaddTag
(StaticAttributeTag tag) Associates a singleStaticAttributeTag
with this attribute.attributeConverter
(AttributeConverter<R> attributeConverter) AnAttributeConverter
for the attribute type (EnhancedType
), that can convert this attribute.build()
Builds aStaticAttributeTag
from 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<T, R> setter) A function that can set the value of this attribute on a modelled item it composes.tags
(Collection<StaticAttributeTag> tags) A collection ofStaticAttributeTag
associated with this attribute.tags
(StaticAttributeTag... tags) A collection ofStaticAttributeTag
associated with this attribute.
-
Method Details
-
name
The name of this attribute -
getter
A function that can get the value of this attribute from a modelled item it composes. -
setter
A function that can set the value of this attribute on a modelled item it composes. -
tags
A collection ofStaticAttributeTag
associated with this attribute. Overwrites any existing tags. -
tags
A collection ofStaticAttributeTag
associated with this attribute. Overwrites any existing tags. -
addTag
Associates a singleStaticAttributeTag
with this attribute. Adds to any existing tags. -
attributeConverter
AnAttributeConverter
for 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 aStaticAttributeTag
from the values stored in this builder.
-