Class ResourceShape

    • Method Detail

      • accept

        public <R> R accept​(ShapeVisitor<R> cases)
        Description copied from class: Shape
        Dispatches the shape to the appropriate ShapeVisitor method.
        Specified by:
        accept in class Shape
        Type Parameters:
        R - Return type of the accept.
        Parameters:
        cases - NeighborVisitor to use.
        Returns:
        Returns the result.
      • getAllOperations

        public java.util.Set<ShapeId> getAllOperations()
        Description copied from class: EntityShape
        Get all operations directly bound to this shape.
        Overrides:
        getAllOperations in class EntityShape
        Returns:
        Returns all operations bound to the shape.
      • getCollectionOperations

        public java.util.Set<ShapeId> 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:
        getAllOperations()
      • getIdentifiers

        public java.util.Map<java.lang.String,​ShapeId> 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.
      • getPut

        public java.util.Optional<ShapeId> getPut()
        Gets the put lifecycle operation of the resource.
        Returns:
        Returns the optionally found lifecycle.
      • getCreate

        public java.util.Optional<ShapeId> getCreate()
        Gets the create lifecycle operation of the resource.
        Returns:
        Returns the optionally found lifecycle.
      • getRead

        public java.util.Optional<ShapeId> getRead()
        Gets the read lifecycle operation of the resource.
        Returns:
        Returns the optionally found lifecycle.
      • getUpdate

        public java.util.Optional<ShapeId> getUpdate()
        Gets the update lifecycle operation of the resource.
        Returns:
        Returns the optionally found lifecycle.
      • getDelete

        public java.util.Optional<ShapeId> getDelete()
        Gets the delete lifecycle operation of the resource.
        Returns:
        Returns the optionally found lifecycle.
      • getList

        public java.util.Optional<ShapeId> getList()
        Gets the list lifecycle operation of the resource.
        Returns:
        Returns the optionally found lifecycle.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class EntityShape