Class ByteShape.Builder
- java.lang.Object
-
- software.amazon.smithy.model.shapes.AbstractShapeBuilder<ByteShape.Builder,ByteShape>
-
- software.amazon.smithy.model.shapes.ByteShape.Builder
-
- All Implemented Interfaces:
FromSourceLocation
,SmithyBuilder<ByteShape>
- Enclosing class:
- ByteShape
public static final class ByteShape.Builder extends AbstractShapeBuilder<ByteShape.Builder,ByteShape>
Builder used to create aByteShape
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteShape
build()
Creates an immutable object that is created from the properties that have been set on the builder.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, getMember, getSourceLocation, id, id, mixins, removeMixin, removeTrait, removeTrait, source, source, traits
-
-
-
-
Method Detail
-
build
public ByteShape build()
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
-
getShapeType
public ShapeType getShapeType()
Description copied from class:AbstractShapeBuilder
Gets the type of shape being built.- Specified by:
getShapeType
in classAbstractShapeBuilder<ByteShape.Builder,ByteShape>
- Returns:
- Returns the shape type.
-
-