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
Abstract class representing service and resource shapes.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
EntityShape.Builder<B extends EntityShape.Builder<B,
S>, S extends EntityShape> Builder used to create a Service or Resource shape. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get all operations directly bound to this shape.Gets operations bound through the "operations" property that were not inherited from mixins.Gets all the directly-bound resources introduced by this shape and not inherited from mixins.Gets operations bound only through the "operations" property.Methods inherited from class software.amazon.smithy.model.shapes.Shape
accept, asBigDecimalShape, asBigIntegerShape, asBlobShape, asBooleanShape, asByteShape, asDocumentShape, asDoubleShape, asEnumShape, asFloatShape, asIntegerShape, asIntEnumShape, asListShape, asLongShape, asMapShape, asMemberShape, asOperationShape, asResourceShape, asServiceShape, asSetShape, asShortShape, asStringShape, asStructureShape, asTimestampShape, asUnionShape, compareTo, expectTrait, findMemberTrait, findTrait, findTrait, getAllMembers, getAllTraits, getId, getIntroducedTraits, getMember, getMemberNames, getMemberTrait, getMixins, getRequiredMembers, getSourceLocation, getTags, getTrait, getType, hashCode, hasTrait, hasTrait, hasTrait, isBigDecimalShape, isBigIntegerShape, isBlobShape, isBooleanShape, isByteShape, isDocumentShape, isDoubleShape, isEnumShape, isFloatShape, isIntegerShape, isIntEnumShape, isListShape, isLongShape, isMapShape, isMemberShape, isOperationShape, isResourceShape, isServiceShape, isSetShape, isShortShape, isStringShape, isStructureShape, isTimestampShape, isUnionShape, members, shapeToBuilder, toShapeId, toString, validateMemberShapeIds, validateMixins
-
Method Details
-
getResources
- Returns:
- Get all the resources directly bound to this shape.
-
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
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
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
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
-