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 SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescription<R> Raccept(ShapeVisitor<R> visitor) Dispatches the shape to the appropriateShapeVisitormethod.static ResourceShape.Builderbuilder()booleanGet 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.booleanbooleanTake 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.EntityShapegetIntroducedOperations, getIntroducedResources, getOperations, getResourcesMethods inherited from class software.amazon.smithy.model.shapes.ShapeasBigDecimalShape, 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, getRequiredMixinMember, 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
- 
toBuilderDescription copied from interface:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToSmithyBuilder<ResourceShape>
- Returns:
- a builder for type T
 
- 
acceptDescription copied from class:ShapeDispatches the shape to the appropriateShapeVisitormethod.
- 
asResourceShape- Overrides:
- asResourceShapein class- Shape
- Returns:
- Optionally returns the shape as a ResourceShape.
 
- 
getAllOperationsDescription copied from class:EntityShapeGet 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:
- getAllOperationsin class- EntityShape
- Returns:
- Returns all operations bound to the shape.
- See Also:
 
- 
getTypeDescription copied from class:ShapeGets the type of the shape.
- 
getCollectionOperationsGets 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:
 
- 
getIdentifiersGets the identifiers of the resource.- Returns:
- Returns the identifiers map of name to shape ID.
 
- 
hasIdentifierspublic boolean hasIdentifiers()- Returns:
- Returns true if this resource defines any identifiers.
 
- 
getProperties
- 
hasPropertiespublic boolean hasProperties()
- 
getPutGets the put lifecycle operation of the resource.- Returns:
- Returns the optionally found lifecycle.
 
- 
getCreateGets the create lifecycle operation of the resource.- Returns:
- Returns the optionally found lifecycle.
 
- 
getReadGets the read lifecycle operation of the resource.- Returns:
- Returns the optionally found lifecycle.
 
- 
getUpdateGets the update lifecycle operation of the resource.- Returns:
- Returns the optionally found lifecycle.
 
- 
getDeleteGets the delete lifecycle operation of the resource.- Returns:
- Returns the optionally found lifecycle.
 
- 
getListGets the list lifecycle operation of the resource.- Returns:
- Returns the optionally found lifecycle.
 
- 
equals- Overrides:
- equalsin class- EntityShape
 
 
-