Class CollectionShape.Builder<B extends CollectionShape.Builder<B,S>,S extends CollectionShape>  
java.lang.Object
software.amazon.smithy.model.shapes.AbstractShapeBuilder<B,S>
 
software.amazon.smithy.model.shapes.CollectionShape.Builder<B,S> 
- Type Parameters:
- B- Concrete builder type.
- S- Shape type being created.
- All Implemented Interfaces:
- FromSourceLocation,- SmithyBuilder<S>
- Direct Known Subclasses:
- ListShape.Builder
- Enclosing class:
- CollectionShape
public abstract static class CollectionShape.Builder<B extends CollectionShape.Builder<B,S>,S extends CollectionShape>  
extends AbstractShapeBuilder<B,S> 
Builder used to create a List or Set shape.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddMember(MemberShape member) Adds a member to the shape IFF the shape supports members.Removes all members from the builder.Removes mixins from a shape and flattens them into the shape.Gets the optional member with the given name.Sets the shape ID of the shape.member(MemberShape member) Sets the member of the collection.Sets the member of the collection.member(ShapeId target, Consumer<MemberShape.Builder> memberUpdater) Sets the member of the collection.Methods inherited from class software.amazon.smithy.model.shapes.AbstractShapeBuilderaddMixin, addTrait, addTraits, clearMixins, clearTraits, getAllTraits, getId, getShapeType, getSourceLocation, id, mixins, removeMixin, removeTrait, removeTrait, source, source, traitsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.smithy.utils.SmithyBuilderbuild
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
getMemberDescription copied from class:AbstractShapeBuilderGets the optional member with the given name.- Overrides:
- getMemberin class- AbstractShapeBuilder<B extends CollectionShape.Builder<B,- S>, - S extends CollectionShape> 
- Returns:
- Returns the optional member with the given name.
 
- 
idDescription copied from class:AbstractShapeBuilderSets the shape ID of the shape.- Overrides:
- idin class- AbstractShapeBuilder<B extends CollectionShape.Builder<B,- S>, - S extends CollectionShape> 
- Parameters:
- shapeId- Shape ID to set.
- Returns:
- Returns the builder.
 
- 
memberSets the member of the collection.- Parameters:
- member- Member of the collection to set.
- Returns:
- Returns the builder.
 
- 
memberSets the member of the collection.- Parameters:
- target- Target of the member.
- Returns:
- Returns the builder.
 
- 
memberSets the member of the collection.- Parameters:
- target- Target of the member.
- memberUpdater- Consumer that can update the created member shape.
- Returns:
- Returns the builder.
 
- 
addMemberDescription copied from class:AbstractShapeBuilderAdds a member to the shape IFF the shape supports members.- Overrides:
- addMemberin class- AbstractShapeBuilder<B extends CollectionShape.Builder<B,- S>, - S extends CollectionShape> 
- Parameters:
- member- Member to add to the shape.
- Returns:
- Returns the builder.
 
- 
clearMembersDescription copied from class:AbstractShapeBuilderRemoves all members from the builder.- Overrides:
- clearMembersin class- AbstractShapeBuilder<B extends CollectionShape.Builder<B,- S>, - S extends CollectionShape> 
- Returns:
- Returns the builder.
 
- 
flattenMixinsDescription copied from class:AbstractShapeBuilderRemoves mixins from a shape and flattens them into the shape.Flattening a mixin into a shape copies the traits and members of a mixin onto the shape, effectively resulting in the same shape but with no trace of the mixin relationship. - Overrides:
- flattenMixinsin class- AbstractShapeBuilder<B extends CollectionShape.Builder<B,- S>, - S extends CollectionShape> 
- Returns:
- Returns the updated builder.
 
 
-