Class EntityShape.Builder<B extends EntityShape.Builder<?,?>,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<?,?>,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()