Class ListShape.Builder
- java.lang.Object
-
- software.amazon.smithy.model.shapes.AbstractShapeBuilder<B,S>
-
- software.amazon.smithy.model.shapes.CollectionShape.Builder<ListShape.Builder,ListShape>
-
- software.amazon.smithy.model.shapes.ListShape.Builder
-
- All Implemented Interfaces:
FromSourceLocation
,software.amazon.smithy.utils.SmithyBuilder<ListShape>
- Enclosing class:
- ListShape
public static final class ListShape.Builder extends CollectionShape.Builder<ListShape.Builder,ListShape>
Builder used to create aListShape
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListShape
build()
ShapeType
getShapeType()
Gets the type of shape being built.-
Methods inherited from class software.amazon.smithy.model.shapes.CollectionShape.Builder
addMember, member, member, member
-
Methods inherited from class software.amazon.smithy.model.shapes.AbstractShapeBuilder
addTrait, addTraits, clearTraits, getId, getSourceLocation, id, id, removeTrait, removeTrait, source, source, traits
-
-
-
-
Method Detail
-
build
public ListShape build()
-
getShapeType
public ShapeType getShapeType()
Description copied from class:AbstractShapeBuilder
Gets the type of shape being built.- Specified by:
getShapeType
in classAbstractShapeBuilder<ListShape.Builder,ListShape>
- Returns:
- Returns the shape type.
-
-