Class ResourceShape

    • Method Detail

      • accept

        public <R> R accept​(ShapeVisitor<R> visitor)
        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:
        visitor - ShapeVisitor to use.
        Returns:
        Returns the result.
      • getType

        public ShapeType getType()
        Description copied from class: Shape
        Gets the type of the shape.
        Specified by:
        getType in class Shape
        Returns:
        Returns the type;
      • 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.
      • getProperties

        public java.util.Map<java.lang.String,​ShapeId> getProperties()
      • hasProperties

        public boolean hasProperties()
      • 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