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 Details

    • Builder

      public Builder()
  • Method Details

    • operations

      public B operations(Collection<ShapeId> ids)
    • addOperation

      public B addOperation(ToShapeId id)
    • addOperation

      public B addOperation(String id)
    • removeOperation

      public B removeOperation(ToShapeId id)
    • clearOperations

      public B clearOperations()
    • resources

      public B resources(Collection<ShapeId> ids)
    • addResource

      public B addResource(ToShapeId id)
    • addResource

      public B addResource(String id)
    • removeResource

      public B removeResource(ToShapeId id)
    • clearResources

      public B clearResources()
    • flattenMixins

      public B 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 class AbstractShapeBuilder<B extends EntityShape.Builder<B,S>,S extends EntityShape>
      Returns:
      Returns the updated builder.