public final class ResourceShape extends EntityShape implements ToSmithyBuilder<ResourceShape>
resource shape.| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceShape.Builder
Builder used to create a
ResourceShape. |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(ShapeVisitor<R> cases)
Dispatches the shape to the appropriate
ShapeVisitor method. |
java.util.Optional<ResourceShape> |
asResourceShape() |
static ResourceShape.Builder |
builder() |
boolean |
equals(java.lang.Object other) |
java.util.Set<ShapeId> |
getAllOperations()
Get all operations directly bound to this shape.
|
java.util.Set<ShapeId> |
getCollectionOperations()
Gets the operations bound through the "collectionOperations" property.
|
java.util.Optional<ShapeId> |
getCreate()
Gets the create lifecycle operation of the resource.
|
java.util.Optional<ShapeId> |
getDelete()
Gets the delete lifecycle operation of the resource.
|
java.util.Map<java.lang.String,ShapeId> |
getIdentifiers()
Gets the identifiers of the resource.
|
java.util.Optional<ShapeId> |
getList()
Gets the list lifecycle operation of the resource.
|
java.util.Optional<ShapeId> |
getPut()
Gets the put lifecycle operation of the resource.
|
java.util.Optional<ShapeId> |
getRead()
Gets the read lifecycle operation of the resource.
|
ShapeType |
getType()
Gets the type of the shape.
|
java.util.Optional<ShapeId> |
getUpdate()
Gets the update lifecycle operation of the resource.
|
boolean |
hasIdentifiers() |
ResourceShape.Builder |
toBuilder()
Take this object and create a builder that contains all of the
current property values of this object.
|
getOperations, getResourcesasBigDecimalShape, asBigIntegerShape, asBlobShape, asBooleanShape, asByteShape, asDocumentShape, asDoubleShape, asFloatShape, asIntegerShape, asListShape, asLongShape, asMapShape, asMemberShape, asOperationShape, asServiceShape, asSetShape, asShortShape, asStringShape, asStructureShape, asTimestampShape, asUnionShape, compareTo, expectTrait, findMemberTrait, findTrait, findTrait, getAllTraits, getId, getMemberTrait, getSourceLocation, getTags, getTrait, 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, toStringpublic static ResourceShape.Builder builder()
public ResourceShape.Builder toBuilder()
ToSmithyBuildertoBuilder in interface ToSmithyBuilder<ResourceShape>public <R> R accept(ShapeVisitor<R> cases)
ShapeShapeVisitor method.public java.util.Optional<ResourceShape> asResourceShape()
asResourceShape in class ShapeResourceShape.public java.util.Set<ShapeId> getAllOperations()
EntityShapeThis will include operations bound directly to resources using a lifecycle operation binding. This will not include operations bound to this entity through sub-resources.
getAllOperations in class EntityShapeTopDownIndex.getContainedOperations(software.amazon.smithy.model.shapes.ToShapeId)public java.util.Set<ShapeId> getCollectionOperations()
getAllOperations()public java.util.Map<java.lang.String,ShapeId> getIdentifiers()
public boolean hasIdentifiers()
public java.util.Optional<ShapeId> getPut()
public java.util.Optional<ShapeId> getCreate()
public java.util.Optional<ShapeId> getRead()
public java.util.Optional<ShapeId> getUpdate()
public java.util.Optional<ShapeId> getDelete()
public java.util.Optional<ShapeId> getList()
public boolean equals(java.lang.Object other)
equals in class EntityShape