Class OperationIndex
- java.lang.Object
-
- software.amazon.smithy.model.knowledge.OperationIndex
-
- All Implemented Interfaces:
KnowledgeIndex
public final class OperationIndex extends java.lang.Object implements KnowledgeIndex
Index of operation IDs to their resolved input, output, and error structures.This index performs no validation that the input, output, and errors actually reference valid structures.
-
-
Constructor Summary
Constructors Constructor Description OperationIndex(Model model)
-
Method Summary
Modifier and Type Method Description java.util.List<StructureShape>
getErrors(ToShapeId operation)
java.util.Optional<StructureShape>
getInput(ToShapeId operation)
java.util.Optional<StructureShape>
getOutput(ToShapeId operation)
-
-
-
Constructor Detail
-
OperationIndex
public OperationIndex(Model model)
-
-
Method Detail
-
getInput
public java.util.Optional<StructureShape> getInput(ToShapeId operation)
-
getOutput
public java.util.Optional<StructureShape> getOutput(ToShapeId operation)
-
getErrors
public java.util.List<StructureShape> getErrors(ToShapeId operation)
-
-