Class StringShape.Builder
- java.lang.Object
-
- software.amazon.smithy.model.shapes.AbstractShapeBuilder<StringShape.Builder,StringShape>
-
- software.amazon.smithy.model.shapes.StringShape.Builder
-
- All Implemented Interfaces:
FromSourceLocation
,software.amazon.smithy.utils.SmithyBuilder<StringShape>
- Direct Known Subclasses:
EnumShape.Builder
- Enclosing class:
- StringShape
public static class StringShape.Builder extends AbstractShapeBuilder<StringShape.Builder,StringShape>
Builder used to create aStringShape
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringShape
build()
ShapeType
getShapeType()
Gets the type of shape being built.-
Methods inherited from class software.amazon.smithy.model.shapes.AbstractShapeBuilder
addMember, addMixin, addTrait, addTraits, clearMembers, clearMixins, clearTraits, flattenMixins, getAllTraits, getId, getSourceLocation, id, id, mixins, removeMixin, removeTrait, removeTrait, source, source, traits
-
-
-
-
Method Detail
-
build
public StringShape build()
-
getShapeType
public ShapeType getShapeType()
Description copied from class:AbstractShapeBuilder
Gets the type of shape being built.- Specified by:
getShapeType
in classAbstractShapeBuilder<StringShape.Builder,StringShape>
- Returns:
- Returns the shape type.
-
-