public static interface Item.Builder extends CopyableBuilder<Item.Builder,Item>
Modifier and Type | Method and Description |
---|---|
Item.Builder |
alternateNameEncoding(String alternateNameEncoding) |
Item.Builder |
attributes(Attribute... attributes)
A list of attributes.
|
Item.Builder |
attributes(Collection<Attribute> attributes)
A list of attributes.
|
Item.Builder |
attributes(Consumer<Attribute.Builder>... attributes)
A list of attributes.
|
Item.Builder |
name(String name)
The name of the item.
|
copy
applyMutation, build
Item.Builder name(String name)
name
- The name of the item.Item.Builder alternateNameEncoding(String alternateNameEncoding)
alternateNameEncoding
- Item.Builder attributes(Collection<Attribute> attributes)
attributes
- A list of attributes.Item.Builder attributes(Attribute... attributes)
attributes
- A list of attributes.Item.Builder attributes(Consumer<Attribute.Builder>... attributes)
List.Builder
avoiding the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #attributes(List)
.attributes
- a consumer that will call methods on List.Builder
#attributes(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.