Class ResourceShape
java.lang.Object
software.amazon.smithy.model.shapes.Shape
software.amazon.smithy.model.shapes.EntityShape
software.amazon.smithy.model.shapes.ResourceShape
- All Implemented Interfaces:
Comparable<Shape>
,FromSourceLocation
,ToShapeId
,Tagged
,ToSmithyBuilder<ResourceShape>
Represents a
resource
shape.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescription<R> R
accept
(ShapeVisitor<R> visitor) Dispatches the shape to the appropriateShapeVisitor
method.static ResourceShape.Builder
builder()
boolean
Get all operations directly bound to this shape.Gets the operations bound through the "collectionOperations" property.Gets the create lifecycle operation of the resource.Gets the delete lifecycle operation of the resource.Gets the identifiers of the resource.getList()
Gets the list lifecycle operation of the resource.getPut()
Gets the put lifecycle operation of the resource.getRead()
Gets the read lifecycle operation of the resource.getType()
Gets the type of the shape.Gets the update lifecycle operation of the resource.boolean
boolean
Take this object and create a builder that contains all of the current property values of this object.Methods inherited from class software.amazon.smithy.model.shapes.EntityShape
getIntroducedOperations, getIntroducedResources, getOperations, getResources
Methods inherited from class software.amazon.smithy.model.shapes.Shape
asBigDecimalShape, asBigIntegerShape, asBlobShape, asBooleanShape, asByteShape, asDocumentShape, asDoubleShape, asEnumShape, asFloatShape, asIntegerShape, asIntEnumShape, asListShape, asLongShape, asMapShape, asMemberShape, asOperationShape, asServiceShape, asSetShape, asShortShape, asStringShape, asStructureShape, asTimestampShape, asUnionShape, compareTo, expectTrait, findMemberTrait, findTrait, findTrait, getAllMembers, getAllTraits, getId, getIntroducedTraits, getMember, getMemberNames, getMemberTrait, getMixins, getRequiredMembers, getSourceLocation, getTags, getTrait, 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
-
builder
-
toBuilder
Description copied from interface:ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<ResourceShape>
- Returns:
- a builder for type T
-
accept
Description copied from class:Shape
Dispatches the shape to the appropriateShapeVisitor
method. -
asResourceShape
- Overrides:
asResourceShape
in classShape
- Returns:
- Optionally returns the shape as a
ResourceShape
.
-
getAllOperations
Description copied from class:EntityShape
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.
- Overrides:
getAllOperations
in classEntityShape
- Returns:
- Returns all operations bound to the shape.
- See Also:
-
getType
Description copied from class:Shape
Gets the type of the shape. -
getCollectionOperations
Gets the operations bound through the "collectionOperations" property. This will not include operations bound to resources using a lifecycle operation binding.- Returns:
- Get the "collectionOperations" directly bound to this shape.
- See Also:
-
getIdentifiers
Gets the identifiers of the resource.- Returns:
- Returns the identifiers map of name to shape ID.
-
hasIdentifiers
public boolean hasIdentifiers()- Returns:
- Returns true if this resource defines any identifiers.
-
getProperties
-
hasProperties
public boolean hasProperties() -
getPut
Gets the put lifecycle operation of the resource.- Returns:
- Returns the optionally found lifecycle.
-
getCreate
Gets the create lifecycle operation of the resource.- Returns:
- Returns the optionally found lifecycle.
-
getRead
Gets the read lifecycle operation of the resource.- Returns:
- Returns the optionally found lifecycle.
-
getUpdate
Gets the update lifecycle operation of the resource.- Returns:
- Returns the optionally found lifecycle.
-
getDelete
Gets the delete lifecycle operation of the resource.- Returns:
- Returns the optionally found lifecycle.
-
getList
Gets the list lifecycle operation of the resource.- Returns:
- Returns the optionally found lifecycle.
-
equals
- Overrides:
equals
in classEntityShape
-