public static final class ResourceShape.Builder extends EntityShape.Builder<ResourceShape.Builder,ResourceShape>
ResourceShape
.Constructor and Description |
---|
Builder() |
addOperation, addOperation, addResource, addResource, clearOperations, clearResources, operations, removeOperation, removeResource, resources
addMember, addTrait, addTraits, clearTraits, getId, getSourceLocation, id, id, removeTrait, removeTrait, source, source, traits
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiredState
public ResourceShape build()
SmithyBuilder
public ShapeType getShapeType()
AbstractShapeBuilder
getShapeType
in class AbstractShapeBuilder<ResourceShape.Builder,ResourceShape>
public ResourceShape.Builder identifiers(java.util.Map<java.lang.String,ShapeId> identifiers)
identifiers
- The identifiers to set.public ResourceShape.Builder addIdentifier(java.lang.String name, ToShapeId identifier)
name
- Name of the identifier.identifier
- Shape ID of the identifier.public ResourceShape.Builder addIdentifier(java.lang.String name, java.lang.String identifier)
public ResourceShape.Builder put(ToShapeId put)
public ResourceShape.Builder create(ToShapeId create)
public ResourceShape.Builder read(ToShapeId read)
public ResourceShape.Builder update(ToShapeId update)
public ResourceShape.Builder delete(ToShapeId delete)
public ResourceShape.Builder list(ToShapeId list)
public ResourceShape.Builder collectionOperations(java.util.Collection<ShapeId> ids)
public ResourceShape.Builder addCollectionOperation(ToShapeId id)
public ResourceShape.Builder addCollectionOperation(java.lang.String id)
public ResourceShape.Builder removeCollectionOperation(ToShapeId id)
public ResourceShape.Builder clearCollectionOperations()
public ResourceShape.Builder removeFromAllOperationBindings(ToShapeId toShapeId)
toShapeId
- Operation ID to remove.