Class EntityShape
- java.lang.Object
-
- software.amazon.smithy.model.shapes.Shape
-
- software.amazon.smithy.model.shapes.EntityShape
-
- All Implemented Interfaces:
java.lang.Comparable<Shape>
,FromSourceLocation
,ToShapeId
,Tagged
- Direct Known Subclasses:
ResourceShape
,ServiceShape
public abstract class EntityShape extends Shape
Abstract class representing service and resource shapes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EntityShape.Builder<B extends EntityShape.Builder,S extends EntityShape>
Builder used to create a Service or Resource shape.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
java.util.Set<ShapeId>
getAllOperations()
Get all operations directly bound to this shape.java.util.Set<ShapeId>
getOperations()
Gets operations bound only through the "operations" property.java.util.Set<ShapeId>
getResources()
-
Methods inherited from class software.amazon.smithy.model.shapes.Shape
accept, asBigDecimalShape, asBigIntegerShape, asBlobShape, asBooleanShape, asByteShape, asDocumentShape, asDoubleShape, asFloatShape, asIntegerShape, asListShape, asLongShape, asMapShape, asMemberShape, asOperationShape, asResourceShape, asServiceShape, asSetShape, asShortShape, asStringShape, asStructureShape, asTimestampShape, asUnionShape, compareTo, expectTrait, findMemberTrait, findTrait, findTrait, getAllTraits, getId, getMemberTrait, getSourceLocation, getTags, getTrait, getType, hashCode, hasTrait, hasTrait, hasTrait, isBigDecimalShape, isBigIntegerShape, isBlobShape, isBooleanShape, isByteShape, isDocumentShape, isDoubleShape, isFloatShape, isIntegerShape, isListShape, isLongShape, isMapShape, isMemberShape, isOperationShape, isResourceShape, isServiceShape, isSetShape, isShortShape, isStringShape, isStructureShape, isTimestampShape, isUnionShape, members, shapeToBuilder, toShapeId, toString
-
-
-
-
Method Detail
-
getResources
public final java.util.Set<ShapeId> getResources()
- Returns:
- Get all of the resources directly bound to this shape.
-
getOperations
public final java.util.Set<ShapeId> getOperations()
Gets operations bound only through the "operations" property.This will not include operations bound to resources using a lifecycle operation binding.
- Returns:
- Get the "operations" directly bound to this shape.
- See Also:
getAllOperations()
-
getAllOperations
public java.util.Set<ShapeId> getAllOperations()
Get all operations directly bound to this shape.- Returns:
- Returns all operations bound to the shape.
-
-