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<B,S>,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>
getIntroducedOperations()
Gets operations bound through the "operations" property that were not inherited from mixins.java.util.Set<ShapeId>
getIntroducedResources()
Gets all the directly-bound resources introduced by this shape and not inherited from mixins.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, 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 Detail
-
getResources
public final java.util.Set<ShapeId> getResources()
- Returns:
- Get all the resources directly bound to this shape.
-
getIntroducedResources
public final java.util.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 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. This will also not include operations bound to this entity through sub-resources.
- Returns:
- Get the "operations" directly bound to this shape.
- See Also:
getAllOperations()
,TopDownIndex.getContainedOperations(software.amazon.smithy.model.shapes.ToShapeId)
-
getIntroducedOperations
public final java.util.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 java.util.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:
TopDownIndex.getContainedOperations(software.amazon.smithy.model.shapes.ToShapeId)
-
-