Class EntityShape

java.lang.Object
software.amazon.smithy.model.shapes.Shape
software.amazon.smithy.model.shapes.EntityShape
All Implemented Interfaces:
Comparable<Shape>, FromSourceLocation, ToShapeId, Tagged
Direct Known Subclasses:
ResourceShape, ServiceShape

public abstract class EntityShape extends Shape
Abstract class representing service and resource shapes.
  • Method Details

    • getResources

      public final Set<ShapeId> getResources()
      Returns:
      Get all the resources directly bound to this shape.
    • getIntroducedResources

      public final Set<ShapeId> getIntroducedResources()
      Gets all the directly-bound resources introduced by this shape and not inherited from mixins.
      Returns:
      Gets the introduced resources directly-bound to the shape.
    • getOperations

      public final Set<ShapeId> getOperations()
      Gets operations bound only through the "operations" property.

      This will not include operations bound to resources using a lifecycle operation binding. This will also not include operations bound to this entity through sub-resources.

      Returns:
      Get the "operations" directly bound to this shape.
      See Also:
    • getIntroducedOperations

      public final Set<ShapeId> getIntroducedOperations()
      Gets operations bound through the "operations" property that were not inherited from mixins.

      This will not include operations bound to resources using a lifecycle operation binding. This will also not include operations bound to this entity through sub-resources.

      Returns:
      Gets the introduced operations.
    • getAllOperations

      public Set<ShapeId> getAllOperations()
      Get all operations directly bound to this shape.

      This will include operations bound directly to resources using a lifecycle operation binding. This will not include operations bound to this entity through sub-resources.

      Returns:
      Returns all operations bound to the shape.
      See Also:
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Shape