Class EntityShape.Builder<B extends EntityShape.Builder<B,S>,S extends EntityShape>
java.lang.Object
software.amazon.smithy.model.shapes.AbstractShapeBuilder<B,S>
software.amazon.smithy.model.shapes.EntityShape.Builder<B,S>
- Type Parameters:
B
- Concrete builder type.S
- Shape type being created.
- All Implemented Interfaces:
FromSourceLocation
,SmithyBuilder<S>
- Direct Known Subclasses:
ResourceShape.Builder
,ServiceShape.Builder
- Enclosing class:
- EntityShape
public abstract static class EntityShape.Builder<B extends EntityShape.Builder<B,S>,S extends EntityShape>
extends AbstractShapeBuilder<B,S>
Builder used to create a Service or Resource shape.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddOperation
(String id) addResource
(String id) addResource
(ToShapeId id) Removes mixins from a shape and flattens them into the shape.operations
(Collection<ShapeId> ids) resources
(Collection<ShapeId> ids) Methods inherited from class software.amazon.smithy.model.shapes.AbstractShapeBuilder
addMember, addMixin, addTrait, addTraits, clearMembers, clearMixins, clearTraits, getAllTraits, getId, getShapeType, getSourceLocation, id, id, mixins, removeMixin, removeTrait, removeTrait, source, source, traits
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.smithy.utils.SmithyBuilder
build
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
operations
-
addOperation
-
addOperation
-
removeOperation
-
clearOperations
-
resources
-
addResource
-
addResource
-
removeResource
-
clearResources
-
flattenMixins
Description copied from class:AbstractShapeBuilder
Removes 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:
flattenMixins
in classAbstractShapeBuilder<B extends EntityShape.Builder<B,
S>, S extends EntityShape> - Returns:
- Returns the updated builder.
-