public Set<OperationShape> operations() {
        Set<OperationShape> result = containedOperations;
        if (result == null) {
            result = containedOperations = TopDownIndex.of(model()).getContainedOperations(service());
        }
        return result;
    }
Gets a set of all operation shapes in the service, sorted by name.

<p>This includes operations contained in resources in the closure of the service.

@return Returns all sorted service operations.
smithy-codegen-core/src/main/java/software/amazon/smithy/codegen/core/directed/Directive.java