Class IdentifierBindingIndex
java.lang.Object
software.amazon.smithy.model.knowledge.IdentifierBindingIndex
- All Implemented Interfaces:
KnowledgeIndex
Index of operation shapes to the identifiers bound to the operation.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOperationBindings
(ToShapeId resource, ToShapeId operation) Gets a map of identifier names to input member names that provide a value for that identifier.getOperationBindingType
(ToShapeId resource, ToShapeId operation) Gets the identifier binding type of an operation to a resource.static IdentifierBindingIndex
-
Constructor Details
-
IdentifierBindingIndex
-
-
Method Details
-
of
-
getOperationBindingType
public IdentifierBindingIndex.BindingType getOperationBindingType(ToShapeId resource, ToShapeId operation) Gets the identifier binding type of an operation to a resource.The NONE Binding type is returned if the resource can't be found, the operation can't be found, or if the operation is not bound to the resource.
- Parameters:
resource
- Shape ID of a resource.operation
- Shape ID of an operation.- Returns:
- Returns the binding type of the operation.
-
getOperationBindings
Gets a map of identifier names to input member names that provide a value for that identifier.- Parameters:
resource
- Shape ID of a resource.operation
- Shape ID of an operation.- Returns:
- Returns the identifier bindings map or an empty map if the binding is invalid or cannot be found.
-